Home
last modified time | relevance | path

Searched refs:buttonState (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DTouchUtilTest.kt36 ev.buttonState = MotionEvent.BUTTON_SECONDARY in isMouseRightClickDownOrMove_onMouseRightButton_returnsTrue()
45 ev.buttonState = MotionEvent.BUTTON_PRIMARY in isMouseRightClickDownOrMove_onMouseLeftButton_returnsFalse()
54 ev.buttonState = MotionEvent.BUTTON_TERTIARY in isMouseRightClickDownOrMove_onMouseTertiaryButton_returnsFalse()
63 ev.buttonState = MotionEvent.BUTTON_SECONDARY in isMouseRightClickDownOrMove_onDpadRightButton_returnsFalse()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearAppPermissionScreen.kt55 val buttonState = viewModel.buttonStateLiveData.observeAsState(null) in <lambda>() constant
66 buttonState.value, in <lambda>()
87 if (isLoading && !buttonState.value.isNullOrEmpty()) { in <lambda>()
95 buttonState: Map<ButtonType, ButtonState>?, in WearAppPermissionContent()
104 buttonState?.get(ButtonType.LOCATION_ACCURACY)?.let { in WearAppPermissionContent()
119 buttonState?.get(buttonType)?.let { in WearAppPermissionContent()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSettingsPreferenceFragment.java228 private boolean isPrimaryKey(int buttonState) {
229 return buttonState == MotionEvent.BUTTON_PRIMARY
230 || buttonState == MotionEvent.BUTTON_STYLUS_PRIMARY
231 || buttonState == 0; // motion events which creates by UI Automator
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSettingsPreferenceFragment.java315 private boolean isPrimaryKey(int buttonState) {
316 return buttonState == MotionEvent.BUTTON_PRIMARY
317 || buttonState == MotionEvent.BUTTON_STYLUS_PRIMARY
318 || buttonState == 0; // motion events which creates by UI Automator
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAppPermissionFragment.java187 mViewModel.getButtonStateLiveData().observe(this, buttonState -> { in onCreate()
189 setRadioButtonsState(buttonState); in onCreate()
192 delayHandler.postDelayed(() -> setRadioButtonsState(buttonState), POST_DELAY_MS); in onCreate()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DDirectoryListBot.java387 int action, int buttonState, int toolType, int source, int x, int y) { in getTestMotionEvent() argument
410 buttonState, in getTestMotionEvent()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DGrantPermissionsActivity.java1222 int buttonState = 0;
1224 buttonState *= 2;
1226 buttonState++;
1229 return buttonState;
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAppPermissionFragment.java214 mViewModel.getButtonStateLiveData().observe(this, buttonState -> { in onCreate()
216 setRadioButtonsState(buttonState); in onCreate()
219 delayHandler.postDelayed(() -> setRadioButtonsState(buttonState), POST_DELAY_MS); in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt273 val buttonState = buttonStateLiveData.value in <lambda>() constant
274 return buttonState?.get(DENY)?.isChecked == true || in <lambda>()
275 buttonState?.get(DENY_FOREGROUND)?.isChecked == true in <lambda>()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java899 int buttonState, int pointerCount, int[] pointerIds, int[] toolTypes, float[] xData, in dispatchSinglePerSeatMotionEvent() argument
910 int32Array[3] = buttonState; in dispatchSinglePerSeatMotionEvent()