/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
D | CameraBinderTest.java | 20 import static android.content.Context.DEVICE_ID_DEFAULT; 82 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testNumberOfCameras() 92 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, in testCameraInfo() 170 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testConnect() 270 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, in testConnectDevice()
|
D | CameraDeviceBinderTest.java | 20 import static android.content.Context.DEVICE_ID_DEFAULT; 251 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in setUp() 420 DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in testCameraCharacteristics()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 19 import static android.content.Context.DEVICE_ID_DEFAULT; 255 assertEquals(systemContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForSystemContext() local 264 assertEquals(systemUiContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForSystemUiContext() local 273 assertEquals(testContext.getDeviceId(), DEVICE_ID_DEFAULT); in testDeviceIdForTestContext() local
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 24 import static android.content.Context.DEVICE_ID_DEFAULT; 195 Clipboard clipboard = getClipboardLocked(0, DEVICE_ID_DEFAULT); in ClipboardService() 424 return DEVICE_ID_DEFAULT; in getIntendingDeviceId() 431 && (!virtualDeviceIds.isEmpty() || requestedDeviceId != DEVICE_ID_DEFAULT)) { in getIntendingDeviceId() 448 if (requestedDeviceId == DEVICE_ID_DEFAULT) { in getIntendingDeviceId() 449 return allDevicesHaveDefaultClipboard ? DEVICE_ID_DEFAULT : DEVICE_ID_INVALID; in getIntendingDeviceId() 458 ? DEVICE_ID_DEFAULT in getIntendingDeviceId() 463 || (clipboardDeviceId == DEVICE_ID_DEFAULT && allDevicesHaveDefaultClipboard)) { in getIntendingDeviceId() 469 return deviceUsesDefaultClipboard(fallbackDeviceId) ? DEVICE_ID_DEFAULT : fallbackDeviceId; in getIntendingDeviceId() 473 if (deviceId == DEVICE_ID_DEFAULT || mVdm == null) { in deviceUsesDefaultClipboard() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 78 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps() 84 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps() 110 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchNotedOps()
|
D | AppOpsStartedWatcherTest.java | 76 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps() 84 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps() 112 eq(getContext().getAttributionTag()), eq(Context.DEVICE_ID_DEFAULT), in testWatchStartedOps()
|
D | AppOpsActiveWatcherTest.java | 90 isNull(), eq(Context.DEVICE_ID_DEFAULT), eq(true), anyInt(), anyInt()); in testWatchActiveOps() 109 eq(Context.DEVICE_ID_DEFAULT), eq(false), anyInt(), anyInt()); in testWatchActiveOps() 147 eq(Context.DEVICE_ID_DEFAULT), eq(true), anyInt(), anyInt()); in testWatchActiveOps()
|
D | AppOpsDeviceAwareServiceTest.java | 95 noteProxyOpWithDeviceId(TestableContext.DEVICE_ID_DEFAULT); in noteProxyOp_proxyAppOnDefaultDevice()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | AudioManagerUnitTest.java | 23 import static android.content.Context.DEVICE_ID_DEFAULT; 52 Context defaultDeviceContext = getVirtualDeviceMockContext(DEVICE_ID_DEFAULT, /*vdm=*/ in testAudioManager_playSoundWithDefaultDeviceContext()
|
D | AudioTrackUnitTest.java | 22 import static android.content.Context.DEVICE_ID_DEFAULT; 61 DEVICE_ID_DEFAULT, /*vdm=*/null); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
|
D | AudioRecordUnitTest.java | 22 import static android.content.Context.DEVICE_ID_DEFAULT; 59 DEVICE_ID_DEFAULT, /*vdm=*/null); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
|
/frameworks/base/core/java/android/content/ |
D | AttributionSource.java | 127 /*renouncedPermissions*/ null, Context.DEVICE_ID_DEFAULT, /*next*/ null); in AttributionSource() 134 Context.DEVICE_ID_DEFAULT, /*next*/ null); in AttributionSource() 144 ? renouncedPermissions.toArray(new String[0]) : null, Context.DEVICE_ID_DEFAULT, in AttributionSource() 286 .setDeviceId(Context.DEVICE_ID_DEFAULT) in myAttributionSource() 475 return Context.DEVICE_ID_DEFAULT; in getNextDeviceId() 786 mAttributionSourceState.deviceId = Context.DEVICE_ID_DEFAULT; in build()
|
/frameworks/base/core/java/android/companion/virtual/ |
D | VirtualDevice.java | 67 if (id <= Context.DEVICE_ID_DEFAULT) { in VirtualDevice() 69 + Context.DEVICE_ID_DEFAULT); in VirtualDevice()
|
D | VirtualDeviceManager.java | 171 "default:" + Context.DEVICE_ID_DEFAULT; 260 if (deviceId == Context.DEVICE_ID_INVALID || deviceId == Context.DEVICE_ID_DEFAULT) { in getVirtualDevice() 342 if (deviceId == Context.DEVICE_ID_DEFAULT) { in getDevicePolicy() 367 return Context.DEVICE_ID_DEFAULT; in getDeviceIdForDisplayId() 371 return Context.DEVICE_ID_DEFAULT; in getDeviceIdForDisplayId()
|
/frameworks/native/libs/sensor/ |
D | SensorManager.cpp | 50 static constexpr int DEVICE_ID_DEFAULT = 0; variable 78 return DEVICE_ID_DEFAULT; in getDeviceIdForUid() 228 if (mDeviceId == DEVICE_ID_DEFAULT) { in assertStateLocked() 266 if (mDeviceId == DEVICE_ID_DEFAULT) { in assertStateLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | VirtualDeviceTest.java | 24 import static android.content.Context.DEVICE_ID_DEFAULT; 81 mVirtualDevice, DEVICE_ID_DEFAULT, PERSISTENT_ID, DEVICE_NAME)); in build_defaultId_shouldThrowIllegalArgumentException()
|
D | VirtualDeviceManagerServiceTest.java | 23 import static android.content.Context.DEVICE_ID_DEFAULT; 415 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_invalidDisplayId_returnsDefault() 417 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_invalidDisplayId_returnsDefault() 423 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_defaultDisplayId_returnsDefault() 425 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_defaultDisplayId_returnsDefault() 431 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_nonExistentDisplayId_returnsDefault() 433 .isEqualTo(DEVICE_ID_DEFAULT); in getDeviceIdForDisplayId_nonExistentDisplayId_returnsDefault() 454 assertThat(mVdm.isValidVirtualDeviceId(DEVICE_ID_DEFAULT)).isFalse(); in isDeviceIdValid_defaultDeviceId_returnsFalse() 455 assertThat(mLocalService.isValidVirtualDeviceId(DEVICE_ID_DEFAULT)).isFalse(); in isDeviceIdValid_defaultDeviceId_returnsFalse() 480 assertThat(mVdm.getDevicePolicy(DEVICE_ID_DEFAULT, POLICY_TYPE_SENSORS)) in getDevicePolicy_defaultDeviceId_returnsDefault() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | ProxyManager.java | 18 import static android.content.Context.DEVICE_ID_DEFAULT; 370 if (deviceId == DEVICE_ID_DEFAULT || deviceId == DEVICE_ID_INVALID) { in isProxyedDeviceId() 842 if (uidDeviceId != DEVICE_ID_DEFAULT && uidDeviceId != DEVICE_ID_INVALID) { in getFirstDeviceIdForUidLocked() 877 if (deviceId == DEVICE_ID_DEFAULT || deviceId == DEVICE_ID_INVALID) { in updateDeviceIdsIfNeededLocked() 889 client.mDeviceId = DEVICE_ID_DEFAULT; in updateDeviceIdsIfNeededLocked() 896 if (deviceId != DEVICE_ID_DEFAULT && deviceId != DEVICE_ID_INVALID in updateDeviceIdsIfNeededLocked()
|
/frameworks/base/services/companion/java/com/android/server/companion/virtual/ |
D | VirtualDeviceManagerService.java | 113 Context.DEVICE_ID_DEFAULT + 1); 569 return Context.DEVICE_ID_DEFAULT; in getDeviceIdForDisplayId() 578 return Context.DEVICE_ID_DEFAULT; in getDeviceIdForDisplayId() 636 if (getDeviceIdForDisplayId(displayId) == Context.DEVICE_ID_DEFAULT) { in isVirtualDeviceOwnedMirrorDisplay() 891 if (deviceId == Context.DEVICE_ID_DEFAULT) { in getPersistentIdForDevice()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 669 assertVibrationNotIgnoredForUsageAndDevice(usage, Context.DEVICE_ID_DEFAULT); in shouldIgnoreVibrationFromVirtualDevices_defaultDevice_neverIgnored() 906 assertVibrationIgnoredForUsageAndDevice(usage, Context.DEVICE_ID_DEFAULT, expectedStatus); in assertVibrationIgnoredForUsage() 920 Context.DEVICE_ID_DEFAULT, null, null); in assertVibrationIgnoredForAttributes() 931 assertVibrationNotIgnoredForUsageAndFlagsAndDevice(usage, Context.DEVICE_ID_DEFAULT, flags); in assertVibrationNotIgnoredForUsageAndFlags() 951 Context.DEVICE_ID_DEFAULT, null, null); in assertVibrationNotIgnoredForAttributes()
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodContext.java | 150 return Context.DEVICE_ID_DEFAULT; in getDeviceId()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 21 import static android.content.Context.DEVICE_ID_DEFAULT; 572 if (deviceId == DEVICE_ID_DEFAULT) { in resolvePlaybackSessionId()
|
/frameworks/base/services/fakes/java/com/android/server/ |
D | FakeClipboardService.java | 63 Preconditions.checkArgument(deviceId == Context.DEVICE_ID_DEFAULT, in checkArguments()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodBindingController.java | 20 import static android.content.Context.DEVICE_ID_DEFAULT; 97 @GuardedBy("ImfLock.class") private int mDeviceIdToShowIme = DEVICE_ID_DEFAULT;
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 23 import static android.content.Context.DEVICE_ID_DEFAULT; 581 EXTRA_VIRTUAL_DEVICE_ID, DEVICE_ID_DEFAULT); in setupRuntimeSensorBroadcastReceiver() 774 deviceId = DEVICE_ID_DEFAULT; in createDirectChannelImpl() 1225 if (deviceId == DEVICE_ID_DEFAULT) { in isDeviceSensorPolicyDefault()
|