Home
last modified time | relevance | path

Searched refs:am (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java781 ActivityManager am = (ActivityManager) in refreshUi() local
783 int compatMode = am.getPackageScreenCompatMode(packageName); in refreshUi()
789 mAskCompatibilityCB.setChecked(am.getPackageAskScreenCompat(packageName)); in refreshUi()
1090 ActivityManager am = (ActivityManager) in initiateClearUserData() local
1092 boolean res = am.clearApplicationUserData(packageName, mClearDataObserver); in initiateClearUserData()
1264 ActivityManager am = (ActivityManager)getActivity().getSystemService(
1266 am.forceStopPackage(pkgName);
1426 ActivityManager am = (ActivityManager)
1429 am.setPackageAskScreenCompat(packageName, isChecked);
1431 am.setPackageScreenCompatMode(packageName, isChecked ?
/packages/apps/Browser/src/com/android/browser/
DGoogleAccountLogin.java174 AccountManager am = AccountManager.get(mActivity); in invalidateTokens() local
175 am.invalidateAuthToken(GOOGLE, mSid); in invalidateTokens()
176 am.invalidateAuthToken(GOOGLE, mLsid); in invalidateTokens()
179 am.getAuthToken(mAccount, "SID", null, mActivity, this, null); in invalidateTokens()
DBookmarkUtils.java62 final ActivityManager am = (ActivityManager) context in createIcon() local
64 final int iconDimension = am.getLauncherLargeIconSize(); in createIcon()
65 final int iconDensity = am.getLauncherLargeIconDensity(); in createIcon()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DSources.java189 final AccountManager am = mAccountManager; in queryAccounts() local
194 final AuthenticatorDescription[] auths = am.getAuthenticatorTypes(); in queryAccounts()
250 final AccountManager am = mAccountManager; in getAccounts() local
251 final Account[] accounts = am.getAccounts(); in getAccounts()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java228 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in scheduleInstanceStateChange() local
230 am.setExact(AlarmManager.RTC_WAKEUP, timeInMillis, pendingIntent); in scheduleInstanceStateChange()
232 am.set(AlarmManager.RTC_WAKEUP, timeInMillis, pendingIntent); in scheduleInstanceStateChange()
250 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in cancelScheduledInstance() local
251 am.cancel(pendingIntent); in cancelScheduledInstance()
/packages/apps/Camera2/src/com/android/camera/util/
DAccessibilityUtils.java22 AccessibilityManager am = (AccessibilityManager) ctx.getSystemService( in makeAnnouncement() local
24 if (!am.isEnabled()) return; in makeAnnouncement()
33 am.sendAccessibilityEvent(event); in makeAnnouncement()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DAccessibilityUtils.java40 AccessibilityManager am = (AccessibilityManager) ctx.getSystemService( in makeAnnouncement() local
42 if (!am.isEnabled()) return; in makeAnnouncement()
51 am.sendAccessibilityEvent(event); in makeAnnouncement()
/packages/experimental/TestBack/src/foo/bar/testback/
DTestBackService.java20 AccessibilityManager am = (AccessibilityManager)
22 Log.i(LOG_TAG, "accessibilityEnabled: " + am.isEnabled()
23 + " touchExplorationEnabled: " + am.isTouchExplorationEnabled());
/packages/apps/Settings/src/com/android/settings/
DUtils.java716 IActivityManager am = ActivityManagerNative.getDefault(); in getSecureTargetUser() local
718 String launchedFromPackage = am.getLaunchedFromPackage(activityToken); in getSecureTargetUser()
722 am.getLaunchedFromUid(activityToken))); in getSecureTargetUser()
766 IActivityManager am = ActivityManagerNative.getDefault(); in getInsecureTargetUser() local
769 am.getLaunchedFromUid(activityToken))); in getInsecureTargetUser()
/packages/apps/Settings/src/com/android/settings/notification/
DOtherSoundSettings.java91 final AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
93 am.loadSoundEffects();
95 am.unloadSoundEffects();
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DDeviceOwnerProvisioningService.java399 final AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in setTimeAndTimezone() local
402 am.setTimeZone(timeZone); in setTimeAndTimezone()
406 am.setTime(localTime); in setTimeAndTimezone()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java528 AccessibilityManager am = (AccessibilityManager) context in onHoverEvent() local
530 if (!am.isEnabled() || !am.isTouchExplorationEnabled()) { in onHoverEvent()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DShortcutIntentBuilder.java126 final ActivityManager am = (ActivityManager) context in ShortcutIntentBuilder() local
130 mIconSize = am.getLauncherLargeIconSize(); in ShortcutIntentBuilder()
132 mIconDensity = am.getLauncherLargeIconDensity(); in ShortcutIntentBuilder()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DActivityManagerCompatUtils.java38 final ActivityManager am = in isLowRamDevice() local
40 sBoolean = (Boolean)CompatUtils.invoke(am, false, METHOD_isLowRamDevice); in isLowRamDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileActivity.java217 AccountManager am = AccountManager.get(RestrictedProfileActivity.this);
218 Account[] accounts = am.getAccounts();
221 am.addSharedAccount(account, user);
/packages/apps/Nfc/src/com/android/nfc/
DNfcApplication.java50 ActivityManager am = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE); in onCreate() local
51 List processes = am.getRunningAppProcesses(); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DDataClearer.java65 ActivityManager am = (ActivityManager) activity.getSystemService( in clearData() local
67 boolean res = am.clearApplicationUserData( in clearData()
DForceStopManager.java50 ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in forceStop() local
51 am.forceStopPackage(mAppInfo.getPackageName()); in forceStop()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java93 final AccountManager am = AccountManager.get(mContext); in resolvePhotoPriority() local
95 for (AuthenticatorDescription auth : am.getAuthenticatorTypes()) { in resolvePhotoPriority()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DLocalizedNameResolver.java69 final AccountManager am = AccountManager.get(context); in resolveAllContactsName() local
71 for (AuthenticatorDescription auth : am.getAuthenticatorTypes()) { in resolveAllContactsName()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppsCustomizeTabHost.java202 AccessibilityManager am = (AccessibilityManager) in onLauncherTransitionEnd() local
204 if (am.isEnabled()) { in onLauncherTransitionEnd()
/packages/apps/Mms/src/com/android/mms/model/
DMediaModel.java300 AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in pauseMusicPlayer() local
301 am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); in pauseMusicPlayer()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetProvider.java85 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in onDisabled() local
87 am.cancel(pendingUpdate); in onDisabled()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAdvancedSettingsFragment.java201 final AudioManager am = (AudioManager)getActivity().getSystemService(Context.AUDIO_SERVICE); in setupKeypressSoundVolumeSettings() local
243 am.playSoundEffect( in setupKeypressSoundVolumeSettings()
/packages/apps/Email/src/com/android/email/provider/
DAccountReconciler.java55 final AccountManager am = AccountManager.get(context); in getAllAmAccounts() local
66 final android.accounts.Account[] accounts = am.getAccountsByType(type); in getAllAmAccounts()

123