Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 25 of 34) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowKeyguardManager.java168 protected boolean isDeviceSecure(int userId) { in isDeviceSecure() argument
169 return deviceSecureForUsers.contains(userId); in isDeviceSecure()
177 public void setIsDeviceSecure(int userId, boolean isDeviceSecure) { in setIsDeviceSecure() argument
179 deviceSecureForUsers.add(userId); in setIsDeviceSecure()
181 deviceSecureForUsers.remove(userId); in setIsDeviceSecure()
208 public void setIsDeviceLocked(int userId, boolean isLocked) { in setIsDeviceLocked() argument
210 deviceLockedForUsers.add(userId); in setIsDeviceLocked()
212 deviceLockedForUsers.remove(userId); in setIsDeviceLocked()
217 protected boolean isDeviceLocked(int userId) { in isDeviceLocked() argument
218 return deviceLockedForUsers.contains(userId); in isDeviceLocked()
DShadowUserManager.java234 protected boolean hasBadge(int userId) { in hasBadge() argument
570 @NonNull String userType, @UserInfo.UserInfoFlag int flags, @UserIdInt int userId, in createProfileForUserEvenWhenDisallowed() argument
572 List<UserInfo> userIdProfiles = profiles.computeIfAbsent(userId, ignored -> new ArrayList<>()); in createProfileForUserEvenWhenDisallowed()
576 profileToParent.put(profileUserId, userId); in createProfileForUserEvenWhenDisallowed()
595 public void switchUser(int userId) { in switchUser() argument
596 if (!userInfoMap.containsKey(userId)) { in switchUser()
600 ShadowProcess.setUid(userPidMap.get(userId)); in switchUser()
DShadowApplicationPackageManager.java323 String name, int flags, @UserIdInt int userId) { in resolveContentProviderAsUser() argument
457 protected List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { in queryIntentServicesAsUser() argument
490 protected List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId) { in queryIntentActivitiesAsUser() argument
940 Intent intent, int flags, int userId) { in queryIntentContentProvidersAsUser() argument
1108 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
1138 protected int getPackageUidAsUser(String packageName, int userId) throws NameNotFoundException { in getPackageUidAsUser() argument
1143 protected int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() argument
1224 String packageName, int flags, UserHandle userId) throws NameNotFoundException { in getApplicationInfoAsUser() argument
1350 protected List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId) { in getInstalledPackagesAsUser() argument
1352 for (String packageName : packagesForUserId.getOrDefault(userId, new ArrayList<>())) { in getInstalledPackagesAsUser()
[all …]
DShadowStorageManager.java29 protected static StorageVolume[] getVolumeList(int userId, int flags) { in getVolumeList() argument
102 protected static boolean isUserKeyUnlocked(int userId) { in isUserKeyUnlocked() argument
DShadowActivityThread.java82 int userId = (Integer) args[1]; in getPackageManager()
86 .createContextAsUser(UserHandle.of(userId), /* flags= */ 0) in getPackageManager()
DShadowDevicePolicyManager.java275 protected ComponentName getProfileOwnerAsUser(int userId) { in getProfileOwnerAsUser() argument
284 protected String getProfileOwnerNameAsUser(int userId) { in getProfileOwnerNameAsUser() argument
285 return profileOwnerNamesMap.get(userId); in getProfileOwnerNameAsUser()
312 public void setProfileOwnerName(int userId, String name) { in setProfileOwnerName() argument
313 profileOwnerNamesMap.put(userId, name); in setProfileOwnerName()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DInstrumentedTestUtilities.java143 private static void startUser(int userId) { in startUser() argument
144 runCommandWithOutput("am start-user " + userId); in startUser()
147 private void setTestAsProfileOwner(int userId) { in setTestAsProfileOwner() argument
150 + userId in setTestAsProfileOwner()
160 private static void removeUser(int userId) { in removeUser() argument
161 runCommandWithOutput("pm remove-user " + userId); in removeUser()
173 private static void installInUser(int userId, String packageName) { in installInUser() argument
174 runCommandWithOutput("cmd package install-existing --user " + userId + " " + packageName); in installInUser()
200 int userId = Integer.parseInt(matcher.group(1)); in getWorkProfileUserId() local
201 if (userId != 0) { in getWorkProfileUserId()
[all …]
/external/connectedappssdk/tests/instrumented/src/main/java/com/google/android/enterprise/connectedapps/instrumented/utils/
DInstrumentedTestUtilities.java153 public void removeUser(int userId) { in removeUser() argument
154 runCommandWithOutput("pm remove-user " + userId); in removeUser()
157 public void installInUser(int userId) { in installInUser() argument
159 "cmd package install-existing --user " + userId + " " + context.getPackageName()); in installInUser()
208 private static boolean userHasPackageInstalled(int userId, String packageName) { in userHasPackageInstalled() argument
211 runCommandWithOutput("pm list packages --user " + userId).split("\n"); in userHasPackageInstalled()
364 public void startUser(int userId) { in startUser() argument
365 UserHandle userHandle = SharedTestUtilities.getUserHandleForUserId(userId); in startUser()
366 InstrumentedTestUtilities.runCommandWithOutput("am start-user " + userId); in startUser()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveEntry.java68 private final int userId; field in ArArchiveEntry
99 public ArArchiveEntry(final String name, final long length, final int userId, final int groupId, in ArArchiveEntry() argument
103 this.userId = userId; in ArArchiveEntry()
131 return userId; in getUserId()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/
DIgnorePropertyOnDeserTest.java17 Integer userId; field in IgnorePropertyOnDeserTest.User
20 return userId; in getUserId()
24 userId = Integer.valueOf(id.toString()); in setUserId()
28 this.userId = v; in setUserId()
99 assertNull(result.userId); in testIssue426()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/tar/
DTarArchiveEntry.java159 private long userId = 0; field in TarArchiveEntry
514 return (int) (userId & 0xffffffff); in getUserId()
522 public void setUserId(final int userId) { in setUserId() argument
523 setUserId((long) userId); in setUserId()
533 return userId; in getLongUserId()
542 public void setUserId(final long userId) { in setUserId() argument
543 this.userId = userId; in setUserId()
629 public void setIds(final int userId, final int groupId) { in setIds() argument
630 setUserId(userId); in setIds()
1185 offset = writeEntryHeaderField(userId, outbuf, offset, UIDLEN, in writeEntryHeader()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DPropertyAliasTest.java39 private AliasBean2378(boolean bogus, String partId, String userId) { in AliasBean2378() argument
41 _id = userId; in AliasBean2378()
46 @JsonProperty("id") @JsonAlias("userId") String userId) { in create() argument
47 return new AliasBean2378(false, partId, userId); in create()
/external/libtextclassifier/jni/com/google/android/textclassifier/
DActionsSuggestionsModel.java259 private final int userId; field in ActionsSuggestionsModel.ConversationMessage
266 int userId, in ConversationMessage() argument
271 this.userId = userId; in ConversationMessage()
280 return userId; in getUserId()
/external/python/google-api-python-client/samples/plus/
Dplus.py38 person = service.people().get(userId='me').execute()
46 userId=person['id'], collection='public')
/external/python/google-api-python-client/samples/blogger/
Dblogger.py55 thisuser = users.get(userId='self').execute()
61 thisusersblogs = blogs.listByUser(userId='self').execute()
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/
DSharedTestUtilities.java41 public static UserHandle getUserHandleForUserId(int userId) { in getUserHandleForUserId() argument
44 UserHandle.class.getMethod(OF_METHOD_NAME, int.class).invoke(null, userId); in getUserHandleForUserId()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DAppDataDirGuesser.java228 int userId = uid / PER_USER_RANGE; in guessUserDataDirectory() local
229 return getWriteableDirectory(String.format("/data/user/%d/%s", userId, packageName)); in guessUserDataDirectory()
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB20844369.output9 + "(?:(?<userId>\\d+)#)?" // subtype's optional user ID, followed by a hash
DB20844369.input9 + "(?:(?<userId>\\d+)#)?" // subtype's optional user ID, followed by a hash
/external/python/google-api-python-client/samples/appengine/
Dmain.py95 user = service.people().get(userId='me').execute(http=http)
/external/python/google-api-python-client/docs/
Dpagination.md11 request = activities.list(userId='someUserId', collection='public')
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDevicePolicyManagerTest.java993 int userId = 0; in getProfileOwnerNameAsUser() local
995 assertThat(devicePolicyManager.getProfileOwnerNameAsUser(userId)).isNull(); in getProfileOwnerNameAsUser()
997 shadowOf(devicePolicyManager).setProfileOwnerName(userId, orgName); in getProfileOwnerNameAsUser()
999 assertThat(devicePolicyManager.getProfileOwnerNameAsUser(userId)).isEqualTo(orgName); in getProfileOwnerNameAsUser()
/external/python/google-api-python-client/tests/
Dtest_mocks.py156 plus.activities().list(collection="public", userId="me").execute()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DActionsSuggestionsHelperTest.java390 int userId, in assertNativeMessage() argument
393 assertThat(nativeMessage.getUserId()).isEqualTo(userId); in assertNativeMessage()
/external/autotest/site_utils/
Dgmail_lib.py125 userId='me', body=message.get_payload()).execute()

12