底层上报的消息: FINGERPRINT_ACQUIRED_GOOD:
上层对应提示信息: null
底层上报的消息: FINGERPRINT_ACQUIRED_PARTIAL:
上层对应提示信息: 仅检测到部分指纹,请重试。
底层上报的消息: FINGERPRINT_ACQUIRED_INSUFFICIENT:
上层对应提示信息: 无法处理指纹,请重试。
底层上报的消息: FINGERPRINT_ACQUIRED_IMAGER_DIRTY:
上层对应提示信息: '指纹传感器有脏污。请擦拭干净,然后重试。
底层上报的消息: FINGERPRINT_ACQUIRED_TOO_SLOW:
上层对应提示信息: 手指移动太慢,请重试。
底层上报的消息: FINGERPRINT_ACQUIRED_TOO_FAST:
上层对应提示信息: 手指移动太快,请重试。
frameworks/base/core/java/android/hardware/fingerprint/FingerprintManager.java
switch (acquireInfo) {
case FINGERPRINT_ACQUIRED_GOOD:
return null;
case FINGERPRINT_ACQUIRED_PARTIAL:
return mContext.getString(
com.android.internal.R.string.fingerprint_acquired_partial);
case FINGERPRINT_ACQUIRED_INSUFFICIENT:
return mContext.getString(
com.android.internal.R.string.fingerprint_acquired_insufficient);
case FINGERPRINT_ACQUIRED_IMAGER_DIRTY:
return mContext.getString(
com.android.internal.R.string.fingerprint_acquired_imager_dirty);
case FINGERPRINT_ACQUIRED_TOO_SLOW:
return mContext.getString(
com.android.internal.R.string.fingerprint_acquired_too_slow);
case FINGERPRINT_ACQUIRED_TOO_FAST:
return mContext.getString(
com.android.internal.R.string.fingerprint_acquired_too_fast);
default:
if (acquireInfo >= FINGERPRINT_ACQUIRED_ASUS_BASE) {
int msgNumber = acquireInfo - FINGERPRINT_ACQUIRED_ASUS_BASE;
String[] msgArray = mContext.getResources().getStringArray(
com.android.internal.R.array.fingerprint_acquired_vendor);
if (msgNumber < msgArray.length) {
return msgArray[msgNumber];
}
}
return null;
}
./vendor/qcom/proprietary/qrdplus/globalization/multi-language/res-overlay/frameworks/base/core/res/res/values-zh-rCN/strings.xml:
<string name="fingerprint_acquired_partial">"仅检测到部分指纹,请重试。"</string>
./vendor/aosp-loc-frameworks-res/overlays/frameworks/base/core/res/res/values-zh-rCN/aosp_strings.xml: <string name="fingerprint_acquired_partial">"仅检测到部分指纹,请重试。"</string>
./frameworks/base/core/res/res/values-zh-rCN/strings.xml: <string name="fingerprint_acquired_partial" msgid="735082772341716043">"仅检测到部分指纹,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the fingerprint cannot be recognized -->
<add-resource type="string" name="fingerprint_acquired_partial"/>
<string name="fingerprint_acquired_partial">"仅检测到部分指纹,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the fingerprint cannot be recognized -->
<add-resource type="string" name="fingerprint_acquired_insufficient"/>
<string name="fingerprint_acquired_insufficient">"无法处理指纹,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the fingerprint sensor needs cleaning -->
<add-resource type="string" name="fingerprint_acquired_imager_dirty"/>
<string name="fingerprint_acquired_imager_dirty">"指纹传感器有脏污。请擦拭干净,然后重试。"</string>
<!-- Message shown during fingerprint acquisision when the user removes their finger from the sensor too quickly -->
<add-resource type="string" name="fingerprint_acquired_too_fast"/>
<string name="fingerprint_acquired_too_fast">"手指移动太快,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the user moves their finger too slowly -->
<add-resource type="string" name="fingerprint_acquired_too_slow"/>
<string name="fingerprint_acquired_too_slow">"手指移动太慢,请重试。"</string>
<!-- Array containing custom messages shown during fingerprint acquisision from vendor. Vendor is expected to add and translate these strings -->
<add-resource type="array" name="fingerprint_acquired_vendor"/>
<string-array name="fingerprint_acquired_vendor">
</string-array>
<!-- Message shown during fingerprint acquisision when the fingerprint cannot be recognized -->
<string name="fingerprint_acquired_partial">"仅检测到部分指纹,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the fingerprint cannot be recognized -->
<string name="fingerprint_acquired_insufficient">"无法处理指纹,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the fingerprint sensor needs cleaning -->
<string name="fingerprint_acquired_imager_dirty">"指纹传感器有脏污。请擦拭干净,然后重试。"</string>
<!-- Message shown during fingerprint acquisision when the user removes their finger from the sensor too quickly -->
<string name="fingerprint_acquired_too_fast">"手指移动太快,请重试。"</string>
<!-- Message shown during fingerprint acquisision when the user moves their finger too slowly -->
<string name="fingerprint_acquired_too_slow">"手指移动太慢,请重试。"</string>
<!-- Array containing custom messages shown during fingerprint acquisision from vendor. Vendor is expected to add and translate these strings -->
<string name="fingerprint_acquired_partial" msgid="735082772341716043">"仅检测到部分指纹,请重试。"</string>
<string name="fingerprint_acquired_insufficient" msgid="4596546021310923214">"无法处理指纹,请重试。"</string>
<string name="fingerprint_acquired_imager_dirty" msgid="1087209702421076105">"指纹传感器有脏污。请擦拭干净,然后重试。"</string>
<string name="fingerprint_acquired_too_fast" msgid="6470642383109155969">"手指移动太快,请重试。"</string>
<string name="fingerprint_acquired_too_slow" msgid="59250885689661653">"手指移动太慢,请重试。"</string>
<string-array name="fingerprint_acquired_vendor">
</string-array>