Home
last modified time | relevance | path

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

/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunasPermissionsTest.java54 int currentUser = getDevice().getCurrentUser(); in testRunasCanConnectToAppsSocket() local
57 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket()
60 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DListForegroundAffiliatedUsersTest.java35 UserHandle currentUser = invokeStaticMethodWithShellPermissions(() -> getCurrentUser()); in testListForegroundAffiliatedUsers_onlyForegroundUser() local
36 Log.d(TAG, "currentUser: " + currentUser + " users: " + users); in testListForegroundAffiliatedUsers_onlyForegroundUser()
38 assertWithMessage("foreground users").that(users).containsExactly(currentUser); in testListForegroundAffiliatedUsers_onlyForegroundUser()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DPackageManagerStatsTestsBase.java79 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local
81 "cmd package list packages -U --user " + currentUser + " " + pkgName); in getAppUid()
88 + currentUser); in getAppUid()
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java77 UserReference currentUser = TestApis.users().current(); in getWithContext() local
126 currentUser.switchTo(); in getWithContext()
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java127 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local
129 "cmd package list packages -U --user " + currentUser + " " + pkgName); in getAppUid()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java145 List<StatsLog.EventMetricData> data, boolean isHibernating, int currentUser) { in assertUserLevelHibernationStateChangedEvent() argument
150 assertThat(atom.getUserId()).isEqualTo(currentUser); in assertUserLevelHibernationStateChangedEvent()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/
DAppExitHostTest.java138 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local
140 "cmd package list packages -U --user " + currentUser + " " + pkgName); in getAppUid()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DDeviceAtomTestCase.java169 int currentUser = getDevice().getCurrentUser(); in getUid() local
171 + currentUser + " " + DEVICE_SIDE_TEST_PACKAGE); in getUid()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java110 UserHandle currentUser = UserHandle.of( in testLocationStorageAndRetrieval() local
116 builder.setUserToBeInsertedTo(currentUser); in testLocationStorageAndRetrieval()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DDeviceUtils.java228 int currentUser = device.getCurrentUser(); in getAppUid() local
230 + currentUser + " " + pkgName); in getAppUid()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java276 int currentUser = getDevice().getCurrentUser(); in getUid() local
279 "cmd package list packages -U --user " + currentUser + " " in getUid()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1850 UserReference currentUser = TestApis.users().current();
1851 if (!currentUser.equals(user)) {
1853 mOriginalSwitchedUser = currentUser;
1860 UserReference currentUser = TestApis.users().current();
1861 if (!currentUser.equals(user)) {