/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | MissedCallNotifier.java | 59 private Context mContext; field in MissedCallNotifier 70 mContext = context; in MissedCallNotifier() 78 CallLogNotificationsHelper.getInstance(mContext).getNewMissedCalls(); in updateMissedCallNotification() 100 Notification.Builder builder = new Notification.Builder(mContext); in updateMissedCallNotification() 106 ContactInfo contactInfo = CallLogNotificationsHelper.getInstance(mContext) in updateMissedCallNotification() 117 ContactPhotoLoader loader = new ContactPhotoLoader(mContext, contactInfo); in updateMissedCallNotification() 125 mContext.getString(R.string.notification_missedCallsMsg, count); in updateMissedCallNotification() 130 Notification.Builder publicBuilder = new Notification.Builder(mContext); in updateMissedCallNotification() 132 .setColor(mContext.getResources().getColor(R.color.dialer_theme_color)) in updateMissedCallNotification() 134 .setContentTitle(mContext.getText(R.string.userCallActivityLabel)) in updateMissedCallNotification() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 69 private final Context mContext; field in TimerModel 122 mContext = context; in TimerModel() 127 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in TimerModel() 130 final SharedPreferences prefs = Utils.getDefaultSharedPreferences(mContext); in TimerModel() 135 mContext.registerReceiver(mLocaleChangedReceiver, localeBroadcastFilter); in TimerModel() 201 timer = TimerDAO.addTimer(mContext, timer); in addTimer() 370 mTimerRingtoneTitle = mContext.getString(R.string.silent_timer_ringtone_title); in getTimerRingtoneTitle() 377 mTimerRingtoneTitle = mContext.getString(R.string.default_timer_ringtone_title); in getTimerRingtoneTitle() 379 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, uri); in getTimerRingtoneTitle() 380 mTimerRingtoneTitle = ringtone.getTitle(mContext); in getTimerRingtoneTitle() [all …]
|
D | SettingsModel.java | 34 private final Context mContext; field in SettingsModel 40 mContext = context; in SettingsModel() 43 SettingsDAO.setDefaultHomeTimeZone(mContext, TimeZone.getDefault()); in SettingsModel() 47 return SettingsDAO.getCitySort(mContext); in getCitySort() 51 SettingsDAO.toggleCitySort(mContext); in toggleCitySort() 55 return SettingsDAO.getHomeTimeZone(mContext); in getHomeTimeZone() 59 return SettingsDAO.getClockStyle(mContext); in getClockStyle() 63 return SettingsDAO.getScreensaverClockStyle(mContext); in getScreensaverClockStyle() 67 if (!SettingsDAO.getAutoShowHomeClock(mContext)) { in getShowHomeClock() 73 final TimeZone homeTimeZone = SettingsDAO.getHomeTimeZone(mContext); in getShowHomeClock() [all …]
|
D | StopwatchModel.java | 50 private final Context mContext; field in StopwatchModel 68 mContext = context; in StopwatchModel() 74 mContext.registerReceiver(mLocaleChangedReceiver, localeBroadcastFilter); in StopwatchModel() 82 mStopwatch = StopwatchDAO.getStopwatch(mContext); in getStopwatch() 93 StopwatchDAO.setStopwatch(mContext, stopwatch); in setStopwatch() 124 StopwatchDAO.addLap(mContext, lapNumber, totalTime); in addLap() 144 StopwatchDAO.clearLaps(mContext); in clearLaps() 206 final Intent showApp = new Intent(mContext, HandleDeskClockApiCalls.class) in updateNotification() 211 final PendingIntent pendingShowApp = PendingIntent.getActivity(mContext, 0, showApp, in updateNotification() 216 final String pname = mContext.getPackageName(); in updateNotification() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotification.java | 92 private Context mContext; field in BluetoothOppNotification 136 mContext = ctx; in BluetoothOppNotification() 137 mNotificationMgr = (NotificationManager)mContext in BluetoothOppNotification() 215 Cursor cursor = mContext.getContentResolver().query(BluetoothShare.CONTENT_URI, null, in updateActiveNotification() 256 fileName = mContext.getString(R.string.unknown_file); in updateActiveNotification() 271 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification() 273 item.description = mContext in updateActiveNotification() 313 mContext.sendBroadcast(intent, Constants.HANDOVER_STATUS_PERMISSION); in updateActiveNotification() 318 Notification.Builder b = new Notification.Builder(mContext); in updateActiveNotification() 319 b.setColor(mContext.getResources().getColor( in updateActiveNotification() [all …]
|
/packages/apps/TV/src/com/android/tv/ |
D | TvOptionsManager.java | 50 private final Context mContext; field in TvOptionsManager 64 mContext = context; in TvOptionsManager() 71 return mContext.getString(R.string.closed_caption_option_item_off); in getOptionString() 75 return ((MainActivity) mContext).getTvViewUiManager() in getOptionString() 77 ? DisplayMode.getLabel(mDisplayMode, mContext) in getOptionString() 78 : DisplayMode.getLabel(DisplayMode.MODE_NORMAL, mContext); in getOptionString() 80 return mContext.getString( in getOptionString() 87 return mContext.getString(mPipSwap ? R.string.pip_options_item_swap_on in getOptionString() 91 return mContext.getString(R.string.pip_options_item_sound_main); in getOptionString() 93 return mContext.getString(R.string.pip_options_item_sound_pip_window); in getOptionString() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | NotificationImportExportListener.java | 52 private final Activity mContext; field in NotificationImportExportListener 56 mContext = activity; in NotificationImportExportListener() 65 Toast.makeText(mContext, text, Toast.LENGTH_LONG).show(); in handleMessage() 76 message = mContext.getString(R.string.vcard_import_will_start_message, displayName); in onImportProcessed() 78 displayName = mContext.getString(R.string.vcard_unknown_filename); in onImportProcessed() 79 message = mContext.getString( in onImportProcessed() 91 final Notification notification = constructProgressNotification(mContext, in onImportProcessed() 105 mContext.getString(R.string.progress_notifier_message, in onImportParsed() 109 final String description = mContext.getString(R.string.importing_vcard_description, in onImportParsed() 113 mContext.getApplicationContext(), VCardService.TYPE_IMPORT, description, tickerText, in onImportParsed() [all …]
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | DynamicIndexableContentMonitor.java | 88 private Context mContext; field in DynamicIndexableContentMonitor 105 mContext = activity; in register() 107 if (!mContext.getSystemService(UserManager.class).isUserUnlocked()) { in register() 115 boolean hasFeaturePrinting = mContext.getPackageManager().hasSystemFeature( in register() 117 mHasFeatureIme = mContext.getPackageManager().hasSystemFeature( in register() 122 mContext.getSystemService(Context.ACCESSIBILITY_SERVICE); in register() 142 mContext.getSystemService(Context.INPUT_METHOD_SERVICE); in register() 153 mContext.getContentResolver().registerContentObserver( in register() 172 InputManager inputManager = (InputManager) mContext.getSystemService( in unregister() 177 mContext.getContentResolver().unregisterContentObserver( in unregister() [all …]
|
/packages/apps/Email/tests/src/com/android/email/ |
D | ControllerProviderOpsTests.java | 43 private Context mContext; field in ControllerProviderOpsTests 53 mContext = getContext(); in setUp() 68 Mailbox.getSystemMailboxName(mContext, -1); in testGetMailboxServerName() 74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName() 75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName() 76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH)); in testGetMailboxServerName() 77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT)); in testGetMailboxServerName() 78 assertEquals("Junk", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_JUNK)); in testGetMailboxServerName() 83 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX)); in testGetMailboxServerName() 84 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX)); in testGetMailboxServerName() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 80 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/ |
D | NotificationMgr.java | 90 private Context mContext; field in NotificationMgr 112 mContext = app; in NotificationMgr() 119 mSubscriptionManager = SubscriptionManager.from(mContext); in NotificationMgr() 120 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr() 123 final String notificationComponent = mContext.getString( in NotificationMgr() 210 VoicemailStatusQueryHelper queryHelper = new VoicemailStatusQueryHelper(mContext); in updateMwi() 245 String notificationTitle = mContext.getString(R.string.notification_voicemail_title); in updateMwi() 264 … String titleFormat = mContext.getString(R.string.notification_voicemail_title_count); in updateMwi() 276 notificationText = mContext.getString( in updateMwi() 281 notificationText = mContext.getString( in updateMwi() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Config.java | 77 private final Context mContext; field in Config 86 mContext = context; in Config() 90 return mContext; in getContext() 103 String[] items = mContext.getResources().getStringArray(res); in loadResourceStringSet() 122 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard); in getNumSuggestionsAboveKeyboard() 129 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions); in getMaxPromotedSuggestions() 133 return mContext.getResources().getInteger(R.integer.max_promoted_results); in getMaxPromotedResults() 147 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source); in getMaxShortcutsPerWebSource() 154 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source); in getMaxShortcutsPerNonWebSource() 268 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions); in showSuggestionsForZeroQuery() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomSystem.java | 97 private final Context mContext; field in TelecomSystem 158 mContext = context.getApplicationContext(); in TelecomSystem() 159 Log.setContext(mContext); in TelecomSystem() 163 mPhoneAccountRegistrar = new PhoneAccountRegistrar(mContext); in TelecomSystem() 172 BluetoothManager bluetoothManager = new BluetoothManager(mContext, in TelecomSystem() 174 WiredHeadsetManager wiredHeadsetManager = new WiredHeadsetManager(mContext); in TelecomSystem() 175 SystemStateProvider systemStateProvider = new SystemStateProvider(mContext); in TelecomSystem() 178 .makeMissedCallNotifierImpl(mContext, mPhoneAccountRegistrar); in TelecomSystem() 184 mContext, in TelecomSystem() 204 mContext.registerReceiver(mUserSwitchedReceiver, USER_SWITCHED_FILTER); in TelecomSystem() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | SystemStateProviderTest.java | 45 @Mock Context mContext; field in SystemStateProviderTest 64 SystemStateProvider systemStateProvider = new SystemStateProvider(mContext); in testListeners() 74 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_True() 76 assertTrue(new SystemStateProvider(mContext).isCarMode()); in testQuerySystemForCarMode_True() 81 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_False() 83 assertFalse(new SystemStateProvider(mContext).isCarMode()); in testQuerySystemForCarMode_False() 89 new SystemStateProvider(mContext); in testReceiverAndIntentFilter() 90 verify(mContext).registerReceiver(any(BroadcastReceiver.class), intentFilter.capture()); in testReceiverAndIntentFilter() 101 new SystemStateProvider(mContext).addListener(mSystemStateListener); in testOnEnterExitCarMode() 103 verify(mContext).registerReceiver(receiver.capture(), any(IntentFilter.class)); in testOnEnterExitCarMode() [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sms/ |
D | OmtpMessageReceiver.java | 47 private Context mContext; field in OmtpMessageReceiver 58 mContext = context; in onReceive() 67 if (!VisualVoicemailSettingsUtil.isVisualVoicemailEnabled(mContext, mPhoneAccount)) { in onReceive() 126 .setSourcePackage(mContext.getPackageName()); in processSync() 129 VoicemailsQueryHelper queryHelper = new VoicemailsQueryHelper(mContext); in processSync() 131 Uri uri = VoicemailContract.Voicemails.insert(mContext, voicemail); in processSync() 133 serviceIntent = OmtpVvmSyncService.getSyncIntent(mContext, in processSync() 140 mContext, OmtpVvmSyncService.SYNC_DOWNLOAD_ONLY, mPhoneAccount, in processSync() 152 mContext.startService(serviceIntent); in processSync() 158 OmtpVvmSourceManager.getInstance(mContext); in updateSource() [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
D | VvmPhoneStateListener.java | 39 private Context mContext; field in VvmPhoneStateListener 44 mContext = context; in VvmPhoneStateListener() 61 new VoicemailStatusQueryHelper(mContext); in onServiceStateChanged() 65 VoicemailContract.Status.setStatus(mContext, mPhoneAccount, in onServiceStateChanged() 74 if (OmtpVvmSourceManager.getInstance(mContext).isVvmSourceRegistered(mPhoneAccount)) { in onServiceStateChanged() 81 mContext, OmtpVvmSyncService.SYNC_FULL_SYNC, mPhoneAccount, in onServiceStateChanged() 83 mContext.startService(serviceIntent); in onServiceStateChanged() 92 mContext, PhoneUtils.getSubIdForPhoneAccountHandle(mPhoneAccount)); in onServiceStateChanged() 97 mContext.stopService(OmtpVvmSyncService.getSyncIntent( in onServiceStateChanged() 98 mContext, OmtpVvmSyncService.SYNC_FULL_SYNC, mPhoneAccount, in onServiceStateChanged() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/uiflows/ |
D | EncryptionController.java | 52 private final Context mContext; field in EncryptionController 87 mContext = checkNotNull(context, "Context must not be null").getApplicationContext(); in EncryptionController() 111 if (!mUtils.isUserSetupCompleted(mContext)) { in setEncryptionReminder() 165 if (mUtils.isUserSetupCompleted(mContext)) { in resumeProvisioning() 168 mContext.startActivity(resumeIntent); in resumeProvisioning() 171 mContext.startActivity(resumeIntent); in resumeProvisioning() 185 private final Context mContext; field in EncryptionController.ResumeNotificationHelper 188 mContext = context; in ResumeNotificationHelper() 194 mContext.getSystemService(Context.NOTIFICATION_SERVICE); in showResumeNotification() 196 mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); in showResumeNotification() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 63 private final Context mContext; field in UserCallIntentProcessor 67 mContext = context; in UserCallIntentProcessor() 106 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) { in processOutgoingCallIntent() 109 if (!TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) { in processOutgoingCallIntent() 110 final UserManager userManager = (UserManager) mContext.getSystemService( in processOutgoingCallIntent() 114 showErrorDialogForRestrictedOutgoingCall(mContext, in processOutgoingCallIntent() 121 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, in processOutgoingCallIntent() 128 if (!canCallNonEmergency && !TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) { in processOutgoingCallIntent() 129 showErrorDialogForRestrictedOutgoingCall(mContext, in processOutgoingCallIntent() 155 final String defaultDialer = DefaultDialerManager.getDefaultDialerApplication(mContext, in isDefaultOrSystemDialer() [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 87 protected Context mContext; field in EmailServiceStub 90 mContext = context; in init() 100 final Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mailboxId); in requestSync() 102 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); in requestSync() 105 EmailServiceUtils.getServiceInfoForAccount(mContext, account.mId); in requestSync() 129 Attachment.restoreAttachmentWithId(mContext, attachmentId); in loadAttachment() 138 EmailContent.Message.restoreMessageWithId(mContext, attachment.mMessageKey); in loadAttachment() 146 if (Utility.attachmentExists(mContext, attachment) in loadAttachment() 157 final Account account = Account.restoreAccountWithId(mContext, message.mAccountKey); in loadAttachment() 158 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, message.mMailboxKey); in loadAttachment() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | ContactInfoHelperTest.java | 44 private ContactsMockContext mContext; field in ContactInfoHelperTest 54 mContext = new ContactsMockContext(getContext()); in setUp() 58 mContactInfoHelper = new ContactInfoHelper(mContext, TEST_COUNTRY_ISO); in setUp() 71 mContext.verify(); in testLookupContactFromUri_NoResults() 85 mContext.verify(); in testLookupContactFromUri_NoDisplayNameAlternative() 99 mContext.verify(); in testLookupContactFromUri_HasDisplayNameAlternative() 103 Assert.assertNull(mContactInfoHelper.lookUpDisplayNameAlternative(mContext, null, in testLookupDisplayNameAlternative_NullLookup() 110 Assert.assertNull(mContactInfoHelper.lookUpDisplayNameAlternative(mContext, in testLookupDisplayNameAlternative_NoResults() 112 mContext.verify(); in testLookupDisplayNameAlternative_NoResults() 119 mContactInfoHelper.lookUpDisplayNameAlternative(mContext, TEST_LOOKUP_KEY in testLookupDisplayNameAlternative_HasDisplayNameAlternative() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WpsDialog.java | 66 private Context mContext; field in WpsDialog 81 mContext = context; in WpsDialog() 89 mContext.getString(R.string.wifi_wps_onstart_pin), pin)); in WpsDialog() 91 updateDialog(DialogState.WPS_START, mContext.getString( in WpsDialog() 98 mContext.getString(R.string.wifi_wps_complete)); in WpsDialog() 105 msg = mContext.getString(R.string.wifi_wps_failed_overlap); in WpsDialog() 108 msg = mContext.getString(R.string.wifi_wps_failed_wep); in WpsDialog() 111 msg = mContext.getString(R.string.wifi_wps_failed_tkip); in WpsDialog() 114 msg = mContext.getString(R.string.wifi_wps_in_progress); in WpsDialog() 117 msg = mContext.getString(R.string.wifi_wps_failed_generic); in WpsDialog() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/ |
D | FilteredNumbersUtilTest.java | 54 private ContactsMockContext mContext; field in FilteredNumbersUtilTest 59 mContext = new ContactsMockContext(getContext(), FilteredNumberContract.AUTHORITY); in setUp() 62 PreferenceManager.getDefaultSharedPreferences(mContext) in setUp() 70 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_NotBlocked() 76 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_BlockedBeforeVoicemail() 82 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_BlockedAfterVoicemail() 88 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_BlockedSameTimeAsVoicemail() 94 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_BlockedInSameMinuteAsVoicemail() 100 PreferenceManager.getDefaultSharedPreferences(mContext) in testShouldBlockVoicemail_AfterEmergencyCall() 105 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER, in testShouldBlockVoicemail_AfterEmergencyCall() [all …]
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | StatusBarNotifier.java | 81 private final Context mContext; field in StatusBarNotifier 98 mContext = context; in StatusBarNotifier() 99 mContactsPreferences = ContactsPreferencesFactory.newContactsPreferences(mContext); in StatusBarNotifier() 102 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in StatusBarNotifier() 271 Notification.Builder publicBuilder = new Notification.Builder(mContext); in buildAndSendNotification() 273 .setColor(mContext.getResources().getColor(R.color.dialer_theme_color)) in buildAndSendNotification() 302 builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color)); in buildAndSendNotification() 328 if (mDialerRingtoneManager.shouldVibrate(mContext.getContentResolver())) { in buildAndSendNotification() 357 if (call.isVideoCall(mContext)) { in createIncomingCallNotification() 429 return mContext.getResources().getString(R.string.card_title_conf_call); in getContentTitle() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/ |
D | PhoneNumberInteractionTest.java | 76 private ContactsMockContext mContext; field in PhoneNumberInteractionTest 82 mContext = new ContactsMockContext(getInstrumentation().getTargetContext()); in setUp() 83 mContactsProvider = mContext.getContactsProvider(); in setUp() 99 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenOnlyOneNumberAvailable() 104 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenOnlyOneNumberAvailable() 118 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenDataIdIsProvided() 123 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenDataIdIsProvided() 139 mContext, ContactDisplayUtils.INTERACTION_SMS, null); in testSendSmsWhenThereIsPrimaryNumber() 144 Intent intent = mContext.getIntentForStartActivity(); in testSendSmsWhenThereIsPrimaryNumber() 158 assertTrue(phoneItem1.shouldCollapseWith(phoneItem2, mContext)); in testShouldCollapseWith() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | CardEmulationManager.java | 75 final Context mContext; field in CardEmulationManager 80 mContext = context; in CardEmulationManager() 234 Intent intent = new Intent(mContext, DefaultRemovedActivity.class); in verifyDefaults() 236 mContext.startActivityAsUser(intent, UserHandle.CURRENT); in verifyDefaults() 276 mContext.getContentResolver(), Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT, in getDefaultServiceForCategory() 300 Settings.Secure.putStringForUser(mContext.getContentResolver(), in setDefaultServiceForCategoryChecked() 354 NfcPermissions.enforceUserPermissions(mContext); in isDefaultServiceForCategory() 368 NfcPermissions.enforceUserPermissions(mContext); in isDefaultServiceForAid() 379 NfcPermissions.enforceAdminPermissions(mContext); in setDefaultServiceForCategory() 390 NfcPermissions.enforceAdminPermissions(mContext); in setDefaultForNextTap() [all …]
|