/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
AccessibilityUtils.java | 44 private Context mContext; 76 mContext = context; 167 final CharSequence text = mContext.getText(R.string.spoken_use_headphones);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
Hints.java | 50 private final Context mContext; 67 mContext = context; 71 ContentResolver cr = mContext.getContentResolver();
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarAlarmManager.java | 131 protected Context mContext; 139 mContext = context; 156 PendingIntent pending = PendingIntent.getBroadcast(mContext, 0 /* ignored */, intent, 162 pending = PendingIntent.getBroadcast(mContext, 0 /* ignored */, intent, 173 PowerManager powerManager = (PowerManager) mContext.getSystemService( 196 rescheduleMissedAlarms(mContext.getContentResolver()); 223 intent.setClass(mContext, CalendarReceiver.class); 225 mContext, 0, intent, PendingIntent.FLAG_NO_CREATE); 231 mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); 292 final ContentResolver resolver = mContext.getContentResolver() [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContextWrapperTest.java | 92 private Context mContext; 107 mContext = getContext(); 108 mContextWrapper = new ContextWrapper(mContext); 140 new ContextWrapper(mContext); 532 Intent intent = new Intent(mContext, ContextWrapperStubActivity.class); 581 assertSame(mContext.getApplicationContext(), mContextWrapper.getApplicationContext()); 593 sp = PreferenceManager.getDefaultSharedPreferences(mContext); 637 bindExpectResult(mContextWrapper, new Intent(mContext, MockContextWrapperService.class)); 682 assertSame(mContext.getContentResolver(), mContextWrapper.getContentResolver()); 698 MockContextWrapper testContextWrapper = new MockContextWrapper(mContext); [all...] |
IntentTest.java | 64 private Context mContext; 78 mContext = getContext(); 79 mComponentName = new ComponentName(mContext, MockActivity.class); 80 mAnotherComponentName = new ComponentName(mContext, "tmp"); 136 mIntent = new Intent(mContext, MockActivity.class); 140 mIntent = new Intent(TEST_ACTION, TEST_URI, mContext, MockActivity.class); 379 final Intent intent = mIntent.setClassName(mContext, MockActivity.class.getName()); 397 mIntent.setClassName(mContext.getPackageName(), MockActivity.class.getName()); 557 final ContentResolver contentResolver = mContext.getContentResolver(); 558 assertNull(mIntent.resolveType(mContext)); [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadThread.java | 56 private final Context mContext; 66 mContext = context; 142 final NetworkPolicyManager netPolicy = NetworkPolicyManager.getSystemService(mContext); 143 final PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 156 client = AndroidHttpClient.newInstance(userAgent(), mContext); 169 Proxy.getPreferredHttpHost(mContext, state.mRequestUri)); 418 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null); 475 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null); 508 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null); 556 mDrmConvertSession = DrmConvertSession.open(mContext, state.mMimeType) [all...] |
/frameworks/base/services/java/com/android/server/ |
LocationManagerService.java | 119 private final Context mContext; 288 mPendingIntent.send(mContext, 0, statusChanged, this, mLocationHandler, 324 mPendingIntent.send(mContext, 0, locationChanged, this, mLocationHandler, 364 mPendingIntent.send(mContext, 0, providerIntent, this, mLocationHandler, 473 GpsLocationProvider gpsProvider = new GpsLocationProvider(mContext, this); 486 PackageManager pm = mContext.getPackageManager(); 490 new LocationProviderProxy(mContext, LocationManager.NETWORK_PROVIDER, 497 mGeocodeProvider = new GeocoderProxy(mContext, mGeocodeProviderPackageName); 508 mContext = context; 529 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE) [all...] |
VibratorService.java | 102 mContext = context; 120 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.VIBRATE) 154 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.VIBRATE) 205 mContext.enforceCallingOrSelfPermission( 400 private final Context mContext;
|
AlarmManagerService.java | 79 private final Context mContext; 117 mContext = context; 231 mContext.enforceCallingOrSelfPermission( 239 mContext.enforceCallingOrSelfPermission( 268 mContext.sendBroadcast(intent); 429 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) 637 mContext.sendBroadcast(intent); 665 alarm.operation.send(mContext, 0, 746 mContext.registerReceiver(this, filter); 801 mContext.registerReceiver(this, filter) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
RotateDrawableTest.java | 53 Resources resources = mContext.getResources(); 134 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass); 283 Drawable drawable = mContext.getResources().getDrawable(R.drawable.testimage); 288 Resources r = mContext.getResources(); 330 Resources resources = mContext.getResources();
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTest.java | 54 MediaPlayer mp = MediaPlayer.create(mContext, resid); 57 mp.setWakeMode(mContext, PowerManager.PARTIAL_WAKE_LOCK); 433 mp.setDataSource(mContext, uri); 442 mp = MediaPlayer.create(mContext, uri); 451 mp = MediaPlayer.create(mContext, uri, getActivity().getSurfaceHolder());
|
SoundPoolTest.java | 61 mFile = new File(mContext.getFilesDir(), FILE_NAME); 113 int sampleId1 = mSoundPool.load(mContext, SOUND_A, PRIORITY); 118 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(SOUND_CS); 144 InputStream is = mContext.getResources().openRawResource(SOUND_A); 346 int sample = mSoundPool.load(mContext, sampleId, prio);
|
/frameworks/base/core/java/android/net/ |
DnsPinger.java | 67 private final Context mContext; 123 mContext = context; 290 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( 298 String dns = Settings.Secure.getString(mContext.getContentResolver(), 301 dns = mContext.getResources().getString(
|
Proxy.java | 284 private Context mContext; 289 mContext = context; 295 return getProxy(mContext, target.getHostName()); 301 return getPreferredHttpHost(mContext, target.getHostName()); 307 HttpHost proxy = getPreferredHttpHost(mContext, target.getHostName());
|
/frameworks/ex/common/java/com/android/common/widget/ |
CompositeCursorAdapter.java | 57 private final Context mContext; 70 mContext = context; 75 return mContext; 362 : newHeaderView(mContext, partition, cursor, parent); 390 view = newView(mContext, partition, cursor, position, parent);
|
/packages/apps/Browser/src/com/android/browser/ |
InstantSearchEngine.java | 49 private final Context mContext; 55 mContext = context.getApplicationContext(); 70 return mContext.getResources().getString(R.string.instant_search_label); 337 String url = mContext.getResources().getString(R.string.instant_base); 340 BrowserProvider.getClientId(mContext.getContentResolver()));
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupOutgoingFragment.java | 252 HostAuth sendAuth = SetupData.getAccount().getOrCreateHostAuthSend(mContext); 300 AccountSettingsUtils.checkPasswordSpaces(mContext, mPasswordView); 332 account.mHostAuthSend.update(mContext, account.mHostAuthSend.toContentValues()); 334 AccountBackupRestore.backup(mContext); 350 HostAuth sendAuth = account.getOrCreateHostAuthSend(mContext);
|
/packages/apps/Email/tests/src/com/android/email/service/ |
AttachmentDownloadServiceTests.java | 72 mService.mContext = mMockContext; 73 mService.addServiceIntentForTest(mAccountId, new Intent(mContext, 77 mService.mConnectivityManager = new MockConnectivityManager(mContext, "mock"); 80 new MockDirectory(mService.mContext.getCacheDir().getAbsolutePath()); 122 mDownloadSet.createWatchdogPendingIntent(mContext);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocationClustering.java | 39 private Context mContext; 60 mContext = context; 61 mNoLocationString = mContext.getResources().getString(R.string.no_location); 116 ReverseGeocoder geocoder = new ReverseGeocoder(mContext); 140 Toast.makeText(mContext, R.string.no_connectivity,
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
Transaction.java | 40 protected Context mContext; 64 mContext = context; 177 mContext, token, 197 mContext, SendingProgressTokenManager.NO_TOKEN, 213 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageItem.java | 59 final Context mContext; 99 mContext = context; 161 PduPersister p = PduPersister.getPduPersister(mContext); 224 mBody = mContext.getString(R.string.drm_protected_text); 255 mAddress = AddressUtils.getFrom(mContext, messageUri);
|
SlideshowEditActivity.java | 349 private final Context mContext; 358 mContext = context; 377 text.setText(mContext.getString(R.string.slide_number, position + 1)); 382 text.setText(mContext.getResources(). 386 "SlideshowPresenter", mContext, slideListItemView, mSlideshow);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactTileAdapter.java | 51 private Context mContext; 117 mContext = context; 123 mPaddingInPixels = mContext.getResources() 258 icon = ContactPresenceIconUtil.getPresenceIcon(mContext, presence); 269 statusMessage = ContactStatusUtil.getStatusString(mContext, presence); 395 contactTileRowView = new ContactTileRow(mContext, itemViewType); 407 View dividerView = View.inflate(mContext, R.layout.list_separator, null); 411 mContext.getString(R.string.favoritesFrequentCalled) : 412 mContext.getString(R.string.favoritesFrequentContacted)); 522 contactTile = (ContactTileView) inflate(mContext, mLayoutResId, null) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
ApplicationsState.java | 225 final Context mContext; 258 mContext.registerReceiver(this, filter); 263 mContext.registerReceiver(this, sdFilter); 365 mContext = app; 366 mPm = mContext.getPackageManager(); 410 if (mInterestingConfigChanges.applyNewConfig(mContext.getResources())) { 519 entry.ensureLabel(mContext); 570 entry.ensureIconLocked(mContext, mPm); 671 entry = new AppEntry(mContext, info, mCurId++); 699 return Formatter.formatFileSize(mContext, size) [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
XmlKeyboardLoader.java | 256 private Context mContext; 323 mContext = context; 324 mResources = mContext.getResources(); 328 if (null == mContext || 0 == resourceId) { 430 if (null == mContext) return null; 433 XmlResourceParser xrp = mContext.getResources().getXml(resourceId); 469 mContext); 766 return Integer.parseInt(mContext.getResources().getString(resId)); [all...] |