Home
last modified time | relevance | path

Searched refs:currentUser (Results 1 – 10 of 10) 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/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java123 final int currentUser = getDevice().getCurrentUser(); in getAppUid() local
125 "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.java227 int currentUser = device.getCurrentUser(); in getAppUid() local
229 + currentUser + " " + pkgName); in getAppUid()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java262 int currentUser = getDevice().getCurrentUser(); in getUid() local
265 "cmd package list packages -U --user " + currentUser + " " in getUid()