Searched refs:mContext (Results 1 - 25 of 726) 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/TvSettings/Settings/src/com/android/tv/settings/
H A DPreferenceUtils.java27 private final Context mContext; field in class:PreferenceUtils
30 mContext = context;
34 return Settings.Global.getInt(mContext.getContentResolver(),
39 Settings.Global.putInt(mContext.getContentResolver(),
/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/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/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/TvSettings/Settings/src/com/android/tv/settings/device/display/
H A DDisplayBrowseInfo.java37 private final Context mContext; field in class:DisplayBrowseInfo
42 mContext = context;
44 mHeaderItems.add(new HeaderItem(HEADER_ID, mContext.getString(R.string.device_display)));
52 .title(mContext.getString(R.string.device_daydream))
53 .imageResourceId(mContext, R.drawable.ic_settings_daydream)
60 .title(mContext.getString(R.string.accessories_wifi_display))
61 .imageResourceId(mContext, R.drawable.ic_settings_widi)
68 .title(mContext.getString(R.string.device_calibration))
69 .imageResourceId(mContext, R.drawable.ic_settings_overscan)
/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/services/Telephony/src/com/android/phone/vvm/omtp/
H A DVvmPhoneStateListener.java39 private Context mContext; field in class:VvmPhoneStateListener
44 mContext = context;
61 new VoicemailStatusQueryHelper(mContext);
65 VoicemailContract.Status.setStatus(mContext, mPhoneAccount,
74 if (OmtpVvmSourceManager.getInstance(mContext).isVvmSourceRegistered(mPhoneAccount)) {
81 mContext, OmtpVvmSyncService.SYNC_FULL_SYNC, mPhoneAccount,
83 mContext.startService(serviceIntent);
92 mContext, PhoneUtils.getSubIdForPhoneAccountHandle(mPhoneAccount));
97 mContext.stopService(OmtpVvmSyncService.getSyncIntent(
98 mContext, OmtpVvmSyncServic
[all...]
/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/providers/DownloadProvider/src/com/android/providers/downloads/
H A DRealSystemFacade.java34 private Context mContext; field in class:RealSystemFacade
37 mContext = context;
48 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
63 final ConnectivityManager conn = ConnectivityManager.from(mContext);
70 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
87 return DownloadManager.getMaxBytesOverMobile(mContext);
92 return DownloadManager.getRecommendedMaxBytesOverMobile(mContext);
97 mContext.sendBroadcast(intent);
102 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid;
107 PackageManager packageManager = mContext
[all...]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipSharedPreferences.java45 private Context mContext; field in class:SipSharedPreferences
50 mContext = context;
73 Settings.System.putString(mContext.getContentResolver(),
80 mContext.sendBroadcast(intent);
84 String option = Settings.System.getString(mContext.getContentResolver(),
87 : mContext.getString(R.string.sip_address_only);
91 Settings.System.putInt(mContext.getContentResolver(),
97 return (Settings.System.getInt(mContext.getContentResolver(),
/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.java36 private final Context mContext; field in class:TelecomBroadcastIntentProcessor
40 mContext = context;
54 closeSystemDialogs(mContext);
59 mContext.startActivityAsUser(callIntent, UserHandle.CURRENT);
64 closeSystemDialogs(mContext);
70 mContext.startActivityAsUser(callIntent, UserHandle.CURRENT);
H A DTelecomSystem.java64 private final Context mContext; field in class:TelecomSystem
99 mContext = context.getApplicationContext();
102 mPhoneAccountRegistrar = new PhoneAccountRegistrar(mContext);
106 mContext,
119 mContext.registerReceiver(mUserSwitchedReceiver, USER_SWITCHED_FILTER);
121 mContext, mLock, mCallsManager, mPhoneAccountRegistrar);
122 mCallIntentProcessor = new CallIntentProcessor(mContext, mCallsManager);
124 mContext, mCallsManager);
126 mContext, mCallsManager, mPhoneAccountRegistrar, mLock);
/packages/apps/Settings/src/com/android/settings/
H A DAirplaneModeEnabler.java37 private final Context mContext; field in class:AirplaneModeEnabler
65 mContext = context;
70 mPhoneStateReceiver = new PhoneStateIntentReceiver(mContext, mHandler);
76 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
80 mContext.getContentResolver().registerContentObserver(
88 mContext.getContentResolver().unregisterContentObserver(mAirplaneModeObserver);
93 Settings.Global.putInt(mContext.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON,
101 mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
113 mSwitchPref.setChecked(WirelessUtils.isAirplaneModeOn(mContext));
125 MetricsLogger.action(mContext, MetricsLogge
[all...]
H A DNsdEnabler.java32 private final Context mContext; field in class:NsdEnabler
49 mContext = context;
51 mNsdManager = (NsdManager) mContext.getSystemService(Context.NSD_SERVICE);
56 mContext.registerReceiver(mReceiver, mIntentFilter);
61 mContext.unregisterReceiver(mReceiver);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
H A DConnectivityStatusTextGetter.java33 private final Context mContext; field in class:ConnectivityStatusTextGetter
56 mContext = context;
60 mConnectivityManager = (ConnectivityManager) mContext.getSystemService(
62 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
74 return mContext.getString(mEthernetStringResourceId);
80 return mContext.getString(R.string.not_connected);
93 return mContext.getString(mWifiStringResourceId);
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sms/
H A DOmtpMessageReceiver.java45 private Context mContext; field in class:OmtpMessageReceiver
50 mContext = context;
59 if (!VisualVoicemailSettingsUtil.isVisualVoicemailEnabled(mContext, mPhoneAccount)) {
111 .setSourcePackage(mContext.getPackageName())
113 VoicemailsQueryHelper queryHelper = new VoicemailsQueryHelper(mContext);
118 mContext, OmtpVvmSyncService.SYNC_DOWNLOAD_ONLY, mPhoneAccount,
120 mContext.startService(serviceIntent);
133 OmtpVvmSourceManager.getInstance(mContext);
136 VoicemailContract.Status.setStatus(mContext, mPhoneAccount,
143 mContext,
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DPeopleOptionsItemData.java61 private final Context mContext; field in class:PeopleOptionsItemData
64 mContext = context;
84 mTitle = mContext.getString(R.string.notifications_enabled_conversation_pref_title);
89 mTitle = mContext.getString(R.string.notification_sound_pref_title);
93 mSubtitle = mContext.getString(R.string.silent_ringtone);
95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri);
97 mSubtitle = ringtone.getTitle(mContext);
106 mTitle = mContext.getString(R.string.notification_vibrate_pref_title);
115 mTitle = mContext.getString(resourceId, otherParticipant.getDisplayDestination());
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DVoicemailQueryHandler.java34 private Context mContext; field in class:VoicemailQueryHandler
38 mContext = context;
60 if (mContext != null) {
61 Intent serviceIntent = new Intent(mContext, CallLogNotificationsService.class);
63 mContext.startService(serviceIntent);

Completed in 1302 milliseconds

1234567891011>>