Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 1627) sorted by relevance

12345678910>>...66

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
DSuggestionFeatureProviderImplTest.java88 private Context mContext; field in SuggestionFeatureProviderImplTest
110 FakeFeatureFactory.setupForTest(mContext); in setUp()
111 mFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext); in setUp()
112 when(mContext.getPackageManager()).thenReturn(mPackageManager); in setUp()
114 when((Object) mContext.getSystemService(FingerprintManager.class)) in setUp()
116 when(mContext.getApplicationContext()).thenReturn(RuntimeEnvironment.application); in setUp()
117 when(mContext.getSystemService(Context.ACTIVITY_SERVICE)).thenReturn(mActivityManager); in setUp()
123 mProvider = new SuggestionFeatureProviderImpl(mContext); in setUp()
229 when(mContext.getResources(). in isSuggestionCompleted_swipeToNotification_trueWhenNotHardwareNotAvailable()
233 assertThat(mProvider.isSuggestionCompleted(mContext, in isSuggestionCompleted_swipeToNotification_trueWhenNotHardwareNotAvailable()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java74 private Context mContext; field in StorageItemPreferenceControllerTest
88 mContext = spy(RuntimeEnvironment.application.getApplicationContext()); in setUp()
89 FakeFeatureFactory.setupForTest(mContext); in setUp()
90 mFakeFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext); in setUp()
95 mController = new StorageItemPreferenceController(mContext, mFragment, mVolume, mSvp); in setUp()
96 mPreference = new StorageItemPreference(mContext); in setUp()
99 LayoutInflater inflater = LayoutInflater.from(mContext); in setUp()
101 mPreference.getLayoutResource(), new LinearLayout(mContext), false); in setUp()
112 mContext.getString(R.string.memory_calculating_size)); in testUpdateStateWithInitialState()
180 mController = new StorageItemPreferenceController(mContext, mFragment, mVolume, mSvp, true); in testClickAppsForWork()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java98 private Context mContext; field in BluetoothOppNotification
143 mContext = ctx; in BluetoothOppNotification()
144 mNotificationMgr = (NotificationManager)mContext in BluetoothOppNotification()
147 mContext.getString(R.string.opp_notification_group), in BluetoothOppNotification()
153 mContentResolver = mContext.getContentResolver(); in BluetoothOppNotification()
270 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification()
285 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
287 item.description = mContext in updateActiveNotification()
327 mContext.sendBroadcast(intent, Constants.HANDOVER_STATUS_PERMISSION); in updateActiveNotification()
332 Notification.Builder b = new Notification.Builder(mContext, OPP_NOTIFICATION_CHANNEL); in updateActiveNotification()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.java52 private final Context mContext; field in ShortcutController
58 mContext = context; in ShortcutController()
59 mComponentName = new ComponentName(mContext, DeskClock.class); in ShortcutController()
60 mShortcutManager = mContext.getSystemService(ShortcutManager.class); in ShortcutController()
61 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in ShortcutController()
62 Controller.getController().addEventTracker(new ShortcutEventTracker(mContext)); in ShortcutController()
85 .setClass(mContext, HandleApiCalls.class) in createNewAlarmShortcut()
90 return new ShortcutInfo.Builder(mContext, setAlarmShortcut) in createNewAlarmShortcut()
91 .setIcon(Icon.createWithResource(mContext, R.drawable.shortcut_new_alarm)) in createNewAlarmShortcut()
93 .setShortLabel(mContext.getString(R.string.shortcut_new_alarm_short)) in createNewAlarmShortcut()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogListItemViewHolder.java123 private final Context mContext; field in CallLogListItemViewHolder
253 mContext = context; in CallLogListItemViewHolder()
261 mCachedNumberLookupService = PhoneNumberCache.get(mContext).getCachedNumberLookupService(); in CallLogListItemViewHolder()
281 if (mContext instanceof CallLogActivity) { in CallLogListItemViewHolder()
283 Logger.get(mContext) in CallLogListItemViewHolder()
288 Logger.get(mContext) in CallLogListItemViewHolder()
293 Logger.get(mContext) in CallLogListItemViewHolder()
305 && ConfigProviderBindings.get(mContext) in CallLogListItemViewHolder()
389 ClipboardUtils.copyText(mContext, null, number, true); in onMenuItemClick()
393 mContext, null, phoneCallDetailsViews.voicemailTranscriptionView.getText(), true); in onMenuItemClick()
[all …]
DBlockReportSpamListener.java37 private final Context mContext; field in BlockReportSpamListener
47 mContext = context; in BlockReportSpamListener()
62 Spam.get(mContext).isDialogReportSpamCheckedByDefault(), in onBlockReportSpam()
67 if (isSpamChecked && Spam.get(mContext).isSpamEnabled()) { in onBlockReportSpam()
68 Logger.get(mContext) in onBlockReportSpam()
72 Spam.get(mContext) in onBlockReportSpam()
84 Logger.get(mContext) in onBlockReportSpam()
106 Spam.get(mContext).isSpamEnabled(), in onBlock()
111 if (Spam.get(mContext).isSpamEnabled()) { in onBlock()
112 Logger.get(mContext) in onBlock()
[all …]
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java80 private final Context mContext; field in EmailNotificationController
90 mContext = context.getApplicationContext(); in EmailNotificationController()
138 mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); in createBaseAccountNotificationBuilder()
142 final NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext) in createBaseAccountNotificationBuilder()
153 Account account = Account.restoreAccountWithId(mContext, accountId); in createBaseAccountNotificationBuilder()
192 ContentResolver resolver = mContext.getContentResolver(); in watchForMessages()
199 mAccountObserver = new AccountContentObserver(sNotificationHandler, mContext); in watchForMessages()
264 ContentResolver resolver = mContext.getContentResolver(); in registerMessageNotification()
282 sNotificationHandler, mContext, accountId); in registerMessageNotification()
299 ContentResolver resolver = mContext.getContentResolver(); in unregisterMessageNotification()
[all …]
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java97 private Context mContext; field in NotificationMgr
118 mContext = app; in NotificationMgr()
124 mSubscriptionManager = SubscriptionManager.from(mContext); in NotificationMgr()
125 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr()
211 PreferenceManager.getDefaultSharedPreferences(mContext).edit() in setShouldCheckVisualVoicemailConfigurationForMwi()
222 .getDefaultSharedPreferences(mContext) in shouldCheckVisualVoicemailConfigurationForMwi()
278 String notificationTitle = mContext.getString(R.string.notification_voicemail_title); in updateMwi()
297 … String titleFormat = mContext.getString(R.string.notification_voicemail_title_count); in updateMwi()
309 notificationText = mContext.getString( in updateMwi()
314 notificationText = mContext.getString( in updateMwi()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DConnectedDeviceDashboardFragmentTest.java57 Context mContext; field in ConnectedDeviceDashboardFragmentTest
85 FakeFeatureFactory.setupForTest(mContext); in setUp()
86 mFeatureFactory = (FakeFeatureFactory) FakeFeatureFactory.getFactory(mContext); in setUp()
90 when(mContext.getPackageManager()).thenReturn(mManager); in setUp()
92 mSmsMirroringPreferenceController = new TestSmsMirroringPreferenceController(mContext); in setUp()
93 when(mFeatureProvider.getController(mContext)).thenReturn( in setUp()
105 mFragment.SEARCH_INDEX_DATA_PROVIDER.getXmlResourcesToIndex(mContext, in testSearchIndexProvider_shouldIndexResource()
116 mContext); in testSearchIndexProvider_NoNfc_KeyAdded()
127 mContext); in testSearchIndexProvider_NFC_KeyNotAdded()
136 when(mFeatureProvider.shouldShowSmsMirroring(mContext)).thenReturn(false); in testSearchIndexProvider_NoSmsMirroring_KeyAdded()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java47 private Context mContext; field in NotificationControllerTest
59 mContext = application.getApplicationContext(); in setUp()
64 mController.onReceive(mContext, in testShouldShowNotificationFirstTime()
68 mController.onReceive(mContext, in testShouldShowNotificationFirstTime()
77 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
80 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
87 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
96 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
99 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
106 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationPreferenceControllerTest.java70 private Context mContext; field in LocationPreferenceControllerTest
76 mController = new LocationPreferenceController(mContext, mLifecycle); in setUp()
102 Secure.putInt(mContext.getContentResolver(), in getLocationSummary_locationOff_shouldSetSummaryOff()
105 assertThat(mController.getLocationSummary(mContext)).isEqualTo( in getLocationSummary_locationOff_shouldSetSummaryOff()
106 mContext.getString(R.string.location_off_summary)); in getLocationSummary_locationOff_shouldSetSummaryOff()
111 Secure.putInt(mContext.getContentResolver(), in getLocationSummary_sensorsOnly_shouldSetSummarySensorsOnly()
114 assertThat(mController.getLocationSummary(mContext)).isEqualTo( in getLocationSummary_sensorsOnly_shouldSetSummarySensorsOnly()
115 mContext.getString(R.string.location_on_summary, in getLocationSummary_sensorsOnly_shouldSetSummarySensorsOnly()
116 mContext.getString(R.string.location_mode_sensors_only_title))); in getLocationSummary_sensorsOnly_shouldSetSummarySensorsOnly()
121 Secure.putInt(mContext.getContentResolver(), in getLocationSummary_highAccuracy_shouldSetSummarHighAccuracy()
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DNotificationImportExportListener.java55 private final Activity mContext; field in NotificationImportExportListener
59 mContext = activity; in NotificationImportExportListener()
68 Toast.makeText(mContext, text, Toast.LENGTH_LONG).show(); in handleMessage()
79 message = mContext.getString(R.string.vcard_import_will_start_message, displayName); in onImportProcessed()
81 displayName = mContext.getString(R.string.vcard_unknown_filename); in onImportProcessed()
82 message = mContext.getString( in onImportProcessed()
94 ContactsNotificationChannelsUtil.createDefaultChannel(mContext); in onImportProcessed()
95 return constructProgressNotification(mContext, VCardService.TYPE_IMPORT, message, message, in onImportProcessed()
108 mContext.getString(R.string.progress_notifier_message, in onImportParsed()
112 final String description = mContext.getString(R.string.importing_vcard_description, in onImportParsed()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/backup/
DBackupSettingsHelperTest.java70 private Context mContext; field in BackupSettingsHelperTest
80 mContext = spy(RuntimeEnvironment.application.getApplicationContext()); in setUp()
82 mBackupSettingsHelper = new BackupSettingsHelper(mContext); in setUp()
180 when(mContext.getPackageManager()).thenReturn(packageManager); in testIsIntentProvidedByTransport_WithInvalidIntent()
195 when(mContext.getPackageManager()).thenReturn(packageManager); in testIsIntentProvidedByTransport_WithIntent()
250 when(mContext.getPackageManager()).thenReturn(packageManager); in testGetIntentForBackupSettings_WithIntentFromTransport()
289 assertThat(backupLabel).isEqualTo(mContext.getString(DEFAULT_LABEL_RESOURCE)); in testGetLabelForBackupSettings_WithEmptyLabelFromTransport()
298 assertThat(backupLabel).isEqualTo(mContext.getString(DEFAULT_LABEL_RESOURCE)); in testGetLabelForBackupSettings_WithoutLabelFromTransport()
318 assertThat(backupSummary).isEqualTo(mContext.getString(DEFAULT_SUMMARY_RESOURCE)); in testGetSummaryForBackupSettings_WithoutSummaryFromTransport()
325 when(mContext.getApplicationContext()).thenReturn(mContext); in testIsBackupProvidedByManufacturer_WithIntent()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java246 Context mContext; field in NfcService
361 mContext = nfcApplication; in NfcService()
369 mScreenStateHelper = new ScreenStateHelper(mContext); in NfcService()
370 mContentResolver = mContext.getContentResolver(); in NfcService()
371 mDeviceHost = new NativeNfcManager(mContext, this); in NfcService()
378 isNfcProvisioningEnabled = mContext.getResources().getBoolean( in NfcService()
384 mIsLiveCaseEnabled = mContext.getResources().getBoolean(R.bool.enable_live_cases); in NfcService()
392 liveCaseTechList = mContext.getResources().getStringArray(R.array.live_case_tag_types); in NfcService()
415 mNfcDispatcher = new NfcDispatcher(mContext, mHandoverDataParser, mInProvisionMode, in NfcService()
417 mP2pLinkManager = new P2pLinkManager(mContext, mHandoverDataParser, in NfcService()
[all …]
/packages/apps/TV/src/com/android/tv/data/epg/
DEpgFetcher.java106 private final Context mContext; field in EpgFetcher
136 mContext = context.getApplicationContext(); in EpgFetcher()
137 ApplicationSingletons applicationSingletons = TvApplication.getSingletons(mContext); in EpgFetcher()
140 mEpgReader = createEpgReader(mContext, LocationUtils.getCurrentCountry(mContext)); in EpgFetcher()
161 (JobScheduler) mContext.getSystemService(Context.JOB_SCHEDULER_SERVICE);
170 new ComponentName(mContext, EpgFetchService.class))
192 return EpgFetchHelper.getLastEpgUpdatedTimestamp(mContext);
197 if (System.currentTimeMillis() - EpgFetchHelper.getLastEpgUpdatedTimestamp(mContext)
235 if (mScanStarted || !Features.ENABLE_CLOUD_EPG_REGION.isEnabled(mContext)) { in onChannelScanStarted()
287 if (!Features.ENABLE_CLOUD_EPG_REGION.isEnabled(mContext)) { in checkFetchPrerequisite()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java50 private final Context mContext; field in LauncherAppState
82 return mContext;
92 mContext = context;
95 TestingUtils.startTrackingMemory(mContext);
98 mInvariantDeviceProfile = new InvariantDeviceProfile(mContext);
99 mIconCache = new IconCache(mContext, mInvariantDeviceProfile);
100 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache);
101 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext));
103 LauncherAppsCompat.getInstance(mContext).addOnAppsChangedCallback(mModel);
120 mContext.registerReceiver(mModel, filter);
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DXmlParserUtilTest.java49 private Context mContext; field in XmlParserUtilTest
53 mContext = ShadowApplication.getInstance().getApplicationContext(); in setUp()
61 String title = XmlParserUtils.getDataTitle(mContext, attrs); in testDataTitleValid_ReturnsPreferenceTitle()
62 String expTitle = mContext.getString(R.string.screen_timeout); in testDataTitleValid_ReturnsPreferenceTitle()
70 String keywords = XmlParserUtils.getDataKeywords(mContext, attrs); in testDataKeywordsValid_ReturnsPreferenceKeywords()
71 String expKeywords = mContext.getString(R.string.keywords_display); in testDataKeywordsValid_ReturnsPreferenceKeywords()
80 String key = XmlParserUtils.getDataKey(mContext, attrs); in testDataKeyValid_ReturnsPreferenceKey()
90 String summary = XmlParserUtils.getDataSummary(mContext, attrs); in testDataSummaryValid_ReturnsPreferenceSummary()
91 String expSummary = mContext.getString(R.string.summary_placeholder); in testDataSummaryValid_ReturnsPreferenceSummary()
100 String summary = XmlParserUtils.getDataSummaryOn(mContext, attrs); in testDataSummaryOnValid_ReturnsPreferenceSummaryOn()
[all …]
DInstalledAppResultLoaderTest.java72 private Context mContext; field in InstalledAppResultLoaderTest
86 final FakeFeatureFactory factory = FakeFeatureFactory.setupForTest(mContext); in setUp()
92 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); in setUp()
93 when(mContext.getString(R.string.applications_settings)) in setUp()
115 mLoader = new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_noMatchingQuery_shouldReturnEmptyResult()
125 mLoader = spy(new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_matchingQuery_shouldReturnNonSystemApps()
127 when(mLoader.getContext()).thenReturn(mContext); in query_matchingQuery_shouldReturnNonSystemApps()
128 when(mSiteMapManager.buildBreadCrumb(eq(mContext), anyString(), anyString())) in query_matchingQuery_shouldReturnNonSystemApps()
133 .buildBreadCrumb(eq(mContext), anyString(), anyString()); in query_matchingQuery_shouldReturnNonSystemApps()
144 mLoader = spy(new InstalledAppResultLoader(mContext, mPackageManagerWrapper, query, in query_matchingQuery_shouldReturnSystemAppUpdates()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java77 private Context mContext; field in BluetoothEnablerTest
86 mContext = spy(RuntimeEnvironment.application); in setUp()
89 mSwitch = new Switch(mContext); in setUp()
90 mMasterSwitchPreference = new MasterSwitchPreference(mContext); in setUp()
93 mContext, in setUp()
110 verify(mMetricsFeatureProvider).action(mContext, 123, false); in onSwitchToggled_shouldLogActionWithSuppliedEvent()
133 mContext, UserManager.DISALLOW_BLUETOOTH)).thenReturn(FAKE_ENFORCED_ADMIN); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
135 mContext, UserManager.DISALLOW_CONFIG_BLUETOOTH)).thenReturn(null); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
152 mContext, UserManager.DISALLOW_BLUETOOTH)).thenReturn(null); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
154 mContext, UserManager.DISALLOW_CONFIG_BLUETOOTH)).thenReturn(FAKE_ENFORCED_ADMIN); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DOmtpVvmSyncService.java66 private final Context mContext; field in OmtpVvmSyncService
71 mContext = context; in OmtpVvmSyncService()
72 mQueryHelper = new VoicemailsQueryHelper(mContext); in OmtpVvmSyncService()
92 if (!VisualVoicemailSettingsUtil.isEnabled(mContext, phoneAccount)) { in setupAndSendRequest()
96 if (!VvmAccountManager.isAccountActivated(mContext, phoneAccount)) { in setupAndSendRequest()
97 ActivationTask.start(mContext, phoneAccount, null); in setupAndSendRequest()
101 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(mContext, phoneAccount); in setupAndSendRequest()
102 LoggerUtils.logImpressionOnMainThread(mContext, DialerImpression.Type.VVM_SYNC_STARTED); in setupAndSendRequest()
107 VoicemailStatus.edit(mContext, phoneAccount), OmtpEvents.DATA_IMAP_OPERATION_STARTED); in setupAndSendRequest()
128 try (ImapHelper imapHelper = new ImapHelper(mContext, phoneAccount, network, status)) { in doSync()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
DSuggestionsChecks.java43 private final Context mContext; field in SuggestionsChecks
48 mContext = context.getApplicationContext(); in SuggestionsChecks()
49 mWallpaperManager = new WallpaperManagerWrapper(mContext); in SuggestionsChecks()
60 return !Utils.hasFingerprintHardware(mContext) || !isFingerprintEnabled() in isSuggestionComplete()
65 final FingerprintManager manager = Utils.getFingerprintManagerOrNull(mContext); in isSuggestionComplete()
67 || !Utils.hasFingerprintHardware(mContext)) { in isSuggestionComplete()
74 FeatureFactory.getFactory(mContext).getSuggestionFeatureProvider(mContext); in isSuggestionComplete()
76 return provider.isSuggestionCompleted(mContext, component); in isSuggestionComplete()
80 KeyguardManager km = mContext.getSystemService(KeyguardManager.class); in isDeviceSecured()
85 FingerprintManager manager = Utils.getFingerprintManagerOrNull(mContext); in isNotSingleFingerprintEnrolled()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomSystem.java108 private final Context mContext; field in TelecomSystem
194 mContext = context.getApplicationContext(); in TelecomSystem()
195 LogUtils.initLogging(mContext); in TelecomSystem()
199 DefaultDialerCache defaultDialerCache = new DefaultDialerCache(mContext, in TelecomSystem()
203 mPhoneAccountRegistrar = new PhoneAccountRegistrar(mContext, defaultDialerCache, in TelecomSystem()
207 PackageManager pm = mContext.getPackageManager(); in TelecomSystem()
226 BluetoothDeviceManager bluetoothDeviceManager = new BluetoothDeviceManager(mContext, in TelecomSystem()
228 BluetoothRouteManager bluetoothRouteManager = new BluetoothRouteManager(mContext, mLock, in TelecomSystem()
230 WiredHeadsetManager wiredHeadsetManager = new WiredHeadsetManager(mContext); in TelecomSystem()
231 SystemStateProvider systemStateProvider = new SystemStateProvider(mContext); in TelecomSystem()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DBuildNumberPreferenceController.java106 mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId()); in onResume()
108 mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId()); in onResume()
109 mDevHitCountdown = mContext.getSharedPreferences(DevelopmentSettings.PREF_FILE, in onResume()
126 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF); in handlePreferenceTreeClick()
131 if (!Utils.isDeviceProvisioned(mContext)) { in handlePreferenceTreeClick()
133 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF); in handlePreferenceTreeClick()
140 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, in handlePreferenceTreeClick()
144 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF); in handlePreferenceTreeClick()
157 mContext.getString(R.string.unlock_set_unlock_launch_picker_title)); in handlePreferenceTreeClick()
162 mContext, MetricsEvent.ACTION_SETTINGS_BUILD_NUMBER_PREF, in handlePreferenceTreeClick()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterSwitchPreferenceTest.java46 private Context mContext; field in MasterSwitchPreferenceTest
50 mContext = RuntimeEnvironment.application; in setUp()
55 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext); in createNewPreference_shouldSetLayout()
63 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext); in setChecked_shouldUpdateButtonCheckedState()
65 LayoutInflater.from(mContext).inflate( in setChecked_shouldUpdateButtonCheckedState()
79 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext); in setSwitchEnabled_shouldUpdateButtonEnabledState()
81 LayoutInflater.from(mContext).inflate( in setSwitchEnabled_shouldUpdateButtonEnabledState()
95 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
97 LayoutInflater.from(mContext).inflate( in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
108 final MasterSwitchPreference preference = new MasterSwitchPreference(mContext); in clickWidgetView_shouldToggleButton()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java114 private final Context mContext; field in StatusBarNotifier
130 mContext = context; in StatusBarNotifier()
131 mContactsPreferences = ContactsPreferencesFactory.newContactsPreferences(mContext); in StatusBarNotifier()
301 Bitmap largeIcon = getLargeIconToDisplay(mContext, contactInfo, call); in buildAndSendNotification()
312 if (ConfigProviderBindings.get(mContext) in buildAndSendNotification()
347 Notification.Builder publicBuilder = new Notification.Builder(mContext); in buildAndSendNotification()
350 .setColor(mContext.getResources().getColor(R.color.dialer_theme_color, mContext.getTheme())) in buildAndSendNotification()
409 mContext.getResources().getColor(R.color.dialer_theme_color, mContext.getTheme())); in buildAndSendNotification()
431 if (mDialerRingtoneManager.shouldVibrate(mContext.getContentResolver())) { in buildAndSendNotification()
448 ActivityManager activityManager = mContext.getSystemService(ActivityManager.class); in buildAndSendNotification()
[all …]

12345678910>>...66