Home
last modified time | relevance | path

Searched refs:getDeviceId (Results 1 – 25 of 53) sorted by relevance

123

/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DDeviceAssociationTest.java136 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/
DVirtualDeviceManagerBasicTest.java159 .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/
DNativeCameraManager.java54 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/
DTelephony.kt33 fun getDeviceId(): String? { in getDeviceId() method
35 return telephonyManager.getDeviceId() in getDeviceId()
/cts/tests/input/src/android/input/cts/
DGamepadWithAccessibilityTest.kt123 assertNotEquals(keyEvent.getDeviceId(), VIRTUAL_KEYBOARD) in testDeviceId()
124 assertEquals(keyEvent.getDeviceId(), uinputDevice.getDeviceId()) in testDeviceId()
DSimultaneousTouchAndStylusTest.kt116 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/
DVirtualAudioTest.java130 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/
DVirtualCameraNdkTest.java123 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()
DVirtualCameraPermissionTest.java122 mVirtualDevice.getDeviceId()); in setUp()
135 VirtualCameraUtils.grantCameraPermission(mVirtualDevice.getDeviceId()); in openCamera_withPermission_succeeds()
160 grantCameraPermission(mVirtualDevice.getDeviceId()); in virtualDevice_cameraPermissionGranted()
DVirtualCameraTest.java168 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/
DDeviceIdentifiersTest.java51 TelephonyManager::getDeviceId), telephonyManager.getDeviceId()); in testProfileOwnerCanGetDeviceIdentifiersWithPermission()
/cts/hostsidetests/appsecurity/test-apps/DeviceIdentifiers/src/android/appsecurity/cts/deviceids/
DDeviceIdentifierAppOpTest.java57 (tm) -> tm.getDeviceId()), telephonyManager.getDeviceId()); in testAccessToDeviceIdentifiersWithAppOp()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java254 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()
DKeyEventTest.java322 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/
DE2eeContactKeysManagerTest.java113 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/
DNeuralNetworksStatsTests.java102 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/
DDeviceIdentifiersTest.java58 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/
DDeviceIdentifiersTest.java40 assertAccessDenied(telephonyManager::getDeviceId, mayReturnNull); in testProfileOwnerOnPersonalDeviceCannotGetDeviceIdentifiers()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DClipboardTestActivity.java55 int deviceId = getIntent().getIntExtra(EXTRA_DEVICE_ID, getDeviceId()); in processAction()
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorTest.java151 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/
DTelephonyManagerTest.java66 mTelephonyManager.getDeviceId()); in testDeviceIdentifiersAreNotAccessible()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUsbMicrophoneTester.java38 sb.append(" Id : " + usbDevice.getDeviceId() + "\n"); in getUSBDeviceListString()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceGenericTest.java121 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/
DInputDeviceMultiDeviceKeyEventTest.java188 assertEquals("DeviceId: " + log, expectedKeyEvent.getDeviceId(), in assertReceivedKeyEvent()
189 receivedKeyEvent.getDeviceId()); in assertReceivedKeyEvent()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/
Dandroid_virtualdevice_cts_camera_util_NativeCameraManager.cc239 jint getDeviceId(JNIEnv* env, jclass, jlong cameraManagerPtr, jstring cameraId) { in getDeviceId() function
264 JNINativeMethod{"getDeviceId", "(JLjava/lang/String;)I", (void*)getDeviceId},

123