/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppInstance.java | 99 private final UserReference mUser; field in TestAppInstance 118 mUser = user; in TestAppInstance() 156 return mUser; in user() 171 mTestApp.uninstall(mUser); in uninstall() 294 ProcessReference process = mTestApp.pkg().runningProcess(mUser); in stop() 311 return mTestApp.pkg().runningProcess(mUser); in process() 341 return new RemoteDevicePolicyManagerWrapper(mConnector, mUser, mTestApp.pkg()); in devicePolicyManager() 350 return new RemoteUserManagerWrapper(mConnector, mUser, mTestApp.pkg()); in userManager() 359 return new RemoteWifiManagerWrapper(mConnector, mUser, mTestApp.pkg()); in wifiManager() 368 return new RemoteHardwarePropertiesManagerWrapper(mConnector, mUser, mTestApp.pkg()); in hardwarePropertiesManager() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/ |
D | ActivityEventsImpl.java | 27 private final UserHandle mUser; field in ActivityEventsImpl 31 mUser = activity.user(); in ActivityEventsImpl() 36 mUser = user; in ActivityEventsImpl() 44 .onUser(mUser); in activityCreated() 52 .onUser(mUser); in activityDestroyed() 60 .onUser(mUser); in activityPaused() 68 .onUser(mUser); in activityRestarted() 76 .onUser(mUser); in activityResumed() 85 .onUser(mUser); in activityStarted() 94 .onUser(mUser); in activityStopped()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | ProcessReference.java | 33 private final UserReference mUser; field in ProcessReference 42 mUser = user; in ProcessReference() 70 return mUser; in user() 97 ProcessReference other = mPackage.runningProcess(mUser); in kill() 118 mPackage.checkCanGrantOrRevokePermission(mUser, permission); in getGrantablePermission() 129 return mPackage.hashCode() + mPid + mUser.hashCode(); in hashCode() 139 return other.mUser.equals(mUser) in equals() 147 + ", processId=" + mPid + ", user=" + mUser + "}"; in toString()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | LauncherAppsTests.java | 104 private UserHandle mUser; field in LauncherAppsTests 117 mUser = getUserHandleArgument("testUser", arguments); in setUp() 120 + "user " + mUser); in setUp() 136 expectSecurityException(() -> mLauncherApps.getActivityList(null, mUser), in testGetActivitiesForUserFails() 143 mLauncherApps.getActivityList(null, mUser); in testSimpleAppInstalledForUser() 152 assertThat(activity.getUser()).isEqualTo(mUser); in testSimpleAppInstalledForUser() 158 mLauncherApps.getApplicationInfo(SIMPLE_APP_PACKAGE, /* flags= */ 0, mUser); in testSimpleAppInstalledForUser() 160 assertThat(UserHandle.getUserHandleForUid(ai.uid)).isEqualTo(mUser); in testSimpleAppInstalledForUser() 165 assertThat(mLauncherApps.getActivityList(null, mUser)).isEmpty(); in testAccessPrimaryProfileFromManagedProfile() 168 () -> mLauncherApps.getApplicationInfo(SIMPLE_APP_PACKAGE, /* flags= */ 0, mUser), in testAccessPrimaryProfileFromManagedProfile() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent.java | 62 mUser = field in DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent.DeviceAdminTransferAffiliatedProfileOwnershipCompleteEventQuery 81 return mUser; in whereUser() 89 if (!mUser.matches(event.mUser)) { in filter() 100 .field("user", mUser) in describeQuery() 154 mEvent.mUser = new SerializableParcelWrapper<>(user); in setUser() 160 protected SerializableParcelWrapper<UserHandle> mUser; field in DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent 172 if (mUser == null) { in user() 175 return mUser.get(); in user()
|
D | DeviceAdminPasswordExpiringEvent.java | 63 UserHandleQueryHelper<DeviceAdminPasswordExpiringEventQuery> mUser = field in DeviceAdminPasswordExpiringEvent.DeviceAdminPasswordExpiringEventQuery 90 return mUser; in whereUser() 101 if (!mUser.matches(event.mUser)) { in filter() 112 .field("user", mUser) in describeQuery() 165 mEvent.mUser = new SerializableParcelWrapper<>(userHandle); in setUserHandle() 171 protected SerializableParcelWrapper<UserHandle> mUser; field in DeviceAdminPasswordExpiringEvent 190 if (mUser == null) { in user() 193 return mUser.get(); in user()
|
D | DeviceAdminPasswordSucceededEvent.java | 63 UserHandleQueryHelper<DeviceAdminPasswordSucceededEventQuery> mUser = field in DeviceAdminPasswordSucceededEvent.DeviceAdminPasswordSucceededEventQuery 91 return mUser; in whereUser() 102 if (!mUser.matches(event.mUserHandle)) { in filter() 113 .field("userHandle", mUser) in describeQuery()
|
D | DeviceAdminPasswordChangedEvent.java | 63 UserHandleQueryHelper<DeviceAdminPasswordChangedEventQuery> mUser = field in DeviceAdminPasswordChangedEvent.DeviceAdminPasswordChangedEventQuery 91 return mUser; in whereUser() 102 if (!mUser.matches(event.mUserHandle)) { in filter() 113 .field("userHandle", mUser) in describeQuery()
|
D | DeviceAdminPasswordFailedEvent.java | 63 UserHandleQueryHelper<DeviceAdminPasswordFailedEventQuery> mUser = field in DeviceAdminPasswordFailedEvent.DeviceAdminPasswordFailedEventQuery 91 return mUser; in whereUser() 102 if (!mUser.matches(event.mUserHandle)) { in filter() 113 .field("userHandle", mUser) in describeQuery()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | PackagesTest.java | 76 private final UserReference mUser = TestApis.users().instrumented(); field in PackagesTest 127 Package pkg = TestApis.packages().install(mUser, TEST_APP_APK_FILE); in installedForUser_containsPackageInstalledForUser() 130 assertThat(TestApis.packages().installedForUser(mUser)).contains(pkg); in installedForUser_containsPackageInstalledForUser() 132 pkg.uninstall(mUser); in installedForUser_containsPackageInstalledForUser() 141 pkg = TestApis.packages().install(mUser, TEST_APP_APK_FILE); in installedForUser_doesNotContainPackageNotInstalledForUser() 148 pkg.uninstall(mUser); in installedForUser_doesNotContainPackageNotInstalledForUser() 156 () -> TestApis.packages().install(mUser, NON_EXISTING_APK_FILE)); in install_nonExistingPackage_throwsException() 174 () -> TestApis.packages().install(mUser, (File) /* apkFile= */ null)); in install_nullApkFile_throwsException() 180 () -> TestApis.packages().install(mUser, (byte[]) /* apkFile= */ null)); in install_nullByteArray_throwsException() 323 Package pkg = TestApis.packages().install(mUser, TEST_APP_APK_FILE); in install_alreadyInstalledForUser_installs() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UserHelper.java | 56 private final UserHandle mUser; field in UserHelper 71 mUser = Objects.requireNonNull(context).getUser(); in UserHelper() 77 Log.d(TAG, "Pre-UDC constructor (mUser=" + mUser + "): setting " in UserHelper() 107 Log.d(TAG, "Constructor: mUser=" + mUser + ", visible=" + isVisible in UserHelper() 116 + "visible background user " + mUser); in UserHelper() 119 Log.i(TAG, "Test user " + mUser + " is running on background, visible on display " in UserHelper() 124 Log.d(TAG, "Test user " + mUser + " is not running visible on background"); in UserHelper() 151 return mUser; in getUser() 158 return mUser.getIdentifier(); in getUserId() 255 return getClass().getSimpleName() + "[user=" + mUser + ", displayId=" + mDisplayId in toString()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | UserRestrictionsContext.java | 36 private final UserReference mUser; field in UserRestrictionsContext 45 mUser = user; in UserRestrictionsContext() 69 || TestApis.devicePolicy().userRestrictions(mUser).isSet(restriction)) { in apply() 77 || !TestApis.devicePolicy().userRestrictions(mUser).isSet(restriction)) { in apply() 86 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in setNoCheck() 96 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in unsetNoCheck()
|
D | DevicePolicyController.java | 32 protected final UserReference mUser; field in DevicePolicyController 41 mUser = user; in DevicePolicyController() 50 return mUser; in user() 75 return Objects.hashCode(mUser) in hashCode()
|
D | UserRestrictions.java | 35 private final UserReference mUser; field in UserRestrictions 40 mUser = user; in UserRestrictions() 59 return sUserManager.hasUserRestrictionForUser(restriction, mUser.userHandle()); in isSet() 68 ShellCommand.builderForUser(mUser, "pm set-user-restriction") in set()
|
D | ProfileOwner.java | 75 TestApis.context().androidContextAsUser(mUser).getSystemService( in isOrganizationOwned() 90 TestApis.context().androidContextAsUser(mUser).getSystemService( in setIsOrganizationOwned() 117 TestApis.context().androidContextAsUser(mUser).getSystemService( in remove() 123 mUser.id()); in remove() 135 () -> TestApis.devicePolicy().getProfileOwner(mUser)) in remove() 142 ShellCommand.builderForUser(mUser, "dpm remove-active-admin") in removePreS() 163 Context context = TestApis.context().androidContextAsUser(mUser); in removeTestApp() 186 mUser.id())) in removeTestApp() 214 return Objects.equals(other.mUser, mUser) in equals()
|
D | DeviceOwner.java | 84 TestApis.context().androidContextAsUser(mUser).getSystemService( in remove() 90 mUser.id()); in remove() 107 ShellCommand.builderForUser(mUser, "dpm remove-active-admin") in removePreS() 127 Context context = TestApis.context().androidContextAsUser(mUser); in removeTestApp() 150 mUser.id())) in removeTestApp() 167 return Objects.equals(other.mUser, mUser) in equals() 190 TestApis.context().androidContextAsUser(mUser).getSystemService( in setType() 217 TestApis.context().androidContextAsUser(mUser).getSystemService( in getType()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/roles/ |
D | RoleContext.java | 36 private final UserReference mUser; field in RoleContext 42 mUser = user; in RoleContext() 50 mPackage.removeAsRoleHolder(mRole, mUser); in close() 52 Set<String> currentRoleHolders = TestApis.roles().getRoleHoldersAsUser(mUser, mRole); in close() 59 roleHolderPackage.setAsRoleHolder(mRole, mUser); in close()
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | GenericManagerImpl.java | 28 private String mUser; field in GenericManagerImpl 33 mUser = String.valueOf(context.getUser().getIdentifier()); in GenericManagerImpl() 36 mUser = "N/A"; in GenericManagerImpl() 44 Log.d(TAG, "getSecureIntSettings(" + setting + ") for user " + mUser + ": " + value); in getSecureIntSettings()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accounts/ |
D | AccountReference.java | 46 private final UserReference mUser; field in AccountReference 96 mUser = user; in AccountReference() 107 return Objects.hash(mUser, mAndroidAccount); in hashCode() 118 return other.mUser.equals(mUser) in equals() 147 return mUser; in user() 171 throw new NeneException("Error checking feature " + feature + " for user " + mUser, e); in hasFeature() 207 return TestApis.context().androidContextAsUser(mUser) in accountManager()
|
D | AccountManager.java | 29 private final UserReference mUser; field in AccountManager 35 mUser = user; in AccountManager() 52 return mUser; in user()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | DpcCommander.java | 37 private final String mUser; field in DpcCommander 44 mUser = user; in DpcCommander() 53 runShellCmd("cmd device_policy set-profile-owner --user %s %s", mUser, ADMIN); in setProfileOwner() 57 runShellCmd("cmd device_policy remove-active-admin --user %s %s", mUser, ADMIN); in removeActiveAdmin() 89 return runShellCmd("dumpsys activity --user %s service %s %s", mUser, SERVICE, in dumpDpc()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/ |
D | AppOps.java | 41 private final UserReference mUser; field in AppOps 45 this.mUser = user; in AppOps() 57 sAppOpsManager.setMode(appOpName, mPackage.uid(mUser), in set() 69 maybeConvertPermissionToAppOp(appOpName), mPackage.uid(mUser), in get()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SystemPackageDefaultStoppedStateTest.java | 53 private UserReference mUser; field in SystemPackageDefaultStoppedStateTest 57 mUser = TestApis.users().createUser().name("Test User").create().start(); in setupUser() 80 MATCH_SYSTEM_ONLY), mUser.id()); in testSystemAppOnNewUser_isInDefaultStoppedState() 96 mUser.remove(); in deleteUser()
|
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/ |
D | LoadingProgressTest.java | 61 private UserHandle mUser; field in LoadingProgressTest 73 mUser = Process.myUserHandle(); in setUp() 103 TEST_PACKAGE_NAME, /* flags= */ 0, mUser); in testReadAllBytes() 123 mLauncherApps.getActivityList(TEST_PACKAGE_NAME, mUser); in checkLoadingProgress() 133 assertTrue(activity.getUser().equals(mUser)); in checkLoadingProgress()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | HttpAuthHandlerTest.java | 106 private String mUser; field in HttpAuthHandlerTest.ProceedHttpAuthClient 113 mUser = user; in ProceedHttpAuthClient() 128 handler.proceed(mUser, mPassword); in onReceivedHttpAuthRequest()
|