HomeSort by relevance Sort by last modified time
    Searched full:userhandle (Results 276 - 300 of 995) sorted by null

<<11121314151617181920>>

  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
AppManagementFragment.java 29 import android.os.UserHandle;
90 mEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId());
129 final int userId = UserHandle.getUserId(mEntry.info.uid);
137 final int userId = UserHandle.getUserId(mEntry.info.uid);
301 final int userId = UserHandle.getUserId(mEntry.info.uid);
329 final int userId = UserHandle.getUserId(mEntry.info.uid);
360 final int userId = UserHandle.getUserId(mEntry.info.uid);
  /frameworks/base/core/tests/coretests/src/android/app/activity/
BroadcastTest.java 29 import android.os.UserHandle;
308 UserHandle.myUserId());
310 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
322 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
326 UserHandle.myUserId());
337 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
340 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
354 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
364 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId());
367 ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.myUserId())
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 34 import android.os.UserHandle;
73 public String lookup(ContentResolver resolver, String name, int userHandle);
77 public String lookup(ContentResolver resolver, String name, int userHandle) {
78 return Settings.System.getStringForUser(resolver, name, userHandle);
83 public String lookup(ContentResolver resolver, String name, int userHandle) {
84 return Settings.Secure.getStringForUser(resolver, name, userHandle);
89 public String lookup(ContentResolver resolver, String name, int userHandle) {
90 return Settings.Global.getStringForUser(resolver, name, userHandle);
128 oldValue = table.lookup(cr, name, UserHandle.USER_SYSTEM);
170 context.sendBroadcastAsUser(intent, UserHandle.SYSTEM, null)
    [all...]
  /frameworks/base/services/core/java/com/android/server/storage/
DeviceStorageMonitorService.java 42 import android.os.UserHandle;
470 null, UserHandle.CURRENT);
486 UserHandle.ALL);
487 context.sendStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL);
500 mNotificationMgr.cancelAsUser(null, LOW_MEMORY_NOTIFICATION_ID, UserHandle.ALL);
502 context.removeStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL);
503 context.sendBroadcastAsUser(mStorageOkIntent, UserHandle.ALL);
511 getContext().sendStickyBroadcastAsUser(mStorageFullIntent, UserHandle.ALL);
519 getContext().removeStickyBroadcastAsUser(mStorageFullIntent, UserHandle.ALL);
520 getContext().sendBroadcastAsUser(mStorageNotFullIntent, UserHandle.ALL)
    [all...]
  /frameworks/base/services/usb/java/com/android/server/usb/
UsbService.java 35 import android.os.UserHandle;
90 /** Map from {@link UserHandle} to {@link UsbSettingsManager} */
99 settings = new UsbSettingsManager(mContext, new UserHandle(userId));
122 setCurrentUser(UserHandle.USER_SYSTEM);
234 final int userId = UserHandle.getCallingUserId();
240 final int userId = UserHandle.getCallingUserId();
246 final int userId = UserHandle.getCallingUserId();
253 final int userId = UserHandle.getCallingUserId();
260 final int userId = UserHandle.getUserId(uid);
267 final int userId = UserHandle.getUserId(uid)
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
ContextFixture.java 54 import android.os.UserHandle;
273 public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user,
340 public void sendBroadcastAsUser(Intent intent, UserHandle user) {
345 public void sendBroadcastAsUser(Intent intent, UserHandle user,
351 public void sendBroadcastAsUser(Intent intent, UserHandle user,
357 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
370 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
383 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
406 public void sendStickyBroadcastAsUser(Intent intent, UserHandle ignored) {
412 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user
    [all...]
  /packages/apps/Settings/src/com/android/settings/
CredentialStorage.java 32 import android.os.UserHandle;
207 UserManager.get(this).getCredentialOwnerProfile(UserHandle.myUserId());
239 if (uid != KeyStore.UID_SELF && !UserHandle.isSameUser(uid, Process.myUid())) {
240 int dstUserId = UserHandle.getUserId(uid);
241 int myUserId = UserHandle.myUserId();
253 startActivityAsUser(installIntent, new UserHandle(dstUserId));
343 new LockPatternUtils(CredentialStorage.this).resetKeyStore(UserHandle.myUserId());
427 if (!UserHandle.isSameApp(launchedFromUid, Process.myUid())) {
431 launchedFromUserId = UserHandle.getUserId(launchedFromUid);
439 if (parentInfo == null || parentInfo.id != UserHandle.myUserId())
    [all...]
PrivacySettings.java 29 import android.os.UserHandle;
234 mIsPrimary = UserHandle.myUserId() == UserHandle.USER_SYSTEM;
269 isServiceActive = backupManager.isBackupServiceActive(UserHandle.myUserId());
285 UserManager.DISALLOW_FACTORY_RESET, UserHandle.myUserId())) {
  /frameworks/base/core/java/android/app/backup/
WallpaperBackupHelper.java 25 import android.os.UserHandle;
61 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
64 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
67 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
80 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
  /frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
AssistManager.java 20 import android.os.UserHandle;
192 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1, UserHandle.USER_CURRENT) != 0;
214 new UserHandle(UserHandle.USER_CURRENT));
285 return mAssistUtils.getAssistComponentForUser(UserHandle.USER_CURRENT);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
TileServices.java 31 import android.os.UserHandle;
244 UserHandle userHandle = getCallingUserHandle();
246 userHandle.getIdentifier());
249 ? new StatusBarIcon(userHandle, packageName, icon, 0, 0,
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
LockscreenWallpaper.java 38 import android.os.UserHandle;
64 private UserHandle mSelectedUser;
102 public LoaderResult loadBitmap(int currentUserId, UserHandle selectedUser) {
145 public void setSelectedUser(UserHandle selectedUser) {
173 final UserHandle selectedUser = mSelectedUser;
  /frameworks/base/services/core/java/com/android/server/connectivity/
PermissionMonitor.java 37 import android.os.UserHandle;
83 int user = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);
109 mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, intentFilter, null, null);
115 mContext.registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, intentFilter, null, null);
191 list.add(UserHandle.getUid(user, app.getKey()));
  /frameworks/base/services/core/java/com/android/server/telecom/
TelecomLoaderService.java 33 import android.os.UserHandle;
191 if (mContext.bindServiceAsUser(intent, serviceConnection, flags, UserHandle.SYSTEM)) {
306 false, contentObserver, UserHandle.USER_ALL);
308 false, contentObserver, UserHandle.USER_ALL);
326 mContext.registerReceiverAsUser(receiver, UserHandle.ALL,
  /frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DatabaseHelper.java 136 public boolean deleteKeyphraseSoundModel(int keyphraseId, int userHandle, String bcp47Locale) {
140 KeyphraseSoundModel soundModel = getKeyphraseSoundModel(keyphraseId, userHandle,
164 public KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, int userHandle,
218 if (userHandle == user) {
229 if (DBG) Slog.d(TAG, "Found a SoundModel for user: " + userHandle);
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
ConfigurationMapTest.java 26 import android.os.UserHandle;
65 USER_PROFILES.put(UserHandle.USER_SYSTEM, Arrays.asList(
66 new UserInfo(UserHandle.USER_SYSTEM, "Owner", 0),
74 private int mCurrentUserId = UserHandle.USER_SYSTEM;
203 switchUser(UserHandle.getUserId(config1.creatorUid));
  /packages/apps/Launcher3/src/com/android/launcher3/model/
WidgetsModel.java 157 UserHandleCompat userHandle = null;
169 userHandle = mAppWidgetMgr.getUser(widgetInfo);
183 userHandle = UserHandleCompat.myUserHandle();
186 if (componentName == null || userHandle == null) {
206 mIconCache.getTitleAndIconForApp(packageName, userHandle,
  /packages/apps/Nfc/src/com/android/nfc/
BeamShareActivity.java 35 import android.os.UserHandle;
91 registerReceiverAsUser(mReceiver, UserHandle.ALL, filter, null, null);
207 UserHandle myUserHandle = new UserHandle(UserHandle.myUserId());
  /packages/services/Telecomm/src/com/android/server/telecom/
CallIntentProcessor.java 10 import android.os.UserHandle;
138 UserHandle initiatingUser = intent.getParcelableExtra(KEY_INITIATING_USER);
169 final UserHandle initiatingUser = intent.getParcelableExtra(KEY_INITIATING_USER);
175 UserHandle parentUserHandle =
244 context.startActivityAsUser(errorIntent, UserHandle.CURRENT);
  /frameworks/base/core/java/com/android/internal/os/
BatteryStatsHelper.java 34 import android.os.UserHandle;
294 SparseArray<UserHandle> users = new SparseArray<>(1);
295 users.put(asUser, new UserHandle(asUser));
302 public void refreshStats(int statsType, List<UserHandle> asUsers) {
304 SparseArray<UserHandle> users = new SparseArray<>(n);
306 UserHandle userHandle = asUsers.get(i);
307 users.put(userHandle.getIdentifier(), userHandle);
315 public void refreshStats(int statsType, SparseArray<UserHandle> asUsers)
    [all...]
  /frameworks/base/test-runner/src/android/test/mock/
MockPackageManager.java 53 import android.os.UserHandle;
119 public int getPackageUidAsUser(String packageName, int flags, int userHandle)
126 public int getPackageUidAsUser(String packageName, int userHandle)
242 UserHandle user) {
249 UserHandle user) {
255 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) {
262 int flagMask, int flagValues, UserHandle user) {
530 public Drawable getUserBadgedIcon(Drawable icon, UserHandle user) {
535 public Drawable getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user,
543 public Drawable getUserBadgeForDensity(UserHandle user, int density)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/provider/
SettingsProviderTest.java 29 import android.os.UserHandle;
164 assertTrue(findUser(um, UserHandle.USER_SYSTEM));
171 otherUser.id, UserHandle.getCallingUserId());
183 otherUser.id, UserHandle.getCallingUserId());
270 private boolean findUser(UserManager um, int userHandle) {
272 if (user.id == userHandle) {
285 assertTrue(findUser(um, UserHandle.USER_SYSTEM));
303 assertTrue("Running as user " + UserHandle.myUserId()
307 assertTrue("Running as user " + UserHandle.myUserId()
  /frameworks/base/docs/html/sdk/api_diff/21/changes/
android.content.Context.html 132 <A NAME="android.content.Context.removeStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A>
133 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/Context.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>removeStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr>
152 <A NAME="android.content.Context.sendStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A>
153 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/Context.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>sendStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr>
172 <A NAME="android.content.Context.sendStickyOrderedBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)"></A>
173 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/Context.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)" target="_top"><code>sendStickyOrderedBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr>,</nobr> BroadcastReceiver<nobr>,</nobr> Handler<nobr>,</nobr> int<nobr>,</nobr> String<nobr>,</nobr> Bundle<nobr><nobr></code>) </nobr>
android.content.pm.PackageManager.html 100 <A NAME="android.content.pm.PackageManager.getUserBadgedDrawableForDensity_added(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int)"></A>
101 <nobr><code>Drawable</code>&nbsp;<A HREF="../../../../reference/android/content/pm/PackageManager.html#getUserBadgedDrawableForDensity(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int)" target="_top"><code>getUserBadgedDrawableForDensity</code></A>(<code>Drawable,</nobr> UserHandle<nobr>,</nobr> Rect<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
107 <A NAME="android.content.pm.PackageManager.getUserBadgedIcon_added(android.graphics.drawable.Drawable, android.os.UserHandle)"></A>
108 <nobr><code>Drawable</code>&nbsp;<A HREF="../../../../reference/android/content/pm/PackageManager.html#getUserBadgedIcon(android.graphics.drawable.Drawable, android.os.UserHandle)" target="_top"><code>getUserBadgedIcon</code></A>(<code>Drawable,</nobr> UserHandle<nobr><nobr></code>)</nobr>
114 <A NAME="android.content.pm.PackageManager.getUserBadgedLabel_added(java.lang.CharSequence, android.os.UserHandle)"></A>
115 <nobr><code>CharSequence</code>&nbsp;<A HREF="../../../../reference/android/content/pm/PackageManager.html#getUserBadgedLabel(java.lang.CharSequence, android.os.UserHandle)" target="_top"><code>getUserBadgedLabel</code></A>(<code>CharSequence,</nobr> UserHandle<nobr><nobr></code>)</nobr>
  /frameworks/base/docs/html/sdk/api_diff/23/changes/
android.content.ContextWrapper.html 168 <A NAME="android.content.ContextWrapper.removeStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A>
169 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContextWrapper.html#removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>removeStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr>
188 <A NAME="android.content.ContextWrapper.sendStickyBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle)"></A>
189 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContextWrapper.html#sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle)" target="_top"><code>sendStickyBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr><nobr></code>) </nobr>
208 <A NAME="android.content.ContextWrapper.sendStickyOrderedBroadcastAsUser_changed(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)"></A>
209 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/content/ContextWrapper.html#sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)" target="_top"><code>sendStickyOrderedBroadcastAsUser</code></A>(<code>Intent,</nobr> UserHandle<nobr>,</nobr> BroadcastReceiver<nobr>,</nobr> Handler<nobr>,</nobr> int<nobr>,</nobr> String<nobr>,</nobr> Bundle<nobr><nobr></code>) </nobr>

Completed in 571 milliseconds

<<11121314151617181920>>