Searched refs:mContext (Results 1 - 25 of 854) sorted by relevance

1234567891011>>

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DTextAppearanceFactory.java26 private final Context mContext; field in class:TextAppearanceFactory
29 mContext = context;
34 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Query)
40 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Suggested)
H A DConfig.java77 private final Context mContext; field in class:Config
86 mContext = context;
90 return mContext;
103 String[] items = mContext.getResources().getStringArray(res);
122 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard);
129 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions);
133 return mContext.getResources().getInteger(R.integer.max_promoted_results);
147 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source);
154 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source);
268 return mContext
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DSettingsModel.java34 private final Context mContext; field in class:SettingsModel
40 mContext = context;
43 SettingsDAO.setDefaultHomeTimeZone(mContext, TimeZone.getDefault());
47 return SettingsDAO.getCitySort(mContext);
51 SettingsDAO.toggleCitySort(mContext);
55 return SettingsDAO.getHomeTimeZone(mContext);
59 return SettingsDAO.getClockStyle(mContext);
63 return SettingsDAO.getScreensaverClockStyle(mContext);
67 if (!SettingsDAO.getAutoShowHomeClock(mContext)) {
73 final TimeZone homeTimeZone = SettingsDAO.getHomeTimeZone(mContext);
[all...]
/packages/apps/Email/tests/src/com/android/email/
H A DControllerProviderOpsTests.java43 private Context mContext; field in class:ControllerProviderOpsTests
53 mContext = getContext();
68 Mailbox.getSystemMailboxName(mContext, -1);
69 fail("Mailbox.getSystemMailboxName(mContext, -1) succeeded without an exception");
74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX));
75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX));
76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH));
77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT));
78 assertEquals("Junk", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_JUNK));
83 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbo
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DAndroidContext.java51 private final Context mContext; field in class:AndroidContext
53 mContext = context;
57 return mContext;
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipPreferences.java36 private Context mContext; field in class:SipPreferences
39 mContext = context;
43 Settings.System.putString(mContext.getContentResolver(),
50 mContext.sendBroadcast(intent);
54 String option = Settings.System.getString(mContext.getContentResolver(),
57 : mContext.getString(R.string.sip_address_only);
61 Settings.System.putInt(mContext.getContentResolver(),
67 return (Settings.System.getInt(mContext.getContentResolver(),
79 mContext.deleteSharedPreferences(SIP_SHARED_PREFERENCES);
/packages/apps/Email/provider_src/com/android/email/service/
H A DAccountService.java38 private Context mContext; field in class:AccountService
44 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
51 VendorPolicyLoader.getInstance(mContext).useAlternateExchangeStrings());
62 EmailServiceUtils.startRemoteServices(mContext);
64 DebugUtils.updateLoggingFlags(mContext);
66 return Device.getDeviceId(mContext);
75 if (mContext == null) {
76 mContext = this;
/packages/apps/TV/src/com/android/tv/
H A DTvOptionsManager.java50 private final Context mContext; field in class:TvOptionsManager
64 mContext = context;
71 return mContext.getString(R.string.closed_caption_option_item_off);
75 return ((MainActivity) mContext).getTvViewUiManager()
77 ? DisplayMode.getLabel(mDisplayMode, mContext)
78 : DisplayMode.getLabel(DisplayMode.MODE_NORMAL, mContext);
80 return mContext.getString(
87 return mContext.getString(mPipSwap ? R.string.pip_options_item_swap_on
91 return mContext.getString(R.string.pip_options_item_sound_main);
93 return mContext
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DProfileObserver.java17 private Context mContext; field in class:ProfileObserver
23 mContext = context;
29 mContext.getContentResolver().registerContentObserver(
35 mContext.unregisterReceiver(mStateObserver);
36 Config.init(mContext);
41 mContext.getContentResolver().unregisterContentObserver(this);
47 mContext.registerReceiver(mStateObserver,
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
H A DSortOrderPreference.java33 private Context mContext; field in class:SortOrderPreference
46 mContext = getContext();
47 mPreferences = new ContactsPreferences(mContext);
49 mContext.getString(R.string.display_options_sort_by_given_name),
50 mContext.getString(R.string.display_options_sort_by_family_name),
68 return mContext.getString(R.string.display_options_sort_by_given_name);
70 return mContext.getString(R.string.display_options_sort_by_family_name);
H A DDisplayOrderPreference.java34 private Context mContext; field in class:DisplayOrderPreference
47 mContext = getContext();
48 mPreferences = new ContactsPreferences(mContext);
50 mContext.getString(R.string.display_options_view_given_name_first),
51 mContext.getString(R.string.display_options_view_family_name_first),
69 return mContext.getString(R.string.display_options_view_given_name_first);
71 return mContext.getString(R.string.display_options_view_family_name_first);
/packages/apps/Dialer/src/com/android/dialer/util/
H A DEmptyLoader.java41 private final Context mContext; field in class:EmptyLoader.Callback
44 mContext = context.getApplicationContext();
49 return new EmptyLoader(mContext);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAsyncRefreshTask.java25 private final Context mContext; field in class:AsyncRefreshTask
30 mContext = context;
37 mContext.getContentResolver().query(mRefreshUri, null, null, null, null);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DMissedCallNotifier.java59 private Context mContext; field in class:MissedCallNotifier
70 mContext = context;
78 CallLogNotificationsHelper.getInstance(mContext).getNewMissedCalls();
100 Notification.Builder builder = new Notification.Builder(mContext);
106 ContactInfo contactInfo = CallLogNotificationsHelper.getInstance(mContext)
117 ContactPhotoLoader loader = new ContactPhotoLoader(mContext, contactInfo);
125 mContext.getString(R.string.notification_missedCallsMsg, count);
130 Notification.Builder publicBuilder = new Notification.Builder(mContext);
132 .setColor(mContext.getResources().getColor(R.color.dialer_theme_color))
134 .setContentTitle(mContext
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/actionbarmenu/
H A DNightModeMenuItemController.java33 private final Context mContext; field in class:NightModeMenuItemController
36 mContext = context;
51 mContext.startActivity(new Intent(mContext, ScreensaverActivity.class));
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DCachingIconLoaderTest.java30 return new CachingIconLoader(new MockIconLoader(mContext));
/packages/services/Telephony/src/com/android/services/telephony/
H A DTelephonyGlobals.java40 private final Context mContext; field in class:TelephonyGlobals
51 mContext = context.getApplicationContext();
65 mTtyManagers.add(new TtyManager(mContext, phone));
68 TelecomAccountRegistry.getInstance(mContext).setupOnBoot();
/packages/apps/Dialer/tests/src/com/android/dialer/filterednumber/
H A DFilteredNumbersUtilTest.java54 private ContactsMockContext mContext; field in class:FilteredNumbersUtilTest
59 mContext = new ContactsMockContext(getContext(), FilteredNumberContract.AUTHORITY);
62 PreferenceManager.getDefaultSharedPreferences(mContext)
70 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER,
76 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER,
82 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER,
88 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER,
94 assertTrue(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBER,
100 PreferenceManager.getDefaultSharedPreferences(mContext)
105 assertFalse(FilteredNumbersUtil.shouldBlockVoicemail(mContext, NORMALIZED_NUMBE
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
H A DCopyContactDetailDialog.java32 private final Context mContext; field in class:CopyContactDetailDialog
36 mContext = context;
41 new AlertDialog.Builder(mContext)
51 (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
56 LayoutInflater inflater = (LayoutInflater) mContext
62 mContext.getResources(), mContactDetail);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomBroadcastIntentProcessor.java38 private final Context mContext; field in class:TelecomBroadcastIntentProcessor
42 mContext = context;
61 closeSystemDialogs(mContext);
66 mContext.startActivityAsUser(callIntent, userHandle);
71 closeSystemDialogs(mContext);
77 mContext.startActivityAsUser(callIntent, userHandle);
/packages/apps/Settings/src/com/android/settings/dashboard/
H A DSuggestionsChecks.java49 private final Context mContext; field in class:SuggestionsChecks
52 mContext = context.getApplicationContext();
72 FeatureFactory.getFactory(mContext).getSuggestionFeatureProvider();
74 return provider.isSuggestionCompleted(mContext);
81 KeyguardManager km = mContext.getSystemService(KeyguardManager.class);
86 FingerprintManager manager = mContext.getSystemService(FingerprintManager.class);
91 if (!ImsManager.isWfcEnabledByPlatform(mContext) ||
92 !ImsManager.isWfcProvisionedOnDevice(mContext)) {
95 return ImsManager.isWfcEnabledByUser(mContext)
96 && ImsManager.isNonTtyOrTtyOnVolteEnabled(mContext);
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DAirplaneModeEnabler.java38 private final Context mContext; field in class:AirplaneModeEnabler
66 mContext = context;
71 mPhoneStateReceiver = new PhoneStateIntentReceiver(mContext, mHandler);
77 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
81 mContext.getContentResolver().registerContentObserver(
89 mContext.getContentResolver().unregisterContentObserver(mAirplaneModeObserver);
94 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
102 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
114 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
126 MetricsLogger.action(mContext, MetricsEven
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DRealSystemFacade.java40 private Context mContext; field in class:RealSystemFacade
43 mContext = context;
53 return mContext.getSystemService(ConnectivityManager.class)
59 return mContext.getSystemService(ConnectivityManager.class)
65 final Long value = DownloadManager.getMaxBytesOverMobile(mContext);
71 final Long value = DownloadManager.getRecommendedMaxBytesOverMobile(mContext);
77 mContext.sendBroadcast(intent);
82 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid;
87 PackageManager packageManager = mContext.getPackageManager();
123 PackageManager packageManager = mContext
[all...]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/uiflows/
H A DEncryptionController.java52 private final Context mContext; field in class:EncryptionController
87 mContext = checkNotNull(context, "Context must not be null").getApplicationContext();
111 if (!mUtils.isUserSetupCompleted(mContext)) {
165 if (mUtils.isUserSetupCompleted(mContext)) {
168 mContext.startActivity(resumeIntent);
171 mContext.startActivity(resumeIntent);
185 private final Context mContext; field in class:EncryptionController.ResumeNotificationHelper
188 mContext = context;
194 mContext.getSystemService(Context.NOTIFICATION_SERVICE);
196 mContext,
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/components/
H A DUserCallIntentProcessor.java63 private final Context mContext; field in class:UserCallIntentProcessor
67 mContext = context;
106 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) {
109 if (!TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) {
110 final UserManager userManager = (UserManager) mContext.getSystemService(
114 showErrorDialogForRestrictedOutgoingCall(mContext,
121 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext,
128 if (!canCallNonEmergency && !TelephonyUtil.shouldProcessAsEmergency(mContext, handle)) {
129 showErrorDialogForRestrictedOutgoingCall(mContext,
155 final String defaultDialer = DefaultDialerManager.getDefaultDialerApplication(mContext,
[all...]

Completed in 645 milliseconds

1234567891011>>