Home
last modified time | relevance | path

Searched refs:USER_ID (Results 1 – 12 of 12) sorted by relevance

/cts/tests/wearable/src/android/wearable/cts/
DCtsWearableSensingServiceDeviceTest.java92 private static final int USER_ID = UserHandle.myUserId(); field in CtsWearableSensingServiceDeviceTest
498 return runShellCommand("cmd wearable_sensing get-bound-package %d", USER_ID); in getWearableSensingServiceComponent()
503 USER_ID, service, TEMPORARY_SERVICE_DURATION); in setTestableWearableSensingService()
507 runShellCommand("cmd wearable_sensing set-temporary-service %d", USER_ID); in clearTestableWearableSensingService()
512 USER_ID, FAKE_APP_PACKAGE); in callStartDetection()
517 USER_ID, FAKE_APP_PACKAGE); in callStartDetectionMixed()
522 USER_ID, FAKE_APP_PACKAGE); in callStartDetectionDefault()
535 USER_ID, FAKE_APP_PACKAGE); in callStopDetection()
539 runShellCommand("cmd wearable_sensing provide-data-stream %d", USER_ID); in provideDataStream()
544 USER_ID, KEY_FOR_PROVIDE_DATA, VALUE_TO_SEND); in provideData()
[all …]
DWearableSensingManagerTest.java70 private static final int USER_ID = UserHandle.myUserId(); field in WearableSensingManagerTest
484 runShellCommand("cmd wearable_sensing set-temporary-service %d", USER_ID); in clearTestableWearableSensingService()
494 return runShellCommand("cmd wearable_sensing get-bound-package %d", USER_ID); in getWearableSensingServiceComponent()
500 USER_ID, service, TEMPORARY_SERVICE_DURATION); in setTestableWearableSensingService()
DWearableSensingManagerIsolatedServiceTest.java100 private static final int USER_ID = UserHandle.myUserId(); field in WearableSensingManagerIsolatedServiceTest
670 runShellCommand("cmd wearable_sensing set-temporary-service %d", USER_ID); in clearTestableWearableSensingService()
680 return runShellCommand("cmd wearable_sensing get-bound-package %d", USER_ID); in getWearableSensingServiceComponent()
686 USER_ID, service, TEMPORARY_SERVICE_DURATION); in setTestableWearableSensingService()
/cts/tests/ambientcontext/src/android/ambientcontext/cts/
DCtsAmbientContextDetectionServiceDeviceTest.java68 private static final int USER_ID = UserHandle.myUserId(); field in CtsAmbientContextDetectionServiceDeviceTest
174 return runShellCommand("cmd ambient_context get-bound-package %d", USER_ID); in getAmbientContextDetectionServiceComponent()
185 USER_ID, FAKE_APP_PACKAGE); in callStartDetection()
197 USER_ID, FAKE_APP_PACKAGE); in callQueryServiceStatus()
203 USER_ID, service, TEMPORARY_SERVICE_DURATION); in setTestableAmbientContextDetectionService()
207 runShellCommand("cmd ambient_context set-temporary-service %d", USER_ID); in clearTestableAmbientContextDetectionService()
/cts/tests/rotationresolverservice/src/android/rotationresolverservice/cts/
DCtsRotationResolverServiceDeviceTest.java65 private static final String USER_ID = "0"; field in CtsRotationResolverServiceDeviceTest
154 return runShellCommand("cmd resolver get-bound-package %s", USER_ID); in getRotationResolverServiceComponent()
168 runShellCommand("cmd resolver resolve-rotation %s", USER_ID); in callResolveRotation()
174 USER_ID, service, TEMPORARY_SERVICE_DURATION); in setTestableRotationResolverService()
178 runShellCommand("cmd resolver set-temporary-service %s", USER_ID); in clearTestableRotationResolverService()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2022_20230.java32 public static final int USER_ID = 0; field in CVE_2022_20230
51 AdbUtils.runCommandLine("dpm set-device-owner --user " + USER_ID + " '" + TEST_PKG + "/" in testPocCVE_2022_20230()
DCVE_2021_39796.java31 static final int USER_ID = 0; field in CVE_2021_39796
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20420/
DCVE_2022_20420.java53 private static final int USER_ID = 0; field in CVE_2022_20420
86 mPolicyManager.setActiveAdmin(mComponentName, true, USER_ID); in testDeviceAdminAppRestricted()
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUsersTest.kt173 assertThat(TestApis.users().find(UserHandle.of(USER_ID)).id()).isEqualTo(USER_ID) in <lambda>()
178 assertThat(TestApis.users().find(USER_ID).id()).isEqualTo(USER_ID) in <lambda>()
612 private const val USER_ID = NON_EXISTING_USER_ID in <lambda>() constant
DUserReferenceTest.java67 private static final int USER_ID = NON_EXISTING_USER_ID; field in UserReferenceTest
68 public static final UserHandle USER_HANDLE = new UserHandle(USER_ID);
84 assertThat(UserReference.of(USER_HANDLE).id()).isEqualTo(USER_ID); in of_returnsUserReferenceWithValidId()
89 assertThat(TestApis.users().find(USER_ID).id()).isEqualTo(USER_ID); in id_returnsId()
94 assertThat(TestApis.users().find(USER_ID).userHandle().getIdentifier()).isEqualTo(USER_ID); in userHandle_referencesId()
/cts/tests/credentials/src/android/credentials/cts/
DCtsCredentialProviderServiceDeviceTest.java103 private static final int USER_ID = UserHandle.myUserId(); field in CtsCredentialProviderServiceDeviceTest
790 return runShellCommand("settings get secure credential_service %d", USER_ID); in getCredentialProviderServiceComponent()
794 return runShellCommand("settings get secure credential_service_primary %d", USER_ID); in getCredentialProviderServicePrimaryComponent()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceBasicTest.java123 private static final int USER_ID = UserHandle.myUserId(); field in HotwordDetectionServiceBasicTest
2289 USER_ID, MAIN_WEARABLE_SENSING_SERVICE_NAME, TEMPORARY_SERVICE_DURATION_MS); in setTestableWearableSensingService()
2294 runShellCommand("cmd wearable_sensing set-temporary-service %d", USER_ID); in clearTestableWearableSensingService()