/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | DeviceAssociationTest.java | 136 mContext.updateDeviceId(mVirtualDevice.getDeviceId()); in unregisterDeviceChangedListener_succeeds() 138 assertThat(mContext.getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in unregisterDeviceChangedListener_succeeds() 155 () -> mContext.updateDeviceId(mVirtualDevice.getDeviceId() + 1)); in updateDeviceId_missingDeviceId_shouldThrowIllegalArgumentException() 162 assertThat(mContext.getDeviceId()).isEqualTo(DEVICE_ID_DEFAULT); in updateDeviceId_defaultDeviceId() 168 mContext.updateDeviceId(mVirtualDevice.getDeviceId()); in updateDeviceId_validVirtualDeviceId() 169 assertThat(mContext.getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in updateDeviceId_validVirtualDeviceId() 175 mContext.updateDeviceId(mVirtualDevice.getDeviceId()); in updateDeviceId_convertToDeviceContext_overridesValue() 176 assertThat(mContext.getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in updateDeviceId_convertToDeviceContext_overridesValue() 180 assertThat(defaultDeviceContext.getDeviceId()).isEqualTo(DEVICE_ID_DEFAULT); in updateDeviceId_convertToDeviceContext_overridesValue() 186 Context deviceContext = mContext.createDeviceContext(mVirtualDevice.getDeviceId()); in updateDeviceId_onDeviceContext_throwsException() [all …]
|
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/ |
D | VirtualDeviceManagerBasicTest.java | 159 .getVirtualDevice(mVirtualDevice.getDeviceId()) in getDisplayNameForPersistentId_validVirtualDevice_returnsCorrectId() 173 assertDeviceClosed(mVirtualDevice.getDeviceId()); in getAllPersistentDeviceIds_empty() 192 assertDeviceClosed(mVirtualDevice.getDeviceId()); in getAllPersistentDeviceIds_includesClosedVirtualDevice() 202 assertThat(mVirtualDevice.getDeviceId()).isGreaterThan(DEVICE_ID_DEFAULT); in createVirtualDevice_shouldNotThrowException() 209 assertThat(mVirtualDevice.getDeviceId() + 1).isEqualTo(secondVirtualDevice.getDeviceId()); in createVirtualDevice_deviceIdIsUniqueAndIncremented() 255 assertDeviceClosed(mVirtualDevice.getDeviceId()); in createVirtualDevice_closeMultipleTimes_isSafe() 294 assertDeviceClosed(mVirtualDevice.getDeviceId()); in createVirtualDevice_closeAndRemoveAssociation_isSafe_withListener() 296 assertDeviceClosed(mVirtualDevice.getDeviceId()); in createVirtualDevice_closeAndRemoveAssociation_isSafe_withListener() 321 assertDeviceClosed(mVirtualDevice.getDeviceId()); in createVirtualDevice_removeAssociationAndClose_isSafe_withListener() 323 assertDeviceClosed(mVirtualDevice.getDeviceId()); in createVirtualDevice_removeAssociationAndClose_isSafe_withListener() [all …]
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/ |
D | NativeCameraManager.java | 54 public int getDeviceId(String cameraId) { in getDeviceId() method in NativeCameraManager 55 return getDeviceId(mNativeCameraManagerPtr, Objects.requireNonNull(cameraId)); in getDeviceId() 85 private static native int getDeviceId(long ptr, String cameraId); in getDeviceId() method in NativeCameraManager
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/telephony/ |
D | Telephony.kt | 33 fun getDeviceId(): String? { in getDeviceId() method 35 return telephonyManager.getDeviceId() in getDeviceId()
|
/cts/tests/input/src/android/input/cts/ |
D | GamepadWithAccessibilityTest.kt | 123 assertNotEquals(keyEvent.getDeviceId(), VIRTUAL_KEYBOARD) in testDeviceId() 124 assertEquals(keyEvent.getDeviceId(), uinputDevice.getDeviceId()) in testDeviceId()
|
D | SimultaneousTouchAndStylusTest.kt | 116 withDeviceId(touchScreen.getDeviceId()), in testLeftTouchRightStylusMove() 121 withDeviceId(stylus.getDeviceId()), in testLeftTouchRightStylusMove() 217 withDeviceId(touchScreen.getDeviceId()), in testLeftTouchRightStylusHover() 222 withDeviceId(stylus.getDeviceId()), in testLeftTouchRightStylusHover()
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | VirtualAudioTest.java | 130 grantRecordAudioPermission(mVirtualDevice.getDeviceId()); in setUp() 138 mVirtualDevice.getDeviceId()); in virtualDevice_hasAudioInput_withoutFlag_isFalse() 151 mVirtualDevice.getDeviceId()); in virtualDevice_hasAudioInput_withoutMicrophoneAndCustomPolicy() 168 mVirtualDevice.getDeviceId()); in virtualDevice_hasAudioInput_withMicrophone_isTrue() 193 mVirtualDevice.getDeviceId()); in multipleVirtualDevices_hasAudioInput_microphoneCapabilitiesOrCustomPolicy() 198 secondDevice.getDeviceId()); in multipleVirtualDevices_hasAudioInput_microphoneCapabilitiesOrCustomPolicy() 215 .createDeviceContext(secondDevice.getDeviceId()); in virtualDevice_hasAudioInput_withDefaultAudioPolicy_manualAudioPolicy() 234 secondDevice.getDeviceId()); in virtualDevice_hasAudioInput_withDefaultAudioPolicy_manualAudioPolicy() 254 secondDevice.getDeviceId()); in virtualDevice_noAudioInput_withDefaultAudioPolicy_isFalse()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraNdkTest.java | 123 assertThat(nativeCameraManager.getDeviceId(cameraId)).isEqualTo( in getCameraIds_defaultDevice() 132 .createDeviceContext(mVirtualDevice.getDeviceId()) in getCameraIds_virtualDevice() 144 assertThat(nativeCameraManager.getDeviceId( in getCameraIds_virtualDevice() 145 Iterables.getOnlyElement(ndkCameras))).isEqualTo(mVirtualDevice.getDeviceId()); in getCameraIds_virtualDevice()
|
D | VirtualCameraPermissionTest.java | 122 mVirtualDevice.getDeviceId()); in setUp() 135 VirtualCameraUtils.grantCameraPermission(mVirtualDevice.getDeviceId()); in openCamera_withPermission_succeeds() 160 grantCameraPermission(mVirtualDevice.getDeviceId()); in virtualDevice_cameraPermissionGranted()
|
D | VirtualCameraTest.java | 168 VirtualCameraUtils.grantCameraPermission(mVirtualDevice.getDeviceId()); in setUp() 364 setupCameraManagerForDeviceId(defaultPolicyVd.getDeviceId()); in defaultPolicyVdContext_cannotAccessVirtualCamera() 380 .isEqualTo(mVirtualDevice.getDeviceId()); in virtualCamera_hasCorrectDeviceId() 642 mVirtualDevice.getDeviceId()); in defaultPolicyVdContext_getNumberOfCameras_includesDefaultCameras() 668 mVirtualDevice.getDeviceId()); in vdContext_getNumberOfCameras_includesOnlyVirtualCamera() 679 mVirtualDevice.getDeviceId()); in vdContext_getCameraInfo_returnsVirtualCameraInfo() 696 mVirtualDevice.getDeviceId()); in vdContext_legacyCameraPreview_withVirtualCamera() 817 setupCameraManagerForDeviceId(mVirtualDevice.getDeviceId()); in setupVirtualDeviceCameraManager()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DeviceIdentifiersTest.java | 51 TelephonyManager::getDeviceId), telephonyManager.getDeviceId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
|
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/ |
D | DeviceIdentifierAppOpTest.java | 57 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testAccessToDeviceIdentifiersWithAppOp()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | VerifyInputEventTest.java | 254 assertEquals(INJECTED_EVENT_DEVICE_ID, received.getDeviceId()); in testDeviceIdBecomesVirtualForInjectedKeys() 258 assertEquals(INJECTED_EVENT_DEVICE_ID, verified.getDeviceId()); in testDeviceIdBecomesVirtualForInjectedKeys() 285 assertEquals(INJECTED_EVENT_DEVICE_ID, received.getDeviceId()); in testDeviceIdBecomesVirtualForInjectedMotions() 289 assertEquals(INJECTED_EVENT_DEVICE_ID, verified.getDeviceId()); in testDeviceIdBecomesVirtualForInjectedMotions() 319 assertEquals(INJECTED_EVENT_DEVICE_ID, verified.getDeviceId()); in compareKeys() 344 assertEquals(INJECTED_EVENT_DEVICE_ID, verified.getDeviceId()); in compareMotions()
|
D | KeyEventTest.java | 322 assertEquals(deviceId, mKeyEvent.getDeviceId()); in testGetDeviceId() 672 assertEquals(mKeyEvent.getDeviceId(), keyEvent.getDeviceId()); in testWriteToParcel() 720 assertEquals(mKeyEvent.getDeviceId(), newEvent.getDeviceId()); in testChangeAction() 737 assertEquals(mKeyEvent.getDeviceId(), newEvent.getDeviceId()); in testChangeFlags() 758 assertEquals(mKeyEvent.getDeviceId(), newEvent.getDeviceId()); in testChangeTimeRepeat() 860 assertEquals(javaKeyEvent.getDeviceId(), keyEventFromNative.getDeviceId()); in testNativeToJavaConverter()
|
/cts/tests/tests/contactkeysprovider/src/android/provider/cts/contactkeys/ |
D | E2eeContactKeysManagerTest.java | 113 assertThat(contactKey.getDeviceId()).isEqualTo(DEVICE_ID); in testUpdateOrInsertContactKey_insertsNewEntry() 210 assertThat(actualKey.getDeviceId()).isNull(); in testGetAllContactKeys_callerIsSameAsOwner() 231 assertThat(contactKey.getDeviceId()).isNull(); in testGetAllContactKeys_callerIsDifferentFromOwner() 357 assertThat(newSelfKey.getDeviceId()).isEqualTo(DEVICE_ID); in testUpdateOrInsertSelfKey_insertsNewEntry() 447 assertThat(selfKey.getDeviceId()).isEqualTo(DEVICE_ID); in testGetSelfKey_returnsExpectedSelfKey() 478 assertThat(actualKey.getDeviceId()).isNull(); in testGetAllSelfKeys_callerIsSameAsOwner() 497 assertThat(selfKey.getDeviceId()).isNull(); in testGetAllSelfKeys_callerIsDifferentFromOwner()
|
/cts/hostsidetests/neuralnetworks/src/com/android/nn/host/cts/ |
D | NeuralNetworksStatsTests.java | 102 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksCompilationCompletedNative() 151 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksCompilationFailedNative() 195 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksExecutionCompletedNative() 254 assertThat(atom.getDeviceId()).isNotEmpty(); in testAppNeuralNetworksExecutionFailedNative()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DeviceIdentifiersTest.java | 58 String deviceId = TestApis.telephony().getDeviceId(); in getDeviceId_smsAppReturnsSameValue() 63 assertThat(testApp.telephonyManager().getDeviceId()).isEqualTo(deviceId); in getDeviceId_smsAppReturnsSameValue()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | DeviceIdentifiersTest.java | 40 assertAccessDenied(telephonyManager::getDeviceId, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers()
|
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/ |
D | ClipboardTestActivity.java | 55 int deviceId = getIntent().getIntExtra(EXTRA_DEVICE_ID, getDeviceId()); in processAction()
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorTest.java | 151 Context deviceContext = mContext.createDeviceContext(mVirtualDevice.getDeviceId()); in setUpVirtualSensor() 213 assertThat(mVirtualSensor.getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in getSensorList_returnsVirtualSensor() 266 Context deviceContext = mContext.createDeviceContext(mVirtualDevice.getDeviceId()); in createVirtualSensor_multipleSensorsSameType() 273 assertThat(virtualSensors.get(0).getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in createVirtualSensor_multipleSensorsSameType() 276 assertThat(virtualSensors.get(1).getDeviceId()).isEqualTo(mVirtualDevice.getDeviceId()); in createVirtualSensor_multipleSensorsSameType()
|
/cts/tests/tests/telephony3/src/android/telephony3/cts/ |
D | TelephonyManagerTest.java | 66 mTelephonyManager.getDeviceId()); in testDeviceIdentifiersAreNotAccessible()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | UsbMicrophoneTester.java | 38 sb.append(" Id : " + usbDevice.getDeviceId() + "\n"); in getUSBDeviceListString()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualInputDeviceGenericTest.java | 121 new InputDeviceRemovedWaiter(mInputManager, deviceHolder.getDeviceId())) { in close_removesInputDevice() argument 137 new InputDeviceRemovedWaiter(mInputManager, deviceHolder.getDeviceId())) { in closeVirtualDevice_removesInputDevice() argument
|
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceMultiDeviceKeyEventTest.java | 188 assertEquals("DeviceId: " + log, expectedKeyEvent.getDeviceId(), in assertReceivedKeyEvent() 189 receivedKeyEvent.getDeviceId()); in assertReceivedKeyEvent()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/ |
D | android_virtualdevice_cts_camera_util_NativeCameraManager.cc | 239 jint getDeviceId(JNIEnv* env, jclass, jlong cameraManagerPtr, jstring cameraId) { in getDeviceId() function 264 JNINativeMethod{"getDeviceId", "(JLjava/lang/String;)I", (void*)getDeviceId},
|