/packages/services/Telecomm/src/com/android/server/telecom/ |
RingtoneFactory.java | 26 import android.os.UserHandle; 78 private Context getWorkProfileContextForUser(UserHandle userHandle) { 82 userHandle.getIdentifier()); 86 UserHandle profileUserHandle = profile.getUserHandle(); 87 if (profileUserHandle != userHandle && profile.isManagedProfile()) { 101 private Context getContextForUserHandle(UserHandle userHandle) { 102 if(userHandle == null) { 106 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userHandle); [all...] |
PhoneAccountRegistrar.java | 35 import android.os.UserHandle; 136 private UserHandle mCurrentUserHandle; 152 String filePath = Environment.getUserSystemDirectory(UserHandle.myUserId()). 194 UserHandle userHandle) { 195 final PhoneAccountHandle userSelected = getUserSelectedOutgoingPhoneAccount(userHandle); 207 userHandle); 230 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(UserHandle userHandle) { 231 if (userHandle == null) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
AppsQueryHelperTests.java | 21 import android.os.UserHandle; 40 List<String> apps = mAppsQueryHelper.queryApps(0, true, UserHandle.SYSTEM); 43 apps = mAppsQueryHelper.queryApps(0, false, UserHandle.SYSTEM); 49 true, UserHandle.SYSTEM); 53 false, UserHandle.SYSTEM); 59 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, true, UserHandle.SYSTEM); 63 AppsQueryHelper.GET_APPS_WITH_INTERACT_ACROSS_USERS_PERM, false, UserHandle.SYSTEM); 71 true, UserHandle.SYSTEM); 77 false, UserHandle.SYSTEM); 84 true, UserHandle.of(UserHandle.myUserId())) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
UserAdapter.java | 26 import android.os.UserHandle; 49 private final UserHandle mUserHandle; 53 public UserDetails(UserHandle userHandle, UserManager um, Context context) { 54 mUserHandle = userHandle; 89 public UserHandle getUserHandle(int position) { 107 int userHandle = user.mUserHandle.getIdentifier(); 108 if (userHandle == UserHandle.USER_CURRENT 109 || userHandle == ActivityManager.getCurrentUser()) [all...] |
Tile.java | 24 import android.os.UserHandle; 60 public ArrayList<UserHandle> userHandle = new ArrayList<>(); 107 final int N = userHandle.size(); 110 userHandle.get(i).writeToParcel(dest, flags); 129 userHandle.add(UserHandle.CREATOR.createFromParcel(in));
|
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/ |
UtilsTest.java | 40 import android.os.UserHandle; 151 UserHandle primaryUser = UserHandle.of(0); 152 UserHandle managedProfile = UserHandle.of(10); 156 when(mockAccountManager.copyAccountToUser(any(Account.class), any(UserHandle.class), 157 any(UserHandle.class), any(AccountManagerCallback.class), any(Handler.class))) 172 UserHandle primaryUser = UserHandle.of(0); 173 UserHandle managedProfile = UserHandle.of(10) [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
PhoneAccountHandle.java | 24 import android.os.UserHandle; 37 * Note: This Class requires a non-null {@link ComponentName} and {@link UserHandle} to operate 45 private final UserHandle mUserHandle; 56 @NonNull UserHandle userHandle) { 57 checkParameters(componentName, userHandle); 60 mUserHandle = userHandle; 95 * @return the {@link UserHandle} to use when connecting to this PhoneAccount. 97 public UserHandle getUserHandle() { 144 private void checkParameters(ComponentName componentName, UserHandle userHandle) [all...] |
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
VoiceInteractionManagerService.java | 46 import android.os.UserHandle; 133 public void onStartUser(int userHandle) { 134 mServiceStub.initForUser(userHandle); 138 public void onUnlockUser(int userHandle) { 139 mServiceStub.initForUser(userHandle); 144 public void onSwitchUser(int userHandle) { 145 mServiceStub.switchUser(userHandle); 246 public void initForUser(int userHandle) { 247 if (DEBUG) Slog.d(TAG, "**************** initForUser user=" + userHandle); 250 Settings.Secure.VOICE_INTERACTION_SERVICE, userHandle); [all...] |
/frameworks/base/services/core/java/com/android/server/search/ |
SearchManagerService.java | 38 import android.os.UserHandle; 88 public void onCleanupUser(int userHandle) { 89 mService.onCleanupUser(userHandle); 108 new MyPackageMonitor().register(context, null, UserHandle.ALL, true); 188 mContext.sendBroadcastAsUser(intent, new UserHandle(changingUserId)); 213 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); 234 return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivity); 242 return getSearchables(UserHandle.getCallingUserId()).getSearchablesInGlobalSearchList(); 247 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivities(); 255 return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity() [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerServiceTestable.java | 28 import android.os.UserHandle; 94 public void notifyChangeToContentObserver(Uri uri, int userHandle) { 96 .get(new Pair<Uri, Integer>(uri, userHandle)); 98 co.onChange(false, uri, userHandle); // notify synchronously 103 .get(new Pair<Uri, Integer>(uri, UserHandle.USER_ALL)); 105 co.onChange(false, uri, userHandle); // notify synchronously 236 UserHandle binderGetCallingUserHandle() { 292 ContentObserver observer, int userHandle) { 293 mContentObservers.put(new Pair<Uri, Integer>(uri, userHandle), observer); 297 int settingsSecureGetIntForUser(String name, int def, int userHandle) { [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
UidDetailProvider.java | 32 import android.os.UserHandle; 52 public static int buildKeyForUser(int userHandle) { 53 return OTHER_USER_RANGE_START - userHandle; 136 final int userHandle = getUserIdForKey(uid); 137 final UserInfo info = um.getUserInfo(userHandle); 149 final int userId = UserHandle.getUserId(uid); 150 UserHandle userHandle = new UserHandle(userId); 158 new UserHandle(userId)) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
LauncherAppsCompatVL.java | 28 import android.os.UserHandle; 120 public void onPackageRemoved(String packageName, UserHandle user) { 124 public void onPackageAdded(String packageName, UserHandle user) { 128 public void onPackageChanged(String packageName, UserHandle user) { 132 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { 136 public void onPackagesUnavailable(String[] packageNames, UserHandle user, 142 public void onPackagesSuspended(String[] packageNames, UserHandle user) { 146 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) {
|
UserManagerCompatVL.java | 25 import android.os.UserHandle; 53 List<UserHandle> users = mUserManager.getUserProfiles(); 55 for (UserHandle user : users) { 75 List<UserHandle> users = mUserManager.getUserProfiles(); 81 for (UserHandle user : users) {
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcPermissions.java | 5 import android.os.UserHandle; 22 if (userId != UserHandle.getCallingUserId()) {
|
/packages/apps/Settings/src/com/android/settings/location/ |
InjectedSetting.java | 20 import android.os.UserHandle; 60 public final UserHandle mUserHandle; 69 String title, int iconId, UserHandle userHandle, String settingsActivity) { 74 this.mUserHandle = userHandle; 82 String title, int iconId, UserHandle userHandle, String settingsActivity) { 92 return new InjectedSetting(packageName, className, title, iconId, userHandle,
|
/frameworks/base/core/java/android/os/ |
UserManager.java | 745 * a single owner user. see @link {android.os.UserHandle#USER_OWNER} 761 boolean isSystemUserUnlocked = isUserUnlocked(UserHandle.SYSTEM); 774 return UserHandle.myUserId(); [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyPermissionEvent.java | 25 import android.os.UserHandle; 43 int perm = pm.checkPermission(mPermissionInfo.name, mPkg, UserHandle.myUserId()); 49 pm.grantRuntimePermission(mPkg, mPermissionInfo.name, UserHandle.myUserId()); 51 pm.revokeRuntimePermission(mPkg, mPermissionInfo.name, UserHandle.myUserId());
|
/frameworks/base/core/tests/coretests/src/android/os/ |
ProcessTest.java | 21 import android.os.UserHandle; 35 assertEquals(UserHandle.getUid(1, Process.SYSTEM_UID), Process.getUidForName("u1_system")); 36 assertEquals(UserHandle.getUid(2, Process.FIRST_ISOLATED_UID), 38 assertEquals(UserHandle.getUid(3, Process.FIRST_APPLICATION_UID + 100),
|
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
LauncherCallbackTestsService.java | 30 import android.os.UserHandle; 63 private static BlockingQueue<Pair<String, UserHandle>> mPackagesAdded 65 private static BlockingQueue<Pair<String, UserHandle>> mPackagesRemoved 67 private static BlockingQueue<Pair<String, UserHandle>> mPackagesChanged 171 private boolean eventExists(Bundle params, BlockingQueue<Pair<String, UserHandle>> events) { 172 UserHandle user = params.getParcelable(USER_EXTRA); 176 Pair<String, UserHandle> event = events.poll(60, TimeUnit.SECONDS); 196 public void onPackageRemoved(String packageName, UserHandle user) { 205 public void onPackageAdded(String packageName, UserHandle user) { 214 public void onPackageChanged(String packageName, UserHandle user) [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
UserDetailsSettings.java | 24 import android.os.UserHandle; 95 UserManager.DISALLOW_OUTGOING_CALLS, new UserHandle(userId))); 107 UserManager.DISALLOW_REMOVE_USER, UserHandle.myUserId())) { 150 UserHandle userHandle = UserHandle.of(user.id); 153 key, mDefaultGuestRestrictions.getBoolean(key), userHandle); 158 UserHandle userHandle = UserHandle.of(mUserInfo.id) [all...] |
/frameworks/base/services/core/java/com/android/server/ |
SystemServiceManager.java | 155 public void startUser(final int userHandle) { 162 service.onStartUser(userHandle); 164 Slog.wtf(TAG, "Failure reporting start of user " + userHandle 171 public void unlockUser(final int userHandle) { 178 service.onUnlockUser(userHandle); 180 Slog.wtf(TAG, "Failure reporting unlock of user " + userHandle 187 public void switchUser(final int userHandle) { 194 service.onSwitchUser(userHandle); 196 Slog.wtf(TAG, "Failure reporting switch of user " + userHandle 203 public void stopUser(final int userHandle) { [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
NightDisplayService.java | 36 import android.os.UserHandle; 87 private int mCurrentUser = UserHandle.USER_NULL; 112 if (mCurrentUser != UserHandle.USER_NULL && mUserSetupObserver == null) { 119 public void onStartUser(int userHandle) { 120 super.onStartUser(userHandle); 122 if (mCurrentUser == UserHandle.USER_NULL) { 123 onUserChanged(userHandle); 128 public void onSwitchUser(int userHandle) { 129 super.onSwitchUser(userHandle); 131 onUserChanged(userHandle); [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
ContentService.java | 53 import android.os.UserHandle; 105 public void onCleanupUser(int userHandle) { 107 mService.mCache.remove(userHandle); 139 UserHandle.USER_NULL); 269 mContext.registerReceiverAsUser(mCacheReceiver, UserHandle.ALL, 274 mContext.registerReceiverAsUser(mCacheReceiver, UserHandle.ALL, 284 * @param userHandle the user whose view of the provider is to be observed. May be 292 IContentObserver observer, int userHandle) { 299 final int callingUserHandle = UserHandle.getCallingUserId(); 302 if (callingUserHandle != userHandle) { [all...] |
/frameworks/base/core/java/android/content/pm/ |
PackageStats.java | 21 import android.os.UserHandle; 32 public int userHandle; 125 userHandle = UserHandle.myUserId(); 129 public PackageStats(String pkgName, int userHandle) { 131 this.userHandle = userHandle; 136 userHandle = source.readInt(); 149 userHandle = pStats.userHandle; [all...] |
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
MyBaseListFragment.java | 30 import android.os.UserHandle; 124 public void onPackageRemoved(String packageName, UserHandle user) { 129 public void onPackageAdded(String packageName, UserHandle user) { 134 public void onPackageChanged(String packageName, UserHandle user) { 139 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { 144 public void onPackagesUnavailable(String[] packageNames, UserHandle user, 151 List<ShortcutInfo> shortcuts, UserHandle user) {
|