/frameworks/base/core/java/android/content/pm/ |
D | LauncherApps.java | 76 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument 87 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument 97 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument 110 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 124 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 144 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument 147 activities = mService.getLauncherActivities(packageName, user); in getActivityList() 165 LauncherActivityInfo lai = new LauncherActivityInfo(mContext, ri, user, in getActivityList() 168 Log.v(TAG, "Returning activity for profile " + user + " : " in getActivityList() 188 public LauncherActivityInfo resolveActivity(Intent intent, UserHandle user) { in resolveActivity() argument [all …]
|
D | RegisteredServicesCache.java | 115 UserInfo user = getUser(userId); in findOrCreateUserLocked() local 116 if (user != null) { in findOrCreateUserLocked() 117 AtomicFile file = createFileForUser(user.id); in findOrCreateUserLocked() 120 Slog.i(TAG, String.format("Loading u%s data from %s", user.id, file)); in findOrCreateUserLocked() 127 Log.w(TAG, "Error reading persistent services for user " + user.id, e); in findOrCreateUserLocked() 233 final UserServices<V> user = findOrCreateUserLocked(userId); in invalidateCache() local 234 user.services = null; in invalidateCache() 241 final UserServices<V> user = findOrCreateUserLocked(userId); in dump() local 242 if (user.services != null) { in dump() 243 fout.println("RegisteredServicesCache: " + user.services.size() + " services"); in dump() [all …]
|
D | ILauncherApps.aidl | 34 List<ResolveInfo> getLauncherActivities(String packageName, in UserHandle user); in getLauncherActivities() argument 35 ResolveInfo resolveActivity(in Intent intent, in UserHandle user); in resolveActivity() argument 37 in Bundle opts, in UserHandle user); in startActivityAsUser() argument 39 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() argument 40 boolean isPackageEnabled(String packageName, in UserHandle user); in isPackageEnabled() argument 41 boolean isActivityEnabled(in ComponentName component, in UserHandle user); in isActivityEnabled() argument
|
D | IOnAppsChangedListener.aidl | 25 void onPackageRemoved(in UserHandle user, String packageName); in onPackageRemoved() argument 26 void onPackageAdded(in UserHandle user, String packageName); in onPackageAdded() argument 27 void onPackageChanged(in UserHandle user, String packageName); in onPackageChanged() argument 28 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() argument 29 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 179 private boolean isUserEnabled(UserHandle user) { in isUserEnabled() argument 182 UserInfo targetUserInfo = mUm.getUserInfo(user.getIdentifier()); in isUserEnabled() 190 public List<ResolveInfo> getLauncherActivities(String packageName, UserHandle user) in getLauncherActivities() argument 192 ensureInUserProfiles(user, "Cannot retrieve activities for unrelated profile " + user); in getLauncherActivities() 193 if (!isUserEnabled(user)) { in getLauncherActivities() 203 user.getIdentifier()); in getLauncherActivities() 211 public ResolveInfo resolveActivity(Intent intent, UserHandle user) in resolveActivity() argument 213 ensureInUserProfiles(user, "Cannot resolve activity for unrelated profile " + user); in resolveActivity() 214 if (!isUserEnabled(user)) { in resolveActivity() 220 ResolveInfo app = mPm.resolveActivityAsUser(intent, 0, user.getIdentifier()); in resolveActivity() [all …]
|
D | UserManagerService.java | 302 UserInfo user = getUserInfoLocked(userId); in getProfilesLocked() local 304 if (user == null) { in getProfilesLocked() 310 if (!isProfileOf(user, profile)) { in getProfilesLocked() 360 private boolean isProfileOf(UserInfo user, UserInfo profile) { in isProfileOf() argument 361 return user.id == profile.id || in isProfileOf() 362 (user.profileGroupId != UserInfo.NO_PROFILE_GROUP_ID in isProfileOf() 363 && user.profileGroupId == profile.profileGroupId); in isProfileOf() 640 UserInfo user = mUsers.valueAt(i); in getAliveUsersExcludingGuestsCountLocked() local 641 if (!mRemovingUserIds.get(user.id) in getAliveUsersExcludingGuestsCountLocked() 642 && !user.isGuest() && !user.partial) { in getAliveUsersExcludingGuestsCountLocked() [all …]
|
/frameworks/base/packages/Keyguard/scripts/ |
D | copy_profile_icons.sh | 3 for user in `adb $* shell ls /data/system/users | grep -v xml` 5 user=${user/$'\r'/} 6 adb shell mkdir /data/user/${user}/users 10 adb shell mkdir /data/user/${user}/users/${photo} 12 adb push photo.png /data/user/${user}/users/${photo}
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 582 UserInfo user = getUserInfo(UserHandle.myUserId()); in isAdminUser() local 583 return user != null ? user.isAdmin() : false; in isAdminUser() 607 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser() local 608 return user != null ? user.isGuest() : false; in isGuestUser() 620 UserInfo user = getUserInfo(UserHandle.myUserId()); in isManagedProfile() local 621 return user != null ? user.isManagedProfile() : false; in isManagedProfile() 632 public boolean isUserRunning(UserHandle user) { in isUserRunning() argument 635 user.getIdentifier(), false); in isUserRunning() 648 public boolean isUserRunningOrStopping(UserHandle user) { in isUserRunningOrStopping() argument 651 user.getIdentifier(), true); in isUserRunningOrStopping() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 66 for (UserInfo user : list) { in removeExistingUsers() 67 if (user.id != UserHandle.USER_OWNER) { in removeExistingUsers() 68 removeUser(user.id); in removeExistingUsers() 83 for (UserInfo user : list) { in testAddUser() 84 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddUser() 85 && user.isGuest() in testAddUser() 86 && !user.isAdmin() in testAddUser() 87 && !user.isPrimary()) { in testAddUser() 89 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser() 157 UserInfo user = createUser("User 1", 0); in testGetUserCreationTime() local [all …]
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | StatusBarIcon.java | 26 public UserHandle user; field in StatusBarIcon 34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon() argument 44 this.user = user; in StatusBarIcon() 51 public StatusBarIcon(String iconPackage, UserHandle user, in StatusBarIcon() argument 54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon() 63 + " user=" + user.getIdentifier() in toString() 70 StatusBarIcon that = new StatusBarIcon(this.user, this.pkg, this.icon, in clone() 86 this.user = (UserHandle) in.readParcelable(null); in readFromParcel() 96 out.writeParcelable(this.user, 0); in writeToParcel()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 42 private final UserHandle user; field in StatusBarNotification 50 int initialPid, int score, Notification notification, UserHandle user) { in StatusBarNotification() argument 51 this(pkg, opPkg, id, tag, uid, initialPid, score, notification, user, in StatusBarNotification() 56 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification() argument 69 this.user = user; in StatusBarNotification() 88 this.user = UserHandle.readFromParcel(in); in StatusBarNotification() 95 return user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid; in key() 105 return user.getIdentifier() + "|" + pkg + "|" + in groupKey() 125 user.writeToParcel(out, flags); in writeToParcel() 156 this.score, no, this.user, this.postTime); in cloneLight() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 75 public Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa) { in Client() argument 78 mRingtone = new Ringtone(getContextForUser(user), false); in Client() 105 final UserHandle user = Binder.getCallingUserHandle(); 106 client = new Client(token, uri, user, aa); 157 public void playAsync(Uri uri, UserHandle user, boolean looping, AudioAttributes aa) { 158 if (LOGD) Log.d(TAG, "playAsync(uri=" + uri + ", user=" + user + ")"); 162 if (UserHandle.ALL.equals(user)) { 163 user = UserHandle.OWNER; 165 mAsyncPlayer.play(getContextForUser(user), uri, looping, aa); 179 final UserHandle user = Binder.getCallingUserHandle(); [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 82 int user = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL); in PermissionMonitor() 88 onUserAdded(user); in PermissionMonitor() 90 onUserRemoved(user); in PermissionMonitor() 143 for (UserInfo user : users) { in startMonitoring() 144 mUsers.add(user.id); in startMonitoring() 188 for (int user : users) { in update() 189 list.add(UserHandle.getUid(user, app.getKey())); in update() 205 private synchronized void onUserAdded(int user) { in onUserAdded() argument 206 if (user < 0) { in onUserAdded() 207 loge("Invalid user in onUserAdded: " + user); in onUserAdded() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 336 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() argument 337 mBase.startActivityAsUser(intent, user); in startActivityAsUser() 358 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() argument 359 mBase.startActivityAsUser(intent, options, user); in startActivityAsUser() 463 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() argument 464 mBase.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser() 468 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() argument 470 mBase.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser() 475 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() argument 477 mBase.sendBroadcastAsUser(intent, user, receiverPermission, appOp); in sendBroadcastAsUser() [all …]
|
/frameworks/base/docs/html/training/id-auth/ |
D | identify.jd | 29 your user is—especially when the user upgrades to a new device or starts carrying 30 a tablet as well as a phone. But how do you know who your user is? And how do 34 user's permission, you can use Account Manager to fetch the account names 35 that the user has stored on their device.</p> 37 <p>Integration with the user's accounts allows you to do a variety of things such as:</p> 39 <li>Auto-fill forms with the user's email address.</li> 40 <li>Retrieve an ID that is tied to a user, not the device.</li> 46 <p>Applications typically try to remember the user using one of three techniques:</p> 48 <li>Ask the user to type in a username </li> 53 <p>Option (a) is problematic. First, asking the user to type something before [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataProfile.java | 39 public final String user; field in DataProfile 57 String user, String password, int type, int maxConnsTime, int maxConns, in DataProfile() argument 64 this.user = user; in DataProfile() 75 apn.authType, apn.user, apn.password, apn.bearerBitmask == 0 ? TYPE_COMMON : in DataProfile() 92 pc.writeString(dps[i].user); in toParcel() 106 + "/" + user + "/" + password + "/" + type + "/" + maxConnsTime in toString()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ReadComplexTernaryTest.java | 16 User user = new User(); in testWhenNull() local 17 user.setName("a"); in testWhenNull() 18 user.setFullName("a b"); in testWhenNull() 19 mBinder.setUser(user); in testWhenNull()
|
/frameworks/base/docs/html/design/patterns/ |
D | notifications_k.jd | 4 <a class="notice-developers" href="{@docRoot}training/notify-user/index.html"> 18 user informed about events, such as new chat messages or a calendar event. 19 Think of notifications as a news channel that alerts the user to important 20 events as they happen or a log that chronicles events while the user is not 48 the user with additional context, and - in some cases - may allow the user to 49 read a message in its entirety. The user can pinch-zoom or two-finger glide in 95 otherwise hidden, you must make sure that any action a user can invoke from a 105 <p>For notifications of items sent by another user (such as a message or 108 notification, so that the user can still identify which app posted it.</p> 113 <p>When the user touches the body of a notification (outside of the action [all …]
|
D | confirming-acknowledging.jd | 5 <p>In some situations, when a user invokes an action in your app, it's a good idea to <em>confirm</… 10 …<p><strong>Confirming</strong> is asking the user to verify that they truly want to proceed with a… 14 …<p><strong>Acknowledging</strong> is displaying text to let the user know that the action they jus… 29 …<p>In this example, the user has requested to delete a book from their Google Play library. An <a … 35 …resented in an alert with two buttons. After initiating Android Beam, the user is prompted to touc… 44 …<p>In this example, if the user navigates back or up from the Gmail compose screen, something poss… 45 …<p>Undo isn't appropriate here because saving was initiated by the app, not the user. And it's qui… 51 …r the user deletes a conversation from the list in Gmail, an acknowledgment appears with an undo o… 60 …<p><strong>Confirmation is unnecessary</strong>. If the user +1'd by accident, it's not a big deal… 61 …<p><strong>Acknowledgment is unnecessary</strong>. The user will see the +1 button bounce and turn… [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UnlockMethodCache.java | 88 int user = KeyguardUpdateMonitor.getCurrentUser(); in update() local 89 boolean secure = mLockPatternUtils.isSecure(user); in update() 90 boolean canSkipBouncer = !secure || mKeyguardUpdateMonitor.getUserCanSkipBouncer(user); in update() 91 boolean trustManaged = mKeyguardUpdateMonitor.getUserTrustIsManaged(user); in update() 92 boolean trusted = mKeyguardUpdateMonitor.getUserHasTrust(user); in update() 93 boolean faceUnlockRunning = mKeyguardUpdateMonitor.isFaceUnlockRunning(user) in update()
|
/frameworks/base/docs/html/training/basics/activity-lifecycle/ |
D | index.jd | 39 <p>As a user navigates through, out of, and back to your app, the 42 activity starts for the first time, it comes to the foreground of the system and receives user 44 activity in which you set up the user interface and other components. If the user performs an 50 user leaves and re-enters the activity. For example, if you're building a streaming video player, 51 you might pause the video and terminate the network connection when the user switches to another 52 app. When the user returns, you can reconnect to the network and allow the user to resume the video 57 user expects and does not consume system resources when your activity doesn't need them.</p> 63 <dd>Learn the basics about the activity lifecycle, how the user can launch your app, and how 69 <dd>Learn what happens when the user completely leaves your activity and returns to it.</dd>
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 960 private String user; field in AbstractMessageParser.Photo 964 public Photo(String user, String album, String photo, String text) { in Photo() argument 966 this.user = user; in Photo() 971 public String getUser() { return user; } in getUser() 1001 public static String getRssUrl(String user) { in getRssUrl() argument 1002 return "http://picasaweb.google.com/data/feed/api/user/" + user + in getRssUrl() 1007 public static String getAlbumURL(String user, String album) { in getAlbumURL() argument 1008 return "http://picasaweb.google.com/" + user + "/" + album; in getAlbumURL() 1012 public static String getPhotoURL(String user, String album, String photo) { in getPhotoURL() argument 1013 return "http://picasaweb.google.com/" + user + "/" + album + "/photo#" in getPhotoURL() [all …]
|
/frameworks/base/docs/html/preview/features/ |
D | runtime-permissions.jd | 59 running on the M Preview supports the new permissions model, the user does not have to 62 user asking for the permission. 90 write the user's contacts and profile information. 95 user installs or updates the app, the system grants the app all 107 permissions</a>. The user is <em>not</em> prompted to grant any permissions 113 a permission, the system shows a dialog to the user, then calls the app's 114 callback function to notify it whether the user granted the permission. 141 function, the app might disable all its functionality and inform the user 156 permissions at any time. If a user turns off an app's permissions, the app 184 users to grant related permissions to an app in a single action. The user [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 196 UserRecord user = mUserRecords.get(userHandle); in onStopUser() local 197 if (user != null) { in onStopUser() 198 destroyUserLocked(user); in onStopUser() 274 private void destroyUserLocked(UserRecord user) { in destroyUserLocked() argument 275 user.stopLocked(); in destroyUserLocked() 276 user.destroyLocked(); in destroyUserLocked() 277 mUserRecords.remove(user.mUserId); in destroyUserLocked() 291 UserRecord user = mUserRecords.get(userId); in destroySessionLocked() local 292 if (user != null) { in destroySessionLocked() 293 user.removeSessionLocked(session); in destroySessionLocked() [all …]
|
/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 35 void* user); 40 void* user); 45 void *user); 124 mHalPreviewWindow.user = this; in setPreviewWindow() 126 &mHalPreviewWindow, mHalPreviewWindow.user); in setPreviewWindow() 137 void* user) in setCallbacks() argument 142 mCbUser = user; in setCallbacks() 450 int32_t ext2, void *user) in __notify_cb() argument 454 static_cast<CameraHardwareInterface *>(user); in __notify_cb() 461 void *user) in __data_cb() argument [all …]
|