Searched defs:userId (Results 76 - 100 of 403) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/vr/
H A DVrManagerInternal.java40 * @param userId the user ID to check the package name for.
44 public abstract boolean isCurrentVrListener(String packageName, int userId); argument
54 * @param userId the user requesting the VrListenerService component.
58 int userId, @NonNull ComponentName calling);
83 public abstract int hasVrPackage(@NonNull ComponentName packageName, int userId); argument
57 setVrMode(boolean enabled, @NonNull ComponentName packageName, int userId, @NonNull ComponentName calling) argument
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DCertificateMonitor.java126 public void onCertificateApprovalsChanged(int userId) { argument
127 mHandler.post(() -> updateInstalledCertificates(UserHandle.of(userId)));
139 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, getSendingUserId());
140 updateInstalledCertificates(UserHandle.of(userId));
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/
H A DPreloadAppsInstaller.java68 void installApps(int userId) { argument
70 AppInstallCounter counter = new AppInstallCounter(mContext, userId);
83 installExistingPackage(packageName, userId, counter);
89 installPackage(file, userId, counter);
100 private void installExistingPackage(String packageName, int userId, argument
103 Log.d(TAG, "installExistingPackage " + packageName + " u" + userId);
106 mPackageManager.installExistingPackageAsUser(packageName, userId,
115 private void installPackage(File file, final int userId, AppInstallCounter counter) argument
119 Log.d(TAG, "installPackage " + apkName + " u" + userId);
126 Log.d(TAG, "Package " + basePackageName + " installed u" + userId
153 private final int userId; field in class:PreloadAppsInstaller.AppInstallCounter
155 AppInstallCounter(Context context, int userId) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DLockSettingsServiceTests.java191 private void testCreateCredential(int userId, String credential, int type) argument
193 mService.setLockCredential(credential, type, null, userId);
194 assertVerifyCredentials(userId, credential, type, -1);
197 private void testChangeCredentials(int userId, String newCredential, int newType, argument
200 initializeStorageWithCredential(userId, oldCredential, oldType, sid);
201 mService.setLockCredential(newCredential, newType, oldCredential, userId);
202 assertVerifyCredentials(userId, newCredential, newType, sid);
205 private void assertVerifyCredentials(int userId, String credential, int type, long sid) argument
209 userId);
212 if (sid != -1) assertEquals(sid, mGateKeeperService.getSecureUserId(userId));
235 initializeStorageWithCredential(int userId, String credential, int type, long sid) argument
[all...]
H A DSyntheticPasswordTests.java63 private void disableSyntheticPassword(int userId) throws RemoteException { argument
67 private void enableSyntheticPassword(int userId) throws RemoteException { argument
71 private boolean hasSyntheticPassword(int userId) throws RemoteException { argument
72 return mService.getLong(SYNTHETIC_PASSWORD_HANDLE_KEY, 0, userId) != 0;
95 private void initializeCredentialUnderSP(String password, int userId) throws RemoteException { argument
96 enableSyntheticPassword(userId);
97 mService.setLockCredential(password, password != null ? LockPatternUtils.CREDENTIAL_TYPE_PASSWORD : LockPatternUtils.CREDENTIAL_TYPE_NONE, null, userId);
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DPersistentConnectionTest.java49 public MyConnection(String tag, Context context, Handler handler, int userId, argument
52 super(tag, context, handler, userId, componentName,
105 final int userId = 11;
109 final MyConnection conn = new MyConnection("tag", context, handler, userId, cn,
139 eq(handler), eq(UserHandle.of(userId)));
307 final int userId = 11;
311 final MyConnection conn = new MyConnection("tag", context, handler, userId, cn,
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest9.java61 protected void setCaller(String packageName, int userId) { argument
62 super.setCaller(packageName, userId);
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
H A DAppCollectorTest.java78 Integer userId = (Integer) invocation.getArguments()[1];
79 return mUserApps.get(userId);
162 private void addApplication(String packageName, String uuid, int userId) { argument
166 List<ApplicationInfo> userApps = mUserApps.get(userId);
169 mUserApps.put(userId, userApps);
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbSettingsManager.java65 * @param userId The id of the user
69 @NonNull UsbUserSettingsManager getSettingsForUser(@UserIdInt int userId) { argument
71 UsbUserSettingsManager settings = mSettingsByUser.get(userId);
73 settings = new UsbUserSettingsManager(mContext, new UserHandle(userId));
74 mSettingsByUser.put(userId, settings);
143 final int userId = mSettingsByUser.keyAt(i);
145 pw.println("Settings for user " + userId + ":");
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCarrierAppUtils.java74 ContentResolver contentResolver, int userId) {
84 contentResolver, userId, systemCarrierAppsDisabledUntilUsed,
100 IPackageManager packageManager, ContentResolver contentResolver, int userId) {
110 null /* telephonyManager */, contentResolver, userId,
118 ContentResolver contentResolver, int userId,
122 userId, systemCarrierAppsDisabledUntilUsed);
129 userId,
135 contentResolver, Settings.Secure.CARRIER_APPS_HANDLED, 0, userId) == 1;
153 + userId);
158 userId,
72 disableCarrierAppsUntilPrivileged(String callingPackage, IPackageManager packageManager, TelephonyManager telephonyManager, ContentResolver contentResolver, int userId) argument
99 disableCarrierAppsUntilPrivileged(String callingPackage, IPackageManager packageManager, ContentResolver contentResolver, int userId) argument
116 disableCarrierAppsUntilPrivileged(String callingPackage, IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, ContentResolver contentResolver, int userId, String[] systemCarrierAppsDisabledUntilUsed, ArrayMap<String, List<String>> systemCarrierAssociatedAppsDisabledUntilUsed) argument
251 getDefaultCarrierApps(IPackageManager packageManager, TelephonyManager telephonyManager, int userId) argument
287 getDefaultCarrierAppCandidates( IPackageManager packageManager, int userId) argument
295 getDefaultCarrierAppCandidatesHelper( IPackageManager packageManager, int userId, String[] systemCarrierAppsDisabledUntilUsed) argument
315 getDefaultCarrierAssociatedAppsHelper( IPackageManager packageManager, int userId, ArrayMap<String, List<String>> systemCarrierAssociatedAppsDisabledUntilUsed) argument
345 getApplicationInfoIfSystemApp( IPackageManager packageManager, int userId, String packageName) argument
[all...]
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTest.java95 for (int userId : mUsersToRemove) {
97 mUm.removeUser(userId);
227 private void switchUser(int userId) throws Exception { argument
229 registerUserSwitchObserver(latch, null, userId);
230 mAm.switchUser(userId);
234 private void stopUser(int userId) throws Exception { argument
236 mIam.stopUser(userId, false /* force */, new IStopUserCallback.Stub() {
238 public void userStopped(int userId) throws RemoteException {
243 public void userStopAborted(int userId) throws RemoteException {
250 final CountDownLatch bootCompleteLatch, final int userId) throw
249 registerUserSwitchObserver(final CountDownLatch switchLatch, final CountDownLatch bootCompleteLatch, final int userId) argument
269 registerBroadcastReceiver(final String action, final CountDownLatch latch, final int userId) argument
282 removeUser(int userId) argument
[all...]
/frameworks/base/cmds/appwidget/src/com/android/commands/appwidget/
H A DAppWidget.java88 int userId = UserHandle.USER_SYSTEM;
95 userId = UserHandle.USER_CURRENT;
97 userId = Integer.parseInt(user);
107 return new SetBindAppWidgetPermissionCommand(packageName, granted, userId);
142 int userId) {
145 mUserId = userId;
141 SetBindAppWidgetPermissionCommand(String packageName, boolean granted, int userId) argument
/frameworks/base/core/java/android/app/
H A DTaskStackListener.java93 public void onTaskProfileLocked(int taskId, int userId) { argument
/frameworks/base/core/java/android/app/trust/
H A DTrustManager.java57 * @param userId The id for the user to be locked/unlocked.
61 public void setDeviceLockedForUser(int userId, boolean locked) { argument
63 mService.setDeviceLockedForUser(userId, locked);
70 * Reports that user {@param userId} has tried to unlock the device.
76 public void reportUnlockAttempt(boolean successful, int userId) { argument
78 mService.reportUnlockAttempt(successful, userId);
85 * Reports that user {@param userId} has entered a temporary device lockout.
96 public void reportUnlockLockout(int timeoutMs, int userId) { argument
98 mService.reportUnlockLockout(timeoutMs, userId);
105 * Reports that the list of enabled trust agents changed for user {@param userId}
109 reportEnabledTrustAgentsChanged(int userId) argument
182 isTrustUsuallyManaged(int userId) argument
214 onTrustChanged(boolean enabled, int userId, int flags) argument
221 onTrustManagedChanged(boolean enabled, int userId) argument
[all...]
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManager.java289 * @param userId The user id of who makes the selection.
296 public void reportChooserSelection(String packageName, int userId, String contentType, argument
299 mService.reportChooserSelection(packageName, userId, contentType, annotations, action);
H A DUsageStatsManagerInternal.java35 * @param userId The user id to which the component belongs to.
39 public abstract void reportEvent(ComponentName component, int userId, int eventType); argument
45 * @param userId The user id to which the component belongs to.
49 public abstract void reportEvent(String packageName, int userId, int eventType); argument
56 public abstract void reportConfigurationChange(Configuration config, int userId); argument
63 * @param userId The user in which the content provider was accessed.
67 public abstract void reportShortcutUsage(String packageName, String shortcutId, int userId); argument
73 * @param userId The user in which the content provider was accessed.
75 public abstract void reportContentProviderUsage(String name, String pkgName, int userId); argument
88 * @param userId
91 isAppIdle(String packageName, int uidForAppId, int userId) argument
98 getIdleUidsForUser(int userId) argument
121 onAppIdleStateChanged(String packageName, int userId, boolean idle) argument
136 queryUsageStatsForUser( int userId, int interval, long beginTime, long endTime, boolean obfuscateInstantApps) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DShortcutServiceInternal.java41 void onShortcutChanged(@NonNull String packageName, @UserIdInt int userId); argument
49 int userId);
53 @NonNull String packageName, @NonNull String id, int userId);
57 @NonNull List<String> shortcutIds, int userId);
61 @NonNull String packageName, @NonNull String shortcutId, int userId);
66 @NonNull String packageName, @NonNull String shortcutId, int userId);
70 @NonNull String packageName, @NonNull String shortcutId, int userId);
77 @Nullable IntentSender resultIntent, int userId);
45 getShortcuts(int launcherUserId, @NonNull String callingPackage, long changedSince, @Nullable String packageName, @Nullable List<String> shortcutIds, @Nullable ComponentName componentName, @ShortcutQuery.QueryFlags int flags, int userId) argument
52 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String id, int userId) argument
55 pinShortcuts(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull List<String> shortcutIds, int userId) argument
59 createShortcutIntents( int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument
65 getShortcutIconResId(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument
68 getShortcutIconFd(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument
75 requestPinAppWidget(@onNull String callingPackage, @NonNull AppWidgetProviderInfo appWidget, @Nullable Bundle extras, @Nullable IntentSender resultIntent, int userId) argument
/frameworks/base/core/java/android/provider/
H A DSettingsStringUtil.java161 public SettingStringHelper(ContentResolver contentResolver, String name, int userId) { argument
163 mUserId = userId;
/frameworks/base/core/java/com/android/internal/app/
H A DAssistUtils.java148 public ComponentName getAssistComponentForUser(int userId) { argument
150 Settings.Secure.ASSISTANT, userId);
164 userId);
/frameworks/base/core/tests/coretests/src/android/content/
H A DAbstractCrossUserContentResolverTest.java172 public void onChange(boolean selfChange, Uri uri, int userId) { argument
173 if (mExpectedUri.equals(uri) && mExpectedUserId == userId) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DPackageManagerWrapper.java49 List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId); argument
63 List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId); argument
75 ApplicationInfo getApplicationInfoAsUser(String packageName, int i, int userId) argument
81 boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId); argument
86 String getDefaultBrowserPackageNameAsUser(int userId); argument
H A DPackageManagerWrapperImpl.java50 public List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId) { argument
51 return mPm.getInstalledApplicationsAsUser(flags, userId);
60 public List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId) { argument
61 return mPm.queryIntentActivitiesAsUser(intent, flags, userId);
70 public ApplicationInfo getApplicationInfoAsUser(String packageName, int i, int userId) argument
72 return mPm.getApplicationInfoAsUser(packageName, i, userId);
76 public boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId) { argument
77 return mPm.setDefaultBrowserPackageNameAsUser(packageName, userId);
81 public String getDefaultBrowserPackageNameAsUser(int userId) { argument
82 return mPm.getDefaultBrowserPackageNameAsUser(userId);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUserDetailItemView.java93 public void bind(String name, Bitmap picture, int userId) { argument
95 mAvatar.setAvatarWithBadge(picture, userId);
98 public void bind(String name, Drawable picture, int userId) { argument
100 mAvatar.setDrawableWithBadge(picture, userId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DUserAvatarView.java122 public void setAvatarWithBadge(Bitmap avatar, int userId) { argument
124 mDrawable.setBadgeIfManagedUser(getContext(), userId);
135 public void setDrawableWithBadge(Drawable d, int userId) { argument
140 mDrawable.setBadgeIfManagedUser(getContext(), userId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DLocationControllerImpl.java137 private boolean isUserLocationRestricted(int userId) { argument
140 UserHandle.of(userId));

Completed in 2057 milliseconds

1234567891011>>