Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 594) sorted by relevance

12345678910>>...24

/frameworks/compile/linkloader/tests/images/
Dsimple-test.c25 unsigned int user = 100; in main() local
31 while (user != ans) { in main()
34 if (scanf("%u", &user) != 1) { in main()
38 if (user < left || user > right) { in main()
41 } else if (user == ans) { in main()
44 } else if (user < ans) { in main()
45 left = user; in main()
47 right = user; in main()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarNotification.java49 public final UserHandle user; field in StatusBarNotification
59 Notification notification, UserHandle user) { in StatusBarNotification() argument
70 this.user = user; in StatusBarNotification()
71 this.notification.setUser(user); in StatusBarNotification()
86 this.user = UserHandle.readFromParcel(in); in StatusBarNotification()
87 this.notification.setUser(user); in StatusBarNotification()
103 user.writeToParcel(out, flags); in writeToParcel()
127 this.score, this.notification.clone(), this.user); in clone()
133 + " notn=" + notification + " user=" + user + ")"; in toString()
147 return this.user.getIdentifier(); in getUserId()
DStatusBarIcon.java25 public UserHandle user; field in StatusBarIcon
32 public StatusBarIcon(String iconPackage, UserHandle user, int iconId, int iconLevel, int number, in StatusBarIcon() argument
35 this.user = user; in StatusBarIcon()
44 return "StatusBarIcon(pkg=" + this.iconPackage + "user=" + user.getIdentifier() in toString()
52 StatusBarIcon that = new StatusBarIcon(this.iconPackage, this.user, this.iconId, in clone()
67 this.user = (UserHandle) in.readParcelable(null); in readFromParcel()
77 out.writeParcelable(this.user, 0); in writeToParcel()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java163 final UserServices<V> user = findOrCreateUserLocked(userId); in invalidateCache() local
164 user.services = null; in invalidateCache()
170 final UserServices<V> user = findOrCreateUserLocked(userId); in dump() local
171 if (user.services != null) { in dump()
172 fout.println("RegisteredServicesCache: " + user.services.size() + " services"); in dump()
173 for (ServiceInfo<?> info : user.services.values()) { in dump()
250 final UserServices<V> user = findOrCreateUserLocked(userId); in getServiceInfo() local
251 if (user.services == null) { in getServiceInfo()
254 return user.services.get(type); in getServiceInfo()
265 final UserServices<V> user = findOrCreateUserLocked(userId); in getAllServices() local
[all …]
/frameworks/base/services/java/com/android/server/pm/
DUserManagerService.java303 UserInfo user = mUsers.valueAt(i); in setGuestEnabled() local
304 if (!user.partial && user.isGuest()) { in setGuestEnabled()
306 removeUser(user.id); in setGuestEnabled()
457 UserInfo user = readUser(Integer.parseInt(id)); in readUserListLocked() local
459 if (user != null) { in readUserListLocked()
460 mUsers.put(user.id, user); in readUserListLocked()
461 if (user.isGuest()) { in readUserListLocked()
464 if (mNextSerialNumber < 0 || mNextSerialNumber <= user.id) { in readUserListLocked()
465 mNextSerialNumber = user.id + 1; in readUserListLocked()
493 UserInfo user = mUsers.get(UserHandle.USER_OWNER); in upgradeIfNecessary() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java62 for (UserInfo user : list) { in testAddUser()
63 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddUser()
64 && user.isGuest() in testAddUser()
65 && !user.isAdmin() in testAddUser()
66 && !user.isPrimary()) { in testAddUser()
98 for (UserInfo user : list) { in findUser()
99 if (user.id == id) { in findUser()
138 UserInfo user = created.remove(0); in testMaxUsers() local
139 removeUser(user.id); in testMaxUsers()
/frameworks/base/core/java/android/content/
DContextWrapper.java289 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() argument
290 mBase.startActivityAsUser(intent, user); in startActivityAsUser()
300 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() argument
301 mBase.startActivityAsUser(intent, options, user); in startActivityAsUser()
363 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() argument
364 mBase.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser()
368 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() argument
370 mBase.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser()
374 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, in sendOrderedBroadcastAsUser() argument
377 mBase.sendOrderedBroadcastAsUser(intent, user, receiverPermission, resultReceiver, in sendOrderedBroadcastAsUser()
[all …]
DContext.java921 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() argument
1216 public abstract void sendBroadcastAsUser(Intent intent, UserHandle user); in sendBroadcastAsUser() argument
1233 public abstract void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() argument
1266 public abstract void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, in sendOrderedBroadcastAsUser() argument
1363 public abstract void sendStickyBroadcastAsUser(Intent intent, UserHandle user); in sendStickyBroadcastAsUser() argument
1393 UserHandle user, BroadcastReceiver resultReceiver, in sendStickyOrderedBroadcastAsUser() argument
1412 public abstract void removeStickyBroadcastAsUser(Intent intent, UserHandle user); in removeStickyBroadcastAsUser() argument
1524 UserHandle user, IntentFilter filter, String broadcastPermission, in registerReceiverAsUser() argument
1618 public abstract ComponentName startServiceAsUser(Intent service, UserHandle user); in startServiceAsUser() argument
1623 public abstract boolean stopServiceAsUser(Intent service, UserHandle user); in stopServiceAsUser() argument
[all …]
/frameworks/base/docs/html/guide/topics/ui/notifiers/
Dindex.jd6 <p>Several types of situations may arise that require you to notify the user
7 about an event that occurs in your application. Some events require the user to respond
12 <li>If the application is running in the background and needs the user's attention,
13 the application should create a notification that allows the user to respond at
16 performing work that the user must wait for (such as loading a file),
25 that come from the background and request the user's response.</li>
29 <p>This document summarizes each of these techniques for notifying the user and includes
38 It only fills the amount of space required for the message and the user's current
44 when you're fairly certain the user is paying attention
45 to the screen. A toast can not accept user interaction events; if you'd like
[all …]
/frameworks/base/docs/html/training/id-auth/
Didentify.jd29 your user is&mdash;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 …]
Dindex.jd34 devices know who your user is, what services they have access to, and where they
35 store your data. With your user's permission, you can use that information to
39 user's identity, enabling you to:</p>
43 <li>Authenticate the user to make sure they are who they say they are
44 <li>Gain permission to access the user's online data via services like
46 <li>Add a custom account to the user's device to authenticate your own
55 <dd>Use {@link android.accounts.AccountManager} to learn the user's account name(s).</dd>
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java75 public Client(IBinder token, Uri uri, UserHandle user, int streamType) { in Client() argument
78 mRingtone = new Ringtone(getContextForUser(user), false); in Client()
104 final UserHandle user = Binder.getCallingUserHandle();
105 client = new Client(token, uri, user, streamType);
141 public void playAsync(Uri uri, UserHandle user, boolean looping, int streamType) {
142 if (LOGD) Slog.d(TAG, "playAsync(uri=" + uri + ", user=" + user + ")");
147 mAsyncPlayer.play(getContextForUser(user), uri, looping, streamType);
160 private Context getContextForUser(UserHandle user) { in getContextForUser() argument
162 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, user); in getContextForUser()
/frameworks/base/docs/html/training/basics/activity-lifecycle/
Dindex.jd39 <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/av/services/camera/libcameraservice/
DCameraHardwareInterface.h35 void* user);
40 void* user);
45 void *user);
117 mHalPreviewWindow.user = this; in setPreviewWindow()
119 &mHalPreviewWindow, mHalPreviewWindow.user); in setPreviewWindow()
130 void* user) in setCallbacks() argument
135 mCbUser = user; in setCallbacks()
443 int32_t ext2, void *user) in __notify_cb() argument
447 static_cast<CameraHardwareInterface *>(user); in __notify_cb()
454 void *user) in __data_cb() argument
[all …]
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java960 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/design/patterns/
Dnotifications.jd4user informed about events, such as new chat messages or a calendar event. Think of notifications …
9 …<li>Notifications can include actions that enable the user to immediately act on a notification fr…
37 … This provides the user with additional context, and - in some cases - may allow the user to read …
66 …ifications and are otherwise hidden, you must make sure that any action a user can invoke from a n…
75 …<p>For notifications of items sent by another user (such as a message or status update), include t…
76 …<p>Remember to include the app icon as a secondary icon in the notification, so that the user can …
81 <p>When the user touches the body of a notification (outside of the action buttons), open your app …
82 …s</em> below) and references multiple items. If in any of those cases the user is taken to a hiera…
95 …<td>Use for critical and urgent notifications that alert the user to a condition that is time-crit…
99 …on, such as message or chat events with content that is particularly interesting for the user.</td>
[all …]
Dconfirming-acknowledging.jd4 <p>In some situations, when a user invokes an action in your app, it's a good idea to <em>confirm</…
9 …<p><strong>Confirming</strong> is asking the user to verify that they truly want to proceed with a…
13 …<p><strong>Acknowledging</strong> is displaying text to let the user know that the action they jus…
28 …<p>In this example, the user has requested to delete a book from their Google Play library. An <a …
34 …resented in an alert with two buttons. After initiating Android Beam, the user is prompted to touc…
43 …<p>In this example, if the user navigates back or up from the Gmail compose screen, something poss…
44 …<p>Undo isn't appropriate here because saving was initiated by the app, not the user. And it's qui…
50 …r the user deletes a conversation from the list in Gmail, an acknowledgment appears with an undo o…
59 …<p><strong>Confirmation is unnecessary</strong>. If the user +1'd by accident, it's not a big deal…
60 …<p><strong>Acknowledgment is unnecessary</strong>. The user will see the +1 button bounce and turn…
[all …]
Dnavigation.jd4 <p>Consistent navigation is an essential component of the overall user experience. Few things frust…
24 of screens the user has recently worked with. It is generally based on the temporal relationships
29 occurrence. However, unlike the Up button, which ensures the user remains within your app, the Back
30 button can return the user to the Home screen, or even to a different app.</p>
77 view. Extending the Play Store example from above, imagine the user has navigated from the last
79 (Movies) which the user hasn't previously navigated through.</p>
87 both bypass the Inbox screen, taking the user directly to a conversation view.</p>
103 screen. Up or Back from the compose screen would take the user to the Inbox, and from there the
111 single notification that directs the user to an interstitial screen. This screen summarizes these
112 events, and provides paths for the user to dive deeply into the app. Notifications of this style are
[all …]
/frameworks/base/docs/html/training/in-app-billing/
Dpurchase-iab-products.jd32 …tem is purchased, Google Play recognizes that the user has ownership of that item and prevents the…
33 …chases that were made by the user. This is useful, for example, when you want to restore the user'…
43user who made the purchase, so that you can later verify that this is a legitimate purchase by tha…
54user purchased gas or a premium upgrade. In this example, gas is an in-app product that can be pur…
69 // give user access to premium content and update the UI
78user’s purchase data is cached locally by Google Play’s In-app Billing service. It is good practic…
80 <p>To retrieve the user’s purchases from your app, call {@code queryInventoryAsync(QueryInventoryFi…
86 …stener. The In-app Billing service returns only the purchases made by the user account that is cur…
98 // does the user have the premium upgrade?
108 …ntrol and track how the in-app product is provisioned to the user. For example, if the user purcha…
[all …]
/frameworks/av/media/libmedia/
DAudioTrack.cpp110 void* user, in AudioTrack() argument
119 frameCount, flags, cbf, user, notificationFrames, in AudioTrack()
132 void* user, in AudioTrack() argument
141 frameCount, (audio_output_flags_t)flags, cbf, user, notificationFrames, in AudioTrack()
153 void* user, in AudioTrack() argument
162 0 /*frameCount*/, flags, cbf, user, notificationFrames, in AudioTrack()
194 void* user, in set() argument
313 mUserData = user; in set()
620 …oopCount %d, framecount %d, user %d", loopStart, loopEnd, loopCount, cblk->frameCount, cblk->user); in setLoop_l()
688 if (position > mCblk->user) return BAD_VALUE; in setPosition()
[all …]
/frameworks/base/docs/html/guide/practices/app-design/
Dindex.jd4 …m, to ensure that your applications offer outstanding performance and a great user experience. </p>
6 …n design that directly influence the user experience of your application, when in the hands of a m…
8user experience, in addition to a compelling technical feature set. The user experience is more th…
10 <p>An outstanding user experience has three key characteristics: it is
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dactivity_task_design.jd99 framework, from a high-level, user-centric perspective useful to
150 components</a>)--> for the user to interact with, typically bundled up
160 which the user can pick to start an application.
173 cohesive user interface. An activity has a distinct visual user
177 of user action. Any application that presents anything on the display
182 When using an Android device, as the user moves through the user
191 set of related user actions. Each activity has a
195 launched (started) independently, and the user or system can start,
278 As the user moves from activity to activity, across applications, the
280 user has visited. This is the <em>activity stack</em>, also known as the
[all …]
/frameworks/base/docs/html/training/accessibility/
Dindex.jd27 pay attention to accessibility in your Android application. Cues in your user
29 state when a button is pressed, can be less optimal if the user is visually
36 facilitate user interaction with <strong>any</strong> Android application, not
46 user experience.</dd>
51 and uses that information to communicate with the user. The example will
52 use a text-to-speech engine to speak to the user.</dd>
/frameworks/base/core/java/android/os/
DUserManager.java94 public boolean isUserRunning(UserHandle user) { in isUserRunning() argument
97 user.getIdentifier(), false); in isUserRunning()
110 public boolean isUserRunningOrStopping(UserHandle user) { in isUserRunningOrStopping() argument
113 user.getIdentifier(), true); in isUserRunningOrStopping()
144 public long getSerialNumberForUser(UserHandle user) { in getSerialNumberForUser() argument
145 return getUserSerialNumber(user.getIdentifier()); in getSerialNumberForUser()
/frameworks/base/docs/html/guide/topics/manifest/
Dpermission-element.jd30 <dd>A user-readable description of the permission, longer and more
32 permission to the user &mdash; for example, when the user is asked
52 strings in the user interface.
87 minimal risk to other applications, the system, or the user.
90 asking for the user's explicit approval (though the user always
95 access to private user data or control over the device that can
96 negatively impact the user. Because this type of permission
100 user and require confirmation before proceeding, or some other
101 approach may be taken to avoid the user automatically allowing
108 automatically grants the permission without notifying the user or
[all …]

12345678910>>...24