Home
last modified time | relevance | path

Searched refs:mAppContext (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DProgressiveDisclosureTest.java66 private Context mAppContext; field in ProgressiveDisclosureTest
75 mAppContext = ShadowApplication.getInstance().getApplicationContext(); in setUp()
76 mMixin = new ProgressiveDisclosureMixin(mAppContext, in setUp()
79 mPreference = new Preference(mAppContext); in setUp()
105 mMixin = new ProgressiveDisclosureMixin(mAppContext, in shouldNotCollapse_whenStartAsExpanded()
163 final PreferenceScreen prefGroup = spy(new PreferenceScreen(mAppContext, null)); in findPreference_nestedPrefInCollapsedList_shouldFindIt()
230 final Preference pref1 = new Preference(mAppContext); in addToCollapsedList_shouldAddInOrder()
231 final Preference pref2 = new Preference(mAppContext); in addToCollapsedList_shouldAddInOrder()
248 mMixin.addToCollapsedList(new Preference(mAppContext)); in addPreferenceWhenCollapsed_noPrefOnScreen_shouldAddToList()
253 final Preference toBeAdded = new Preference(mAppContext); in addPreferenceWhenCollapsed_noPrefOnScreen_shouldAddToList()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmUpdateHandler.java42 private final Context mAppContext; field in AlarmUpdateHandler
51 mAppContext = context.getApplicationContext(); in AlarmUpdateHandler()
68 ContentResolver cr = mAppContext.getContentResolver(); in asyncAddAlarm()
108 ContentResolver cr = mAppContext.getContentResolver(); in asyncUpdateAlarm()
130 AlarmNotifications.updateNotification(mAppContext, newInstance); in asyncUpdateAlarm()
135 AlarmStateManager.deleteAllInstances(mAppContext, alarm.id); in asyncUpdateAlarm()
165 AlarmStateManager.deleteAllInstances(mAppContext, alarm.id); in asyncDeleteAlarm()
166 return Alarm.deleteAlarm(mAppContext.getContentResolver(), alarm.id); in asyncDeleteAlarm()
186 final String time = DateFormat.getTimeFormat(mAppContext).format( in showPredismissToast()
188 final String text = mAppContext.getString(R.string.alarm_is_dismissed, time); in showPredismissToast()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCreationFragment.java65 private Context mAppContext; field in AccountCreationFragment
105 mAppContext = getActivity().getApplicationContext(); in onActivityCreated()
176 return new MailAsyncTaskLoader<Boolean>(mAppContext) { in onCreateLoader()
185 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
187 EmailServiceUtils.setupAccountManagerAccount(mAppContext, account, in onCreateLoader()
206 new AccountPreferences(mAppContext, account.getEmailAddress()) in onCreateLoader()
212 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
252 return new MailAsyncTaskLoader<Account>(mAppContext) {
258 account.refresh(mAppContext);
292 return new MailAsyncTaskLoader<Account>(mAppContext) {
[all …]
DAccountServerBaseFragment.java53 protected Context mAppContext; field in AccountServerBaseFragment
140 mAppContext = activity.getApplicationContext(); in onActivityCreated()
175 (InputMethodManager) mAppContext.getSystemService(Context.INPUT_METHOD_SERVICE); in onPause()
223 InputMethodManager imm = (InputMethodManager) mAppContext. in makeTextViewUneditable()
252 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mAppContext); in haveSettingsChanged()
255 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in haveSettingsChanged()
DAccountSetupOutgoingFragment.java224 final HostAuth sendAuth = mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext); in loadSettings()
227 AccountSetupCredentialsFragment.populateHostAuthWithResults(mAppContext, sendAuth, in loadSettings()
296 final HostAuth sendAuth = mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext); in onCheckedChanged()
342 return new SaveSettingsLoader(mAppContext, mSetupData, mSettingsMode); in getSaveSettingsLoader()
379 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mAppContext); in collectUserInputInternal()
416 mSetupData.getAccount().getOrCreateHostAuthRecv(mAppContext).mProtocol; in onRequestSignIn()
427 AccountSetupCredentialsFragment.populateHostAuthWithResults(mAppContext, sendAuth, in onActivityResult()
DAccountSetupIncomingFragment.java200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in onActivityCreated()
352 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in loadSettings()
448 deviceId = Device.getDeviceId(mAppContext); in onUseSslChanged()
499 return new SaveSettingsLoader(mAppContext, mSetupData, mSettingsMode); in getSaveSettingsLoader()
556 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in collectUserInputInternal()
612 mSetupData.getAccount().getOrCreateHostAuthRecv(mAppContext).mProtocol; in onRequestSignIn()
642 AccountSetupCredentialsFragment.populateHostAuthWithResults(mAppContext, recvAuth, in onActivityResult()
DAccountFinalizeFragment.java39 private Context mAppContext; field in AccountFinalizeFragment
60 mAppContext = getActivity().getApplicationContext(); in onCreate()
74 return new FinalSetupTaskLoader(mAppContext, accountArg); in onResume()
DAccountSetupCredentialsFragment.java84 private Context mAppContext; field in AccountSetupCredentialsFragment
171 mAppContext = getActivity().getApplicationContext(); in onActivityCreated()
174 mOauthProviders = AccountSettingsUtils.getAllOAuthProviders(mAppContext); in onActivityCreated()
177 final EmailServiceInfo info = EmailServiceUtils.getServiceInfo(mAppContext, protocol); in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/widget/
DEntityHeaderController.java74 private final Context mAppContext; field in EntityHeaderController
111 mAppContext = activity.getApplicationContext(); in EntityHeaderController()
113 mMetricsCategory = FeatureFactory.getFactory(mAppContext).getMetricsFeatureProvider() in EntityHeaderController()
135 mIcon = icon.getConstantState().newDrawable(mAppContext.getResources()); in setIcon()
147 mIcon = appEntry.icon.getConstantState().newDrawable(mAppContext.getResources()); in setIcon()
325 FeatureFactory.getFactory(mAppContext).getMetricsFeatureProvider() in bindButton()
326 .actionWithSource(mAppContext, mMetricsCategory, in bindButton()
346 FeatureFactory.getFactory(mAppContext).getMetricsFeatureProvider() in bindButton()
347 .actionWithSource(mAppContext, mMetricsCategory, in bindButton()
364 ResolveInfo result = mAppContext.getPackageManager().resolveActivity(i, 0); in resolveIntent()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java78 private final Context mAppContext; field in DvrManager
82 mAppContext = context.getApplicationContext(); in DvrManager()
186 TvInputInfo input = Utils.getTvInputInfoForProgram(mAppContext, program); in addSchedule()
211 TvInputInfo input = Utils.getTvInputInfoForChannelId(mAppContext, channel.getId()); in addSchedule()
245 TvInputInfo input = Utils.getTvInputInfoForProgram(mAppContext, selectedProgram); in addSeriesRecording()
302 TvInputInfo input = Utils.getTvInputInfoForInputId(mAppContext, series.getInputId()); in addScheduleToSeriesRecording()
500 ContentResolver resolver = mAppContext.getContentResolver(); in removeRecordedProgram()
532 ContentResolver resolver = mAppContext.getContentResolver(); in removeRecordedPrograms()
656 TvInputInfo info = Utils.getTvInputInfoForChannelId(mAppContext, channel.getId()); in isChannelRecordable()
664 Program program = TvApplication.getSingletons(mAppContext).getProgramDataManager() in isChannelRecordable()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java200 private Context mAppContext; field in CameraActivity
852 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(mAppContext); in setupNfcBeamPush()
1021 return mAppContext; in getAndroidContext()
1079 mAppContext); in getQuickSwitchToModuleId()
1265 CameraUtil.broadcastNewPicture(mAppContext, uri); in notifyNewMedia()
1434 mAppContext = getApplicationContext(); in onCreateTasks()
1436 mLocationManager = new LocationManager(mAppContext); in onCreateTasks()
1439 mSoundPlayer = new SoundPlayer(mAppContext); in onCreateTasks()
1468 mAppContext, in onCreateTasks()
1480 mCameraController = new CameraController(mAppContext, this, mMainHandler, in onCreateTasks()
[all …]
DSoundPlayer.java31 private final Context mAppContext; field in SoundPlayer
41 mAppContext = appContext; in SoundPlayer()
50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DSpellCheckerPreferenceControllerTest.java49 private Context mAppContext; field in SpellCheckerPreferenceControllerTest
56 mAppContext = RuntimeEnvironment.application; in setUp()
59 mPreference = new Preference(mAppContext); in setUp()
71 .isEqualTo(mAppContext.getString(R.string.spell_checker_not_selected)); in updateState_NoSpellerChecker_shouldSetSummaryToDefault()
80 .isEqualTo(mAppContext.getString(R.string.switch_off_text)); in updateState_spellerCheckerDisabled_shouldSetSummaryToDisabledText()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingServiceManager.java49 private final Context mAppContext; field in ProcessingServiceManager
63 mAppContext = context; in ProcessingServiceManager()
159 mAppContext.startService(new Intent(mAppContext, ProcessingService.class)); in startService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTetherServiceTest.java47 private Context mAppContext; field in TetherServiceTest
54 mAppContext = mShadowApplication.getApplicationContext(); in setUp()
56 ReflectionHelpers.setField(mService, "mBase", mAppContext); in setUp()
62 mService.setHotspotOffReceiver(new HotspotOffReceiver(mAppContext)); in scheduleAlarm_shouldRegisterReceiver()
/packages/apps/Camera2/src/com/android/camera/device/
DPortabilityCameraActionProvider.java36 private final Context mAppContext; field in PortabilityCameraActionProvider
46 mAppContext = appContext; in PortabilityCameraActionProvider()
52 return new PortabilityCameraActions(key, mAppContext, getApiFromKey(key), in get()
/packages/apps/TV/src/com/android/tv/util/
DImageLoader.java263 protected final Context mAppContext; field in ImageLoader.LoadBitmapTask
311 mAppContext = context.getApplicationContext(); in LoadBitmapTask()
370 .decodeSampledBitmapFromUriString(mAppContext, getKey(), mMaxWidth, mMaxHeight); in doGetBitmapInBackground()
395 Drawable drawable = mInfo.loadIcon(mAppContext); in doGetBitmapInBackground()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java50 private final Context mAppContext; field in PackageInstallerCompatVL
54 mAppContext = context.getApplicationContext(); in PackageInstallerCompatVL()
163 LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(mAppContext); in verify()
/packages/services/Car/car-lib/src/android/car/app/menu/
DCarUiEntry.java37 protected final Context mAppContext; field in CarUiEntry
43 mAppContext = appContext; in CarUiEntry()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java69 private Context mAppContext; field in HandleApiCalls
75 mAppContext = getApplicationContext(); in onCreate()
118 startActivity(new Intent(mAppContext, DeskClock.class)); in handleDismissAlarm()
120 new DismissAlarmAsync(mAppContext, intent, this).execute(); in handleDismissAlarm()
/packages/services/Car/car-lib/api/
D1.txt143 field protected final android.content.Context mAppContext;
D2.txt143 field protected final android.content.Context mAppContext;
Dcurrent.txt146 field protected final android.content.Context mAppContext;
Dsystem-2.txt255 field protected final android.content.Context mAppContext;
Dsystem-1.txt250 field protected final android.content.Context mAppContext;

12