Home
last modified time | relevance | path

Searched refs:DEVICE_ID_DEFAULT (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java20 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()
DCameraDeviceBinderTest.java20 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/
DContextTest.java19 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/
DClipboardService.java24 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/
DAppOpsNotedWatcherTest.java78 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()
DAppOpsStartedWatcherTest.java76 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()
DAppOpsActiveWatcherTest.java90 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()
DAppOpsDeviceAwareServiceTest.java95 noteProxyOpWithDeviceId(TestableContext.DEVICE_ID_DEFAULT); in noteProxyOp_proxyAppOnDefaultDevice()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioManagerUnitTest.java23 import static android.content.Context.DEVICE_ID_DEFAULT;
52 Context defaultDeviceContext = getVirtualDeviceMockContext(DEVICE_ID_DEFAULT, /*vdm=*/ in testAudioManager_playSoundWithDefaultDeviceContext()
DAudioTrackUnitTest.java22 import static android.content.Context.DEVICE_ID_DEFAULT;
61 DEVICE_ID_DEFAULT, /*vdm=*/null); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
DAudioRecordUnitTest.java22 import static android.content.Context.DEVICE_ID_DEFAULT;
59 DEVICE_ID_DEFAULT, /*vdm=*/null); in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId()
/frameworks/base/core/java/android/content/
DAttributionSource.java127 /*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/
DVirtualDevice.java67 if (id <= Context.DEVICE_ID_DEFAULT) { in VirtualDevice()
69 + Context.DEVICE_ID_DEFAULT); in VirtualDevice()
DVirtualDeviceManager.java171 "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/
DSensorManager.cpp50 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/
DVirtualDeviceTest.java24 import static android.content.Context.DEVICE_ID_DEFAULT;
81 mVirtualDevice, DEVICE_ID_DEFAULT, PERSISTENT_ID, DEVICE_NAME)); in build_defaultId_shouldThrowIllegalArgumentException()
DVirtualDeviceManagerServiceTest.java23 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/
DProxyManager.java18 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/
DVirtualDeviceManagerService.java113 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/
DVibrationSettingsTest.java669 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/
DRavenwoodContext.java150 return Context.DEVICE_ID_DEFAULT; in getDeviceId()
/frameworks/base/media/java/android/media/
DPlayerBase.java21 import static android.content.Context.DEVICE_ID_DEFAULT;
572 if (deviceId == DEVICE_ID_DEFAULT) { in resolvePlaybackSessionId()
/frameworks/base/services/fakes/java/com/android/server/
DFakeClipboardService.java63 Preconditions.checkArgument(deviceId == Context.DEVICE_ID_DEFAULT, in checkArguments()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodBindingController.java20 import static android.content.Context.DEVICE_ID_DEFAULT;
97 @GuardedBy("ImfLock.class") private int mDeviceIdToShowIme = DEVICE_ID_DEFAULT;
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java23 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()

123