指纹提示信息与代码对应关系

11 篇文章 2 订阅

底层上报的消息: 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>
 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值