您的位置:首页 > 财经 > 产业 > 灵台县门户网站_接家装活找哪个平台_石家庄网站建设案例_广州seo推广服务

灵台县门户网站_接家装活找哪个平台_石家庄网站建设案例_广州seo推广服务

2025/1/9 9:54:55 来源:https://blog.csdn.net/xiaowang_lj/article/details/144989776  浏览:    关键词:灵台县门户网站_接家装活找哪个平台_石家庄网站建设案例_广州seo推广服务
灵台县门户网站_接家装活找哪个平台_石家庄网站建设案例_广州seo推广服务

frameworks\base\services\core\java\com\android\server\policy\PhoneWindowManager.java

/*** Rule for single power key gesture.*/private final class PowerKeyRule extends SingleKeyGestureDetector.SingleKeyRule {PowerKeyRule() {super(KEYCODE_POWER);}@Overrideboolean supportLongPress() {return hasLongPressOnPowerBehavior();}@Overrideboolean supportVeryLongPress() {return hasVeryLongPressOnPowerBehavior();}@Overrideint getMaxMultiPressCount() {return getMaxMultiPressPowerCount();}@Overridevoid onPress(long downTime) {if ("true".equals(SystemProperties.get(Properties.PROPERTY_DISABLE_SHORT_POWER)) &&mPowerManager.isScreenPowerOn()) {Slog.d(TAG, "ignore short power key");return;}powerPress(downTime, 1 /*count*/,mSingleKeyGestureDetector.beganFromNonInteractive());}@Overridelong getLongPressTimeoutMs() {if (getResolvedLongPressOnPowerBehavior() == LONG_PRESS_POWER_ASSISTANT) {return mLongPressOnPowerAssistantTimeoutMs;} else {return super.getLongPressTimeoutMs();}}@Overridevoid onLongPress(long eventTime) {if (mSingleKeyGestureDetector.beganFromNonInteractive()&& !mSupportLongPressPowerWhenNonInteractive) {Slog.v(TAG, "Not support long press power when device is not interactive.");return;}powerLongPress(eventTime);}@Overridevoid onVeryLongPress(long eventTime) {mActivityManagerInternal.prepareForPossibleShutdown();powerVeryLongPress();}@Overridevoid onMultiPress(long downTime, int count) {powerPress(downTime, count, mSingleKeyGestureDetector.beganFromNonInteractive());}}/*** Rule for single back key gesture.*/private final class BackKeyRule extends SingleKeyGestureDetector.SingleKeyRule {BackKeyRule() {super(KEYCODE_BACK);}@Overrideboolean supportLongPress() {return hasLongPressOnBackBehavior();}@Overrideint getMaxMultiPressCount() {return 1;}@Overridevoid onPress(long downTime) {mBackKeyHandled |= backKeyPress();}@Overridevoid onLongPress(long downTime) {backLongPress();}}/*** Rule for single stem primary key gesture.*/private final class StemPrimaryKeyRule extends SingleKeyGestureDetector.SingleKeyRule {StemPrimaryKeyRule() {super(KeyEvent.KEYCODE_STEM_PRIMARY);}@Overrideboolean supportLongPress() {return hasLongPressOnStemPrimaryBehavior();}@Overrideint getMaxMultiPressCount() {return getMaxMultiPressStemPrimaryCount();}@Overridevoid onPress(long downTime) {stemPrimaryPress(1 /*count*/);}@Overridevoid onLongPress(long eventTime) {stemPrimaryLongPress();}@Overridevoid onMultiPress(long downTime, int count) {stemPrimaryPress(count);}}

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com