/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
H A D | KeyboardBacklightControllerTests.kt | 95 const val DEVICE_ID = 1 166 val keyboardWithBacklight = createKeyboard(DEVICE_ID) 190 incrementKeyboardBacklight(DEVICE_ID) 214 incrementKeyboardBacklight(DEVICE_ID) 314 DEVICE_ID, 337 incrementKeyboardBacklight(DEVICE_ID) 486 incrementKeyboardBacklight(DEVICE_ID) 623 incrementKeyboardBacklight(DEVICE_ID) 652 incrementKeyboardBacklight(DEVICE_ID) 681 decrementKeyboardBacklight(DEVICE_ID) [all …]
|
H A D | BatteryControllerTests.kt | 176 const val DEVICE_ID = 13 213 addInputDevice(DEVICE_ID) 326 `when`(native.getBatteryCapacity(DEVICE_ID)).thenReturn(78) 366 notifyDeviceChanged(DEVICE_ID, hasBattery = false) 368 listener.verifyNotified(isInvalidBatteryState(DEVICE_ID)) 373 notifyDeviceChanged(DEVICE_ID, hasBattery = true) 387 listener.verifyNotified(DEVICE_ID, capacity = 0.78f) 401 listener.verifyNotified(DEVICE_ID, capacity = 0.80f) 418 listener.verifyNotified(DEVICE_ID, capacity = 0.78f) 431 listener.verifyNotified(DEVICE_ID, capacity = 0.80f) [all …]
|
H A D | KeyRemapperTests.kt | 63 const val DEVICE_ID = 1 110 Mockito.`when`(iInputManager.inputDeviceIds).thenReturn(intArrayOf(DEVICE_ID)) 121 val keyboard = createKeyboard(DEVICE_ID) 122 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard) 159 val keyboard = createKeyboard(DEVICE_ID) 160 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboard)
|
H A D | KeyboardMetricsCollectorTests.kt | 67 const val DEVICE_ID = 1 77 DEVICE_ID, 92 DEVICE_ID, 107 DEVICE_ID, 178 DEVICE_ID,
|
H A D | KeyboardLayoutManagerTests.kt | 85 const val DEVICE_ID = 1 157 keyboardDevice = createKeyboard(DEVICE_ID, DEFAULT_VENDOR_ID, DEFAULT_PRODUCT_ID, "", "") 165 DEVICE_ID, 170 Mockito.`when`(iInputManager.getInputDevice(DEVICE_ID)).thenReturn(keyboardDevice) 425 keyboardLayoutManager.switchKeyboardLayout(DEVICE_ID, 1) 449 keyboardLayoutManager.switchKeyboardLayout(DEVICE_ID, 1)
|
/aosp14/frameworks/base/core/tests/coretests/src/android/hardware/input/ |
H A D | InputDeviceSensorManagerTest.java | 71 private static final int DEVICE_ID = 1000; field in InputDeviceSensorManagerTest 90 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp() 91 createInputDeviceWithSensor(DEVICE_ID)); in setUp() 94 createInputSensorInfo(DEVICE_ID, Sensor.TYPE_ACCELEROMETER), in setUp() 95 createInputSensorInfo(DEVICE_ID, Sensor.TYPE_GYROSCOPE)}); in setUp() 174 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType() 176 assertEquals(DEVICE_ID, accelList.get(0).getId()); in getInputDeviceSensors_withExpectedType() 180 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withExpectedType() 182 assertEquals(DEVICE_ID, gyroList.get(0).getId()); in getInputDeviceSensors_withExpectedType() 196 verify(mIInputManagerMock).getSensorList(eq(DEVICE_ID)); in getInputDeviceSensors_withUnexpectedType() [all …]
|
H A D | InputDeviceLightsManagerTest.java | 73 private static final int DEVICE_ID = 1000; field in InputDeviceLightsManagerTest 87 when(mIInputManagerMock.getInputDevice(eq(DEVICE_ID))).thenReturn( in setUp() 88 createInputDevice(DEVICE_ID)); in setUp() 103 }).when(mIInputManagerMock).setLightStates(eq(DEVICE_ID), in setUp() 129 when(mIInputManagerMock.getLights(eq(DEVICE_ID))).thenReturn( in mockLights() 135 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testGetInputDeviceLights() 150 verify(mIInputManagerMock).getLights(eq(DEVICE_ID)); in testGetInputDeviceLights() 156 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlMultipleLights() 184 verify(mIInputManagerMock).openLightSession(eq(DEVICE_ID), in testControlMultipleLights() 208 InputDevice device = mInputManager.getInputDevice(DEVICE_ID); in testControlPlayerIdLight() [all …]
|
H A D | InputManagerTest.kt | 51 const val DEVICE_ID = 42 111 addInputDevice(DEVICE_ID, Display.DEFAULT_DISPLAY, null) 123 addInputDevice(DEVICE_ID, Display.DEFAULT_DISPLAY, null)
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | KeyEventTest.java | 53 private static final int DEVICE_ID = 16; field in KeyEventTest 66 METASTATE, DEVICE_ID, SCAN_CODE, FLAGS, SOURCE, CHARACTERS); in testObtain() 74 METASTATE, DEVICE_ID, SCAN_CODE, FLAGS, SOURCE, CHARACTERS); in testObtainFromKeyEvent() 100 METASTATE, DEVICE_ID, SCAN_CODE, FLAGS, SOURCE, CHARACTERS); in testObtainGeneratesUniqueId() 122 METASTATE, DEVICE_ID, SCAN_CODE, FLAGS, SOURCE, CHARACTERS); in testObtainGeneratesIdWithRightSource() 169 METASTATE, DEVICE_ID, SCAN_CODE, FLAGS, InputDevice.SOURCE_KEYBOARD, in testCopyConstructorWith2ChangedFields() 178 DEVICE_ID, SCAN_CODE, FLAGS, SOURCE); in testConstructorWith10Args() 187 DEVICE_ID, SCAN_CODE, FLAGS); in testConstructorWith9Args() 190 DEVICE_ID, SCAN_CODE, FLAGS, /* source= */ 0, INVALID_DISPLAY, in testConstructorWith9Args() 197 DEVICE_ID, SCAN_CODE); in testConstructorWith8Args() [all …]
|
H A D | VerifiedKeyEventTest.kt | 41 assertEquals(DEVICE_ID, event.deviceId) 131 private const val DEVICE_ID = 0 145 return VerifiedKeyEvent(DEVICE_ID, EVENT_TIME_NANOS, SOURCE, DISPLAY_ID, ACTION,
|
H A D | VerifiedMotionEventTest.kt | 46 assertEquals(DEVICE_ID, event.deviceId) 153 private const val DEVICE_ID = 0 166 return VerifiedMotionEvent(DEVICE_ID, EVENT_TIME_NANOS, SOURCE, DISPLAY_ID,
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | ProxyManagerTest.java | 87 private static final int DEVICE_ID = 10; field in ProxyManagerTest 119 new ArraySet(Set.of(DEVICE_ID))); in setup() 183 assertThat(mProxyManager.isProxyedDeviceId(DEVICE_ID)).isFalse(); in unregisterProxy_deviceAssociatedWithSingleDisplay_stopsTrackingDevice() 184 verify(mMockProxySystemSupport).removeDeviceIdLocked(DEVICE_ID); in unregisterProxy_deviceAssociatedWithSingleDisplay_stopsTrackingDevice() 198 assertThat(mProxyManager.isProxyedDeviceId(DEVICE_ID)).isTrue(); in unregisterProxy_deviceAssociatedWithMultipleDisplays_tracksRemainingProxy() 211 mProxyManager.onProxyChanged(DEVICE_ID); in testOnProxyChanged_always_propagatesChange() 228 .isEqualTo(DEVICE_ID); in testGetFirstDeviceForUid_streamedAppQueriesState_getsHostDeviceId() 245 final int deviceClientState = mProxyManager.getStateLocked(DEVICE_ID); in testGetClientState_proxyWantsTouchExploration_returnsTouchExplorationEnabled() 284 AccessibilityServiceInfo.FEEDBACK_ALL_MASK, DEVICE_ID); in testGetInstalledAndEnabledServices_defaultInfo_returnsInfoForDisplayId() 300 final int deviceClientState = mProxyManager.getStateLocked(DEVICE_ID); in testGetClientState_always_returnsAccessibilityEnabled() [all …]
|
H A D | ProxyAccessibilityServiceConnectionTest.java | 55 private static final int DEVICE_ID = 2000; field in ProxyAccessibilityServiceConnectionTest 99 mMockWindowManagerInternal, mMockA11yWindowManager, DISPLAY_ID, DEVICE_ID); in setup() 113 verify(mMockSystemSupport).onProxyChanged(DEVICE_ID); in testSetInstalledAndEnabledServices_updateInfos_notifiesSystemOfProxyChange() 124 verify(mMockSystemSupport).onProxyChanged(DEVICE_ID); in testSetFocusAppearance_updateAppearance_notifiesSystemOfProxyChange()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | KeyboardShortcutListSearchTest.java | 49 private static int DEVICE_ID = 1; field in KeyboardShortcutListSearchTest 67 mKeyboardShortcutListSearch.toggle(mContext, DEVICE_ID); in toggle_isShowingTrue_instanceShouldBeNull() 76 mKeyboardShortcutListSearch.toggle(mContext, DEVICE_ID); in toggle_isShowingFalse_showKeyboardShortcuts()
|
H A D | KeyboardShortcutsTest.java | 48 private static int DEVICE_ID = 1; field in KeyboardShortcutsTest 66 mKeyboardShortcuts.toggle(mContext, DEVICE_ID); in toggle_isShowingTrue_instanceShouldBeNull() 75 mKeyboardShortcuts.toggle(mContext, DEVICE_ID); in toggle_isShowingFalse_showKeyboardShortcuts()
|
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/ |
H A D | InputDeviceTest.java | 34 private static final int DEVICE_ID = 1000; field in InputDeviceTest 76 .setId(DEVICE_ID) in assertInputDeviceParcelUnparcel() 79 .setName("Test Device " + DEVICE_ID) in assertInputDeviceParcelUnparcel() 126 final KeyCharacterMap keyCharacterMap = KeyCharacterMap.obtainEmptyMap(DEVICE_ID); in testParcelUnparcelInputDevice_EmptyCharacterMap()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/ |
H A D | MediaDeviceManagerTest.kt | 73 private const val DEVICE_ID = "DEVICE_ID" 527 whenever(device.id).thenReturn(DEVICE_ID) 534 val updatedId = DEVICE_ID + "_new" 546 assertThat(firstDevice.id).isEqualTo(DEVICE_ID) 555 whenever(device.id).thenReturn(DEVICE_ID) 584 whenever(device.id).thenReturn(DEVICE_ID)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/ |
H A D | ChipbarCoordinatorTest.kt | 443 underTest.removeView(DEVICE_ID, "TestReason") 611 underTest.removeView(DEVICE_ID, "test reason") 630 underTest.removeView(DEVICE_ID, "test reason") 744 id = DEVICE_ID, 793 private const val DEVICE_ID = "id"
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | MediaMetrics.java | 108 public static final Key<Integer> DEVICE_ID = field in MediaMetrics.Property
|
/aosp14/frameworks/base/services/midi/java/com/android/server/midi/ |
H A D | MidiService.java | 684 .set(MediaMetrics.Property.DEVICE_ID, mDeviceInfo.getId()) in logMetrics()
|