Searched refs:mContext (Results 51 - 75 of 810) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/app/
H A DSearchManagerTest.java76 Context mContext; field in class:SearchManagerTest
90 mContext = testActivity;
115 mContext.getSystemService(Context.SEARCH_SERVICE);
118 mContext.getSystemService(Context.SEARCH_SERVICE);
129 mContext.getSystemService(Context.SEARCH_SERVICE);
143 mContext.getSystemService(Context.SEARCH_SERVICE);
158 mContext.getSystemService(Context.SEARCH_SERVICE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DHotspotControllerImpl.java49 private final Context mContext; field in class:HotspotControllerImpl
54 mContext = context;
55 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
57 mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
90 String[] provisionApp = mContext.getResources().getStringArray(
101 final ContentResolver cr = mContext.getContentResolver();
105 String tetherEnable = mContext.getResources().getString(
113 mContext.startServiceAsUser(intent, UserHandle.CURRENT);
146 mContext.registerReceiver(this, filter);
150 mContext
[all...]
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManager.java89 private final Context mContext; field in class:UsageStatsManager
96 mContext = context;
132 endTime, mContext.getOpPackageName());
157 intervalType, beginTime, endTime, mContext.getOpPackageName());
181 mContext.getOpPackageName());
/frameworks/base/core/tests/notificationtests/src/android/app/
H A DNotificationStressTest.java52 private Context mContext; field in class:NotificationStressTest
59 mContext = getInstrumentation().getContext();
60 mNotificationManager = (NotificationManager) mContext.getSystemService(
85 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
88 notification.setLatestEventInfo(mContext, title, subtitle, pendingIntent);
/frameworks/base/services/core/java/com/android/server/
H A DConsumerIrService.java36 private final Context mContext; field in class:ConsumerIrService
42 mContext = context;
49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) {
72 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.TRANSMIT_IR)
104 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.TRANSMIT_IR)
H A DNetworkScoreService.java59 private final Context mContext; field in class:NetworkScoreService
83 NetworkScorerAppManager.getActiveScorer(mContext) == null) {
93 mContext = context;
99 ContentResolver cr = mContext.getContentResolver();
103 String defaultPackage = mContext.getResources().getString(
106 NetworkScorerAppManager.setActiveScorer(mContext, defaultPackage);
115 NetworkScorerAppData scorer = NetworkScorerAppManager.getActiveScorer(mContext);
122 mContext.unregisterReceiver(mReceiver);
137 mContext.registerReceiverAsUser(mReceiver, UserHandle.OWNER, filter, null, null);
147 if (!NetworkScorerAppManager.isCallerActiveScorer(mContext, getCallingUi
[all...]
H A DUpdateLockService.java42 Context mContext; field in class:UpdateLockService
65 mContext = context;
81 mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);
93 mContext.enforceCallingOrSelfPermission(PERMISSION, "acquireUpdateLock");
103 mContext.enforceCallingOrSelfPermission(PERMISSION, "releaseUpdateLock");
115 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
H A DNetworkTimeUpdateService.java69 private Context mContext; field in class:NetworkTimeUpdateService
94 mContext = context;
96 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
98 mPendingPollIntent = PendingIntent.getBroadcast(mContext, POLL_REQUEST, pollIntent, 0);
100 mPollingIntervalMs = mContext.getResources().getInteger(
102 mPollingIntervalShorterMs = mContext.getResources().getInteger(
104 mTryAgainTimesMax = mContext.getResources().getInteger(
106 mTimeErrorThresholdMs = mContext.getResources().getInteger(
123 mSettingsObserver.observe(mContext);
130 mContext
[all...]
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/
H A DSymbolResolvers.h110 ContextTy mContext; member in class:bcc::LookupFunctionSymbolResolver
115 : mLookupFunc(pLookupFunc), mContext(pContext) { }
118 return ((mLookupFunc != NULL) ? mLookupFunc(mContext, pName) : NULL);
124 { return mContext; }
129 { mContext = pContext; }
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java69 private BridgeContext mContext; field in class:RenderAction
123 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources,
156 if (mContext == null) {
199 // If this is called by init, mContext will be null and so should sCurrentContext
201 if (mContext != sCurrentContext) {
233 mContext.initResources();
234 sCurrentContext = mContext;
241 mContext.getRenderResources().setFrameworkResourceIdProvider(this);
242 mContext.getRenderResources().setLogger(currentLog);
252 if (mContext !
[all...]
/frameworks/base/core/java/android/app/
H A DNotificationManager.java103 mContext = context;
141 String pkg = mContext.getPackageName();
152 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id,
168 String pkg = mContext.getPackageName();
179 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id,
206 String pkg = mContext.getPackageName();
220 String pkg = mContext.getPackageName();
235 String pkg = mContext.getPackageName();
279 private Context mContext; field in class:NotificationManager
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbService.java72 private final Context mContext; field in class:UsbService
88 settings = new UsbSettingsManager(mContext, new UserHandle(userId));
96 mContext = context;
98 final PackageManager pm = mContext.getPackageManager();
111 mContext.registerReceiver(mUserReceiver, userFilter, null, null);
188 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
194 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
225 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
232 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
239 mContext
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
H A DPowerNotificationWarnings.java76 private final Context mContext; field in class:PowerNotificationWarnings
98 mContext = context;
154 final Notification.Builder nb = new Notification.Builder(mContext)
159 .setContentTitle(mContext.getString(R.string.invalid_charger_title))
160 .setContentText(mContext.getString(R.string.invalid_charger_text))
163 .setColor(mContext.getResources().getColor(
176 final Notification.Builder nb = new Notification.Builder(mContext)
181 .setContentTitle(mContext.getString(R.string.battery_low_title))
182 .setContentText(mContext.getString(textRes, percentage))
187 .setColor(mContext
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DLocationTile.java78 state.label = mContext.getString(R.string.quick_settings_location_label);
79 state.contentDescription = mContext.getString(
83 state.label = mContext.getString(R.string.quick_settings_location_label);
84 state.contentDescription = mContext.getString(
92 return mContext.getString(R.string.accessibility_quick_settings_location_changed_on);
94 return mContext.getString(R.string.accessibility_quick_settings_location_changed_off);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsStorageMonitor.java51 private final Context mContext; field in class:SmsStorageMonitor
76 mContext = phone.getContext();
89 mContext.registerReceiver(mResultReceiver, filter);
95 mContext.unregisterReceiver(mResultReceiver);
134 PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
148 mContext.sendBroadcast(intent, android.Manifest.permission.RECEIVE_SMS);
/frameworks/base/core/java/android/widget/
H A DShareActionProvider.java122 private final Context mContext; field in class:ShareActionProvider
140 mContext = context;
164 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
166 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
172 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
173 Drawable drawable = mContext.getDrawable(outTypedValue.resourceId);
202 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
203 PackageManager packageManager = mContext.getPackageManager();
220 mContext.getString(R.string.activity_chooser_view_see_all));
286 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
[all...]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java40 private Context mContext; field in class:SettingsHelper
45 mContext = context;
121 ringtoneUri = mContext.getContentResolver().uncanonicalize(canonicalUri);
129 RingtoneManager.setActualDefaultRingtoneUri(mContext, ringtoneType, ringtoneUri);
134 final Uri canonicalUri = mContext.getContentResolver().canonicalize(ringtoneUri);
148 return Settings.Secure.getInt(mContext.getContentResolver(), name, 0) != 0;
152 mContext.getContentResolver(), name));
168 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
179 mContext.getContentResolver(), GPS, enabled);
203 Configuration conf = mContext
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DShareActionProvider.java140 private final Context mContext; field in class:ShareActionProvider
158 mContext = context;
182 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
184 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
190 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
191 Drawable drawable = TintManager.getDrawable(mContext, outTypedValue.resourceId);
220 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
221 PackageManager packageManager = mContext.getPackageManager();
238 mContext.getString(R.string.abc_activity_chooser_view_see_all));
310 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
[all...]
/frameworks/base/core/java/android/app/backup/
H A DAbsoluteFileBackupHelper.java35 Context mContext; field in class:AbsoluteFileBackupHelper
48 mContext = context;
/frameworks/base/core/java/android/hardware/
H A DSerialManager.java33 private final Context mContext; field in class:SerialManager
40 mContext = context;
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DTestService.java595 Context mContext; field in class:TestService.OpenXmlResOp
602 mContext = context;
606 XmlResourceParser parser = mContext.getResources().getLayout(R.xml.simple);
613 Context mContext; field in class:TestService.ReadXmlAttrsOp
622 mContext = context;
623 mParser = mContext.getResources().getLayout(R.xml.simple);
652 TypedArray a = mContext.obtainStyledAttributes(mAttrs,
660 Context mContext; field in class:TestService.ParseXmlResOp
667 mContext = context;
671 SimpleInflater inf = new SimpleInflater(mContext);
678 Context mContext; field in class:TestService.ParseLargeXmlResOp
696 Context mContext; field in class:TestService.LayoutInflaterOp
718 Context mContext; field in class:TestService.LayoutInflaterLargeOp
740 Context mContext; field in class:TestService.LayoutInflaterViewOp
762 Context mContext; field in class:TestService.LayoutInflaterButtonOp
784 Context mContext; field in class:TestService.LayoutInflaterImageButtonOp
806 Context mContext; field in class:TestService.CreateBitmapOp
825 Context mContext; field in class:TestService.CreateRecycleBitmapOp
845 Context mContext; field in class:TestService.LoadSmallBitmapOp
865 Context mContext; field in class:TestService.LoadRecycleSmallBitmapOp
886 Context mContext; field in class:TestService.LoadLargeBitmapOp
906 Context mContext; field in class:TestService.LoadRecycleLargeBitmapOp
927 Context mContext; field in class:TestService.LoadSmallScaledBitmapOp
947 Context mContext; field in class:TestService.LoadLargeScaledBitmapOp
[all...]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetServiceImpl.java49 private final Context mContext; field in class:EthernetServiceImpl
60 mContext = context;
71 mContext.enforceCallingOrSelfPermission(
77 mContext.enforceCallingOrSelfPermission(
83 mContext.enforceCallingOrSelfPermission(
95 mTracker.start(mContext, mHandler);
133 mTracker.start(mContext, mHandler);
175 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
H A DSupportActionModeWrapper.java40 final Context mContext; field in class:SupportActionModeWrapper
45 mContext = context;
81 return MenuWrapperFactory.wrapSupportMenu(mContext, (SupportMenu) mWrappedObject.getMenu());
139 final Context mContext; field in class:SupportActionModeWrapper.CallbackWrapper
146 mContext = context;
168 MenuWrapperFactory.wrapSupportMenuItem(mContext, (SupportMenuItem) item));
179 wrapper = MenuWrapperFactory.wrapSupportMenu(mContext, (SupportMenu) menu);
194 wrapper = new SupportActionModeWrapper(mContext, mode);
/frameworks/wilhelm/src/itf/
H A DIVisualization.c33 thiz->mContext = pContext;
68 thiz->mContext = NULL;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmMmiCode.java119 Context mContext; field in class:GsmMmiCode
547 mContext = phone.getContext();
981 mMessage = mContext.getText(com.android.internal.R.string.mmiError);
990 sb.append(mContext.getText(res));
1008 mMessage = mContext.getText(com.android.internal.R.string.mmiComplete);
1032 mMessage = mContext.getText(com.android.internal.R.string.mmiError);
1145 return mContext.getText(com.android.internal.R.string.mmiFdnError);
1148 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_dial);
1151 return mContext.getText(com.android.internal.R.string.stk_cc_ussd_to_ss);
1154 return mContext
[all...]

Completed in 4030 milliseconds

1234567891011>>