Searched refs:user (Results 251 - 275 of 313) sorted by relevance

<<111213

/frameworks/base/services/usage/java/com/android/server/usage/
H A DStorageStatsService.java208 // willing to automatically clear. To avoid user confusion, this
229 for (UserInfo user : mUser.getUsers()) {
230 final StorageStats stats = queryStatsForUser(volumeUuid, user.id, null);
357 // Always require permission to see user-level stats
384 // Always require permission to see user-level stats
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionSessionConnection.java133 public VoiceInteractionSessionConnection(Object lock, ComponentName component, int user, argument
137 mUser = user;
/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.cpp307 static void audioRecorder_callback(int event, void* user, void *info) { argument
308 //SL_LOGV("audioRecorder_callback(%d, %p, %p) entering", event, user, info);
310 CAudioRecorder *ar = (CAudioRecorder *)user;
698 (void*)ar, // user, callback data, here the AudioRecorder
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp137 // hand the user a snapshot of the metrics.
165 void* user,
182 (void)set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user,
224 void* user,
364 mUserData = user;
980 // sanity-check. user is most-likely passing an error code, and it would
157 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, audio_port_handle_t selectedDeviceId) argument
217 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, bool threadCanCallJava, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, audio_port_handle_t selectedDeviceId) argument
H A DAudioTrack.cpp231 // hand the user a snapshot of the metrics.
266 void* user,
284 frameCount, flags, cbf, user, notificationFrames,
297 void* user,
315 0 /*frameCount*/, flags, cbf, user, notificationFrames,
359 void* user,
611 mUserData = user;
1777 // Sanity-check: user is most-likely passing an error code, and it would
2275 // For streaming tracks, this is the amount we obtained from the user/client
258 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed, audio_port_handle_t selectedDeviceId) argument
289 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, int32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed) argument
351 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int32_t notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed, audio_port_handle_t selectedDeviceId) argument
/frameworks/base/core/java/android/net/
H A DVpnService.java80 * {@link Builder#establish}. The former deals with user action and stops
87 * <li>When the user presses the button to connect, call {@link #prepare}
172 * if the VPN application is already prepared or if the user has previously
176 * prepared. The activity may pop up a dialog to require user action, and
187 * <p>The user may disable the VPN at any time while it is activated, in
189 * executed to obtain the user's consent again.
205 * Version of {@link #prepare(Context)} which does not require user consent.
208 * used. Only acceptable in situations where user consent has been obtained through other means.
333 * this VPN in order to present this information to the user (e.g., via status bar icons).
447 mConfig.user
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp126 static void audioCallback(int event, void* user, void *info) { argument
128 audiotrack_callback_cookie *callbackInfo = (audiotrack_callback_cookie *)user;
145 if (user != NULL && env != NULL) {
161 if (user != NULL && env != NULL) {
342 audioCallback, &(lpJniStorage->mCallbackData),//callback, callback data (user)
368 audioCallback, &(lpJniStorage->mCallbackData),//callback, callback data (user));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DInboundSmsHandler.java99 private static final boolean VDBG = false; // STOPSHIP if true, logs user data
1022 * @param user user to deliver the intent to
1025 Bundle opts, BroadcastReceiver resultReceiver, UserHandle user) {
1041 if (user.equals(UserHandle.ALL)) {
1049 users = new int[] {user.getIdentifier()};
1052 // by user policy.
1056 // Is the user not allowed to use SMS?
1072 mContext.sendOrderedBroadcastAsUser(intent, user, permission, appOp, opts,
1132 // We are deliberately delivering to the primary user'
1024 dispatchIntent(Intent intent, String permission, int appOp, Bundle opts, BroadcastReceiver resultReceiver, UserHandle user) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java467 List<BatterySipper> user = mUserSippers.valueAt(i);
468 for (int j = 0; j < user.size(); j++) {
469 BatterySipper bs = user.get(j);
589 // We are told to just report this user's apps as one large entry.
H A DProcessCpuTracker.java74 /** Stores user time and system time in jiffies. */
77 /** Stores user time and system time in jiffies. Used for
118 PROC_SPACE_TERM|PROC_OUT_LONG, // 1: user time
325 // Total user time is user + nice time.
601 * both user and system code. Safe to call without lock held.
820 int totalTime, int user, int system, int iowait, int irq, int softIrq,
824 printRatio(pw, user+system+iowait+irq+softIrq, totalTime);
832 printRatio(pw, user, totalTime);
833 pw.print("% user
819 printProcessCPU(PrintWriter pw, String prefix, int pid, String label, int totalTime, int user, int system, int iowait, int irq, int softIrq, int minFaults, int majFaults) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserSwitcherController.java78 * Keeps a list of all users on the device for user switching.
159 * @param forcePictureLoadForId forces the picture of the given user to be reloaded.
209 // Tapping guest icon triggers remove and a user switch therefore
210 // the icon shouldn't be enabled even if the user is current
352 // No guest user. Create one.
357 // haven't reloaded the user list yet.
398 Log.e(TAG, "Couldn't switch to user, id=" + userId);
418 Log.e(TAG, "Couldn't switch user.", e);
476 + " user=" + intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1));
509 // Disconnect from the old secondary user'
[all...]
/frameworks/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsStorage.java65 private static final String COLUMN_USERID = "user";
320 Slog.e(TAG, "Remove child profile lock for user: " + userId);
479 // Leave it in the same place for user 0
514 for (UserInfo user : um.getUsers(false)) {
515 result.put(user.id, listSyntheticPasswordHandlesForUser(stateName, user.id));
545 /** Ensure per-user directory for synthetic password state exists */
568 // This user owns its lock settings files - safe to delete them
594 // The directory itself will be deleted as part of user deletion operation by the
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DManagedServicesTest.java95 // type : user : list of approved
111 for (UserInfo user : users) {
112 when(mUm.getUserInfo(eq(user.id))).thenReturn(user);
262 + invalidUser + " is allowed for user " + invalidUser,
505 assertTrue("Not allowed: user: " + userId + " entry: " + verifyValue
533 assertTrue("Not allowed: user: " + userId + " entry: " + verifyValue,
542 "Is allowed: user: " + userId + " entry: " + notExpectedForUser.get(i),
770 + verifyValue + " is not allowed for user " + userId,
H A DRankingHelperTest.java139 UserHandle user = UserHandle.ALL;
193 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortA, user,
203 PKG, PKG, 1, null, 0, 0, mNotiGroupGSortB, user,
211 PKG, PKG, 1, null, 0, 0, mNotiNoGroup, user,
219 PKG, PKG, 1, null, 0, 0, mNotiNoGroup2, user,
228 PKG, PKG, 1, null, 0, 0, mNotiNoGroupSortA, user,
790 // no fields locked by user
1368 // create records with the default channel for all user 0 and user 1 uids
1375 // user
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java243 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) {
245 // If this user is new, it needs a map created.
246 if (mEntriesMap.indexOfKey(user.id) < 0) {
247 mEntriesMap.put(user.id, new HashMap<String, AppEntry>());
252 user.isAdmin() ? mAdminRetrieveFlags : mRetrieveFlags,
253 user.id);
274 // something different than the user.
542 // This is the simplest way to reload the packages so that the new user
936 // for this user'.
997 // according to the user'
[all...]
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java116 * <li>Issues a system notification so user can watch the progresss (which is 0% initially).
125 * <li>Updates the system notification so user can share the bugreport.
580 * Cancels a bugreport upon user's request.
588 Log.i(TAG, "Cancelling bugreport service (ID=" + id + ") on user's request");
596 * Fetches a {@link BugreportInfo} for a given process and launches a dialog where the user can
603 // Most likely am killed Shell before user tapped the notification. Since system might
636 // Most likely am killed Shell before user tapped the notification. Since system might
835 * Responsible for triggering a notification that allows the user to start a "share" intent with
836 * the bugreport. On watches we have other methods to allow the user to start this intent
936 * Shares the bugreport upon user'
[all...]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
H A DExprModelTest.java201 IdentifierExpr user = lb
202 .addVariable("user", "android.databinding.tool.expr.ExprModelTest.User",
204 MathExpr parsed = parse(lb, "user.name + \" \" + (user.lastName ?? \"\")", MathExpr.class);
209 assertSame(user, readNow.get(0));
211 justRead.add(user);
213 assertEquals(2, readNow.size()); //user.name && user.lastName
215 // user.lastname (T, F), user
[all...]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java425 * i.e. the user has to use a strong authentication method like password, PIN or pattern.
451 * Contains (package-user) pairs to remove. An entry (p, u) implies that removal of package p
452 * is requested for user u.
720 + action + " for user " + userHandle);
733 // It might take a while for the user to become affiliated. Make security
740 // Check whether the user is affiliated, *before* removing its data.
745 // device owner cannot retrieve data about that user after it's gone).
875 private static final String TAG_USER_RESTRICTIONS = "user-restrictions";
877 "default-enabled-user-restrictions";
974 // notifications from this user
1795 createContextAsUser(UserHandle user) argument
1998 pendingIntentGetActivityAsUser(Context context, int requestCode, @NonNull Intent intent, int flags, Bundle options, UserHandle user) argument
2076 keyChainBindAsUser(UserHandle user) argument
2462 migrateUserRestrictionsForUser(UserHandle user, ActiveAdmin admin, Set<String> exceptionList, boolean isDeviceOwner) argument
12588 getOwnerInstalledCaCerts(@onNull UserHandle user) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java340 // Verify that account can be removed when user is locked
351 // Unlock the user and verify that db has been updated
918 2); // fake user id
950 2); // fake user id
970 2); // fake user id
986 2); // fake user id
1004 2); // fake user id
1038 2); // fake user id
3196 UserHandle user) {
3197 return mTestContext.bindServiceAsUser(service, conn, flags, user);
3195 bindServiceAsUser(Intent service, ServiceConnection conn, int flags, UserHandle user) argument
3226 startActivityAsUser(Intent intent, UserHandle user) argument
3236 registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, IntentFilter filter, String broadcastPermission, Handler scheduler) argument
3254 sendBroadcastAsUser(Intent intent, UserHandle user) argument
3264 createPackageContextAsUser(String packageName, int flags, UserHandle user) argument
[all...]
/frameworks/base/core/proto/android/server/
H A Dactivitymanagerservice.proto157 optional int32 user = 4;
404 optional int32 user = 1;
1010 optional int32 user = 1;
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java297 * No opportunistic quota could be calculated from user data plan or data settings.
426 // Store whether user flipped restrict background in battery saver mode
492 * but later revoked by user.
533 * userId to restricted uids which belong to that user.
650 * Whitelists pre-defined apps for restrict background, but only if the user didn't already
661 final UserInfo user = users.get(i);
662 changed = addDefaultRestrictBackgroundWhitelistUidsUL(user.id) || changed;
676 + " and user " + userId);
693 Slog.d(TAG, "Adding uid " + uid + " (user " + userId + ") to default restricted "
698 Slog.d(TAG, "adding default package " + pkg + " (uid " + uid + " for user "
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java214 /** Permissions have been accepted by the user (see {@link #setPermissionsResult}) */
245 * session inside an ASEC before confirming with user.
946 // can use to involve user.
1033 final UserHandle user;
1035 user = UserHandle.ALL;
1037 user = new UserHandle(userId);
1042 mInstallerPackageName, mInstallerUid, user, mSigningDetails);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsProvider.java118 * protection and per user), and system (with dangerous permission level
119 * protection and per user). Global settings are stored under the device owner.
122 * key derived from the setting type in the most significant bits and user
125 * Settings are stored in the user specific system directory.
219 // Per user secure settings that moved to the for all users global settings.
225 // Per user system settings that moved to the for all users global settings.
231 // Per user system settings that moved to the per user secure settings.
237 // Per all users global settings that moved to the per user secure settings.
243 // Per user secur
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java125 * Has the user sent a reply through this Notification.
337 Person user = extras.getParcelable(Notification.EXTRA_MESSAGING_PERSON);
338 return Objects.equals(user, senderPerson);
728 // this is a foreground-service disclosure for a user that does not need to show one
811 * Provides access to keyguard state and user settings dependent data.
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerShellCommand.java226 case "switch-user":
228 case "get-current-user":
230 case "start-user":
232 case "unlock-user":
234 case "stop-user":
236 case "is-user-stopped":
238 case "get-started-user-state":
347 } else if (opt.equals("--user")) {
380 getErrPrintWriter().println("Error: Can't start service with user 'all'");
494 + " current activity is being kept for the user
[all...]

Completed in 821 milliseconds

<<111213