Searched refs:user (Results 51 - 75 of 115) sorted by relevance

12345

/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp86 static void recorderCallback(int event, void* user, void *info) { argument
88 audiorecord_callback_cookie *callbackInfo = (audiorecord_callback_cookie *)user;
100 if (user != NULL && env != NULL) {
114 if (user != NULL && env != NULL) {
235 lpCallbackData,// void* user
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DManageDialog.java74 // mConfig can be null if we are a restricted user, in that case don't show this dialog
94 ApplicationInfo app = pm.getApplicationInfo(mConfig.user, 0);
136 mService.prepareVpn(mConfig.user, VpnConfig.LEGACY_VPN);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DGlobalActions.java370 for (final UserInfo user : users) {
372 ? user.id == 0 : (currentUser.id == user.id);
373 Drawable icon = user.iconPath != null ? Drawable.createFromPath(user.iconPath)
377 (user.name != null ? user.name : "Primary")
381 ActivityManagerNative.getDefault().switchUser(user.id);
383 Log.e(TAG, "Couldn't switch user " + re);
/frameworks/base/services/java/com/android/server/pm/
H A DSettings.java108 private static final String ATTR_USER = "user";
142 // The user's preferred activities associated with particular intent
178 * Used to track packages that have a shared user ID that hasn't been read
216 String nativeLibraryPathString, int pkgFlags, UserHandle user, boolean add) {
220 user, add, true /* allowInstall */);
254 Log.i(PackageManagerService.TAG, "New shared user " + name + ": id=" + s.userId);
342 "Adding duplicate shared user, keeping first: " + name);
422 "Package " + name + " shared user changed from "
470 for (UserInfo user : users) {
472 // for the user i
214 getPackageLPw(PackageParser.Package pkg, PackageSetting origPackage, String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, String nativeLibraryPathString, int pkgFlags, UserHandle user, boolean add) argument
[all...]
H A DPackageManagerService.java433 // for each user id, a map of <package name -> components within that package>
776 for (int user : users) {
778 new PackageCleanItem(user, packageName, andCode));
812 int user = res.newUsers[i];
815 if (res.origUsers[j] == user) {
824 newFirst[firstUsers.length] = user;
830 newUpdate[updateUsers.length] = user;
1125 mUserAppDataDir = new File(dataDir, "user");
1327 * scanned package so the previously user-installed
1426 // cases get permissions that the user did
3532 scanPackageLI(File scanFile, int parseFlags, int scanMode, long currentTime, UserHandle user) argument
4103 scanPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, long currentTime, UserHandle user) argument
6739 broadcastPackageVerified(int verificationId, Uri packageUri, int verificationCode, UserHandle user) argument
7072 HandlerParams(UserHandle user) argument
7216 InstallParams(Uri packageURI, IPackageInstallObserver observer, int flags, String installerPackageName, VerificationParams verificationParams, ContainerEncryptionParams encryptionParams, UserHandle user) argument
7633 MoveParams(InstallArgs srcArgs, IPackageMoveObserver observer, int flags, String packageName, String dataDir, int uid, UserHandle user) argument
7795 final UserHandle user; field in class:PackageManagerService.InstallArgs
7797 InstallArgs(Uri packageURI, IPackageInstallObserver observer, int flags, String installerPackageName, ManifestDigest manifestDigest, UserHandle user) argument
8561 installNewPackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, UserHandle user, String installerPackageName, PackageInstalledInfo res) argument
8616 replacePackageLI(PackageParser.Package pkg, int parseFlags, int scanMode, UserHandle user, String installerPackageName, PackageInstalledInfo res) argument
8654 replaceNonSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, UserHandle user, int[] allUsers, boolean[] perUserInstalled, String installerPackageName, PackageInstalledInfo res) argument
8739 replaceSystemPackageLI(PackageParser.Package deletedPackage, PackageParser.Package pkg, int parseFlags, int scanMode, UserHandle user, int[] allUsers, boolean[] perUserInstalled, String installerPackageName, PackageInstalledInfo res) argument
9507 deletePackageLI(String packageName, UserHandle user, boolean deleteCodeAndResources, int[] allUserHandles, boolean[] perUserInstalled, int flags, PackageRemovedInfo outInfo, boolean writeSettings) argument
10520 setSharedUser(SharedUserSetting user) argument
[all...]
/frameworks/base/services/java/com/android/server/accounts/
H A DAccountManagerService.java342 * given user. Clears cached authenticators before validating.
347 // Invalidate user-specific cache to make sure we catch any
354 * given user. Clear cached authenticators before validating when requested.
575 * a limited user.
614 // Create a Session for the target user and pass in the bundle
674 // TODO: Show error notification to user
736 * Adds the account to all limited users as shared accounts. If the user is currently
742 for (UserInfo user : users) {
743 if (user.isRestricted()) {
744 addSharedAccountAsUser(account, user
2571 installNotification(final int notificationId, final Notification n, UserHandle user) argument
2577 cancelNotification(int id, UserHandle user) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java926 public Context createPackageContextAsUser(String arg0, int arg1, UserHandle user) { argument
1245 public void sendBroadcastAsUser(Intent intent, UserHandle user) { argument
1250 public void sendBroadcastAsUser(Intent intent, UserHandle user, argument
1256 public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, argument
1276 public void sendStickyBroadcastAsUser(Intent intent, UserHandle user) { argument
1282 UserHandle user, BroadcastReceiver resultReceiver,
1289 public void removeStickyBroadcastAsUser(Intent intent, UserHandle user) { argument
1281 sendStickyOrderedBroadcastAsUser(Intent intent, UserHandle user, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, Bundle initialExtras) argument
/frameworks/compile/libbcc/gdb_plugin/
H A Dandroid-commands.py228 # Alert user if library mismatch is detected
269 # sitting on the device actually executing. Alert the user if
311 user = line[0]
315 return (pid, user)
317 ret.append((pid, user))
329 (pid, user) = self.get_process_info(process_name)
332 (pid, user) = self.get_process_info(process_name)
363 print "\tgdbserver user: " + str(self.gdbserver_user)
388 (pid, user) = self.adb.get_process_info(process_name)
391 (pid, user)
[all...]
/frameworks/av/include/media/
H A DToneGenerator.h277 static void audioCallback(int event, void* user, void *info);
/frameworks/base/services/java/com/android/server/
H A DLockSettingsService.java59 * Keeps the lock pattern/password data and related settings for each user.
72 private static final String COLUMN_USERID = "user";
100 // These Settings moved before multi-user was enabled, so we only have to do it for the
101 // root user.
115 // These Settings changed after multi-user was enabled, hence need to be moved per user.
120 for (int user = 0; user < users.size(); user++) {
122 final int userId = users.get(user)
[all...]
H A DMountService.java109 // TODO: listen for user creation/deletion
191 /** When defined, base template for user-specific {@link StorageVolume}. */
194 // TODO: separate storage volumes on per-user basis
575 final UserHandle user = new UserHandle(userId);
580 createEmulatedVolumeForUserLocked(user);
587 if (user.equals(volume.getOwner())) {
1140 private void sendStorageIntent(String action, StorageVolume volume, UserHandle user) { argument
1143 Slog.d(TAG, "sendStorageIntent " + intent + " to " + user);
1144 mContext.sendBroadcastAsUser(intent, user);
1213 // volumes for each known user
1260 createEmulatedVolumeForUserLocked(UserHandle user) argument
[all...]
/frameworks/wilhelm/src/android/
H A DMediaPlayer_to_android.cpp29 static void player_handleMediaPlayerEventNotifications(int event, int data1, int data2, void* user) argument
38 if (NULL == user) {
42 CMediaPlayer* mp = (CMediaPlayer*) user;
53 "user=%p) from AVPlayer", u.c[3], u.c[2], u.c[1], u.c[0], event, data1, data2, user);
H A DAudioRecorder_to_android.cpp211 static void audioRecorder_callback(int event, void* user, void *info) { argument
212 //SL_LOGV("audioRecorder_callback(%d, %p, %p) entering", event, user, info);
214 CAudioRecorder *ar = (CAudioRecorder *)user;
408 (void*)ar, // user, callback data, here the AudioRecorder
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp33 static void AudioRecordCallbackFunction(int event, void *user, void *info) { argument
34 AudioSource *source = (AudioSource *) user;
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.h257 static Mutex* getClientLockFromCookie(void* user);
259 static Client* getClientFromCookie(void* user);
H A DCameraService.cpp1043 Mutex* CameraService::Client::getClientLockFromCookie(void* user) { argument
1044 return gCameraService->getClientLockById((int) user);
1049 CameraService::Client* CameraService::Client::getClientFromCookie(void* user) { argument
1050 BasicClient *basicClient = gCameraService->getClientByIdUnsafe((int) user);
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java255 protected void installNotification(final int notificationId, final Notification n, UserHandle user) { argument
259 protected void cancelNotification(final int id, UserHandle user) { argument
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java53 * This class provides access to a centralized registry of the user's
54 * online accounts. The user enters credentials (username and password) once
67 * the user's actual password. (Auth tokens are normally created with a
68 * separate request which does include the user's credentials.) AccountManager
89 * user for their preference. If no suitable accounts are available,
90 * {@link #addAccount} may be called to prompt the user to create an
113 * treated as a "genuine" authentication failure and the user notified or other
117 * <p>Some AccountManager methods may need to interact with the user to
118 * prompt for credentials, present options, or ask the user to add an account.
120 * necessary user interfac
1176 addSharedAccount(final Account account, UserHandle user) argument
1193 removeSharedAccount(final Account account, UserHandle user) argument
1208 getSharedAccounts(UserHandle user) argument
[all...]
/frameworks/av/media/libmedia/
H A DSoundPool.cpp426 void SoundPool::setCallback(SoundPoolCallback* callback, void* user) argument
430 mUserData = user;
598 // as callback user data. This enables the detection of callbacks received from the old
681 void SoundChannel::callback(int event, void* user, void *info) argument
683 SoundChannel* channel = static_cast<SoundChannel*>((void *)((unsigned long)user & ~1));
685 channel->process(event, info, (unsigned long)user & 1);
H A DAudioTrack.cpp100 void* user,
111 frameCount, flags, cbf, user, notificationFrames,
123 void* user,
134 0 /*frameCount*/, flags, cbf, user, notificationFrames,
166 void* user,
353 mUserData = user;
1213 // Sanity-check: user is most-likely passing an error code, and it would
92 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo) argument
115 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, int notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo) argument
158 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCountInt, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo) argument
H A DAudioRecord.cpp86 void* user,
96 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user,
129 void* user,
264 mUserData = user;
661 // sanity-check. user is most-likely passing an error code, and it would
79 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, int sessionId, transfer_type transferType, audio_input_flags_t flags) argument
122 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCountInt, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId, transfer_type transferType, audio_input_flags_t flags) argument
/frameworks/base/core/java/android/app/
H A DNotification.java45 * the user using the {@link android.app.NotificationManager}.
101 * Choose a timestamp that will be most relevant to the user. For most finite events, this
103 * yet to occur but about which the user is being informed). Indefinite events should be
163 * The intent to execute when the notification is explicitly dismissed by the user, either with
325 * user.
332 * set if the notification should not be canceled when the user clicks
367 * Lowest {@link #priority}; these items might not be shown to the user except under special
381 * user's prompt attention or input.
388 * Priority is an indication of how much of the user's valuable attention should be consumed by
389 * this notification. Low-priority notifications may be hidden from the user i
1101 setUser(UserHandle user) argument
[all...]
/frameworks/base/services/java/com/android/server/usb/
H A DUsbSettingsManager.java70 /** Legacy settings file, before multi-user */
87 // Maps DeviceFilter to user preferred application package
90 // Maps AccessoryFilter to user preferred application package
381 public UsbSettingsManager(Context context, UserHandle user) { argument
382 if (DEBUG) Slog.v(TAG, "Creating settings for " + user);
385 mUserContext = context.createPackageContextAsUser("android", 0, user);
393 mUser = user;
395 Environment.getUserSystemDirectory(user.getIdentifier()),
399 if (UserHandle.OWNER.equals(user)) {
430 * Upgrade any single-user setting
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockPackageManager.java610 UserHandle user) {
618 public boolean getApplicationBlockedSettingAsUser(String packageName, UserHandle user) { argument
609 setApplicationBlockedSettingAsUser(String packageName, boolean blocked, UserHandle user) argument
/frameworks/av/media/libstagefright/rtsp/
H A DARTSPConnection.cpp134 AString *user, AString *pass) {
138 user->clear();
158 // Split of user:pass@ from hostname.
166 *user = userPass;
168 user->setTo(userPass, 0, colonPos);
238 // If we have a user name but no password we have to give up
239 // right here, since we currently have no way of asking the user
252 ALOGV("user = '%s', pass = '%s'", mUser.c_str(), mPass.c_str());
132 ParseURL( const char *url, AString *host, unsigned *port, AString *path, AString *user, AString *pass) argument

Completed in 915 milliseconds

12345