HomeSort by relevance Sort by last modified time
    Searched defs:mContext (Results 101 - 125 of 514) sorted by null

1 2 3 45 6 7 8 91011>>

  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java 41 private Context mContext;
50 mContext = context;
99 mContext.getContentResolver(), GPS, enabled);
135 Configuration conf = mContext.getResources().getConfiguration();
152 Configuration conf = mContext.getResources().getConfiguration();
159 final String[] availableLocales = mContext.getAssets().getLocales();
190 AudioManager am = new AudioManager(mContext);
  /packages/apps/Calendar/src/com/android/calendar/
TimezoneAdapter.java 179 private Context mContext;
195 mContext = context;
238 SharedPreferences prefs = CalendarPreferenceActivity.getSharedPreferences(mContext);
250 loadFromResources(mContext.getResources());
306 SharedPreferences prefs = CalendarPreferenceActivity.getSharedPreferences(mContext);
  /packages/apps/Contacts/src/com/android/contacts/ui/widget/
ReadOnlyContactEditorView.java 118 CharSequence accountType = source.getDisplayLabel(mContext);
120 accountType = mContext.getString(R.string.account_phone);
124 mContext.getString(R.string.from_account_format, accountName));
126 mHeaderAccountType.setText(mContext.getString(R.string.account_type_format, accountType));
127 mHeaderIcon.setImageDrawable(source.getDisplayIcon(mContext));
154 mReadOnlyWarning.setText(mContext.getString(R.string.contact_read_only, accountType));
164 v.setText(mContext.getText(R.string.phoneLabelsGroup));
179 v.setText(mContext.getText(R.string.emailLabelsGroup));
  /packages/apps/Email/src/com/android/email/service/
EmailServiceProxy.java 53 private final Context mContext;
69 mContext = _context;
114 mContext.unbindService(mSyncManagerConnection);
137 mContext.bindService(new Intent(mContext, mClass), mSyncManagerConnection,
  /packages/apps/Gallery3D/src/com/cooliris/media/
MediaItemTexture.java 41 private Context mContext;
52 mContext = context;
108 return UriTexture.createFromUri(mContext, item.mThumbnailUri, 128, 128, 0, null);
139 retVal = UriTexture.createFromUri(mContext, mItem.mContentUri, UriTexture.MAX_RESOLUTION,
157 MediaStore.Video.Thumbnails.cancelThumbnailRequest(mContext.getContentResolver(), mItem.mId);
163 retVal = MediaStore.Video.Thumbnails.getThumbnail(mContext.getContentResolver(), mItem.mId,
190 Bitmap retVal = UriTexture.createFromUri(mContext, item.mThumbnailUri, 256, 256, 0, null);
201 data = CacheService.queryThumbnail(mContext, Utils.Crc64Long(item.mFilePath), item.mId,
  /packages/apps/Mms/src/com/android/mms/transaction/
MmsMessageSender.java 43 private final Context mContext;
55 mContext = context;
66 PduPersister p = PduPersister.getPduPersister(mContext);
93 mContext.startService(new Intent(mContext, TransactionService.class));
100 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);
  /packages/apps/Mms/src/com/android/mms/util/
RateController.java 53 private final Context mContext;
74 mContext = context;
98 SqliteWrapper.insert(mContext, mContext.getContentResolver(),
104 Cursor c = SqliteWrapper.query(mContext, mContext.getContentResolver(),
129 mContext.registerReceiver(mBroadcastReceiver,
138 mContext.startActivity(intent);
141 mContext.unregisterReceiver(mBroadcastReceiver);
  /packages/apps/Nfc/src/com/android/nfc/
RegisteredComponentCache.java 46 final Context mContext;
55 mContext = context;
73 mContext.registerReceiver(receiver, intentFilter);
78 mContext.registerReceiver(receiver, sdFilter);
121 mContext.unregisterReceiver(receiver);
141 PackageManager pm = mContext.getPackageManager();
165 PackageManager pm = mContext.getPackageManager();
  /packages/apps/Protips/src/com/android/protips/
ProtipWidget.java 73 private Context mContext;
78 mContext = context;
117 Resources res = mContext.getResources();
140 mContext.startActivity(
148 mContext.sendBroadcast(bcast);
156 RemoteViews rv = buildUpdate(mContext);
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothDiscoverableEnabler.java 61 private final Context mContext;
89 mContext = context;
111 mContext.registerReceiver(mReceiver, filter);
125 mContext.unregisterReceiver(mReceiver);
161 mContext.getResources()
165 mContext.getResources()
  /packages/apps/Stk/src/com/android/stk/
StkMenuActivity.java 45 private Context mContext;
88 mContext = getBaseContext();
330 mContext.startService(new Intent(mContext, StkAppService.class)
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadNotification.java 41 Context mContext;
99 mContext = ctx;
125 title = mContext.getResources().getString(
143 item.mPausedText = mContext.getResources().getString(
168 title.append(mContext.getString(R.string.notification_filename_separator));
172 title.append(mContext.getString(R.string.notification_filename_extras,
203 n.contentIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
222 title = mContext.getResources().getString(
230 caption = mContext.getResources()
234 caption = mContext.getResources(
    [all...]
  /frameworks/base/services/java/com/android/server/
TelephonyRegistry.java 64 private final Context mContext;
122 mContext = context;
451 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
500 mContext.sendStickyBroadcast(intent);
518 mContext.sendStickyBroadcast(intent);
541 mContext.sendBroadcast(intent, android.Manifest.permission.READ_PHONE_STATE);
575 mContext.sendStickyBroadcast(intent);
582 mContext.sendStickyBroadcast(intent);
586 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
598 mContext.enforceCallingOrSelfPermission
    [all...]
  /frameworks/base/services/java/com/android/server/usb/
UsbService.java 101 private final Context mContext;
204 mContext = context;
206 PackageManager pm = mContext.getPackageManager();
302 mContext.registerReceiver(mBootCompletedReceiver,
341 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
355 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
360 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
365 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
413 final ContentResolver cr = mContext.getContentResolver();
429 mContext.sendStickyBroadcast(intent)
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
AlarmManagerTest.java 57 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
59 mSender = PendingIntent.getBroadcast(mContext, 0, mIntent, 0);
62 mContext.registerReceiver(mMockAlarmReceiver, filter);
69 mContext.stopService(mServiceIntent);
IntentServiceTest.java 43 mIntent = new Intent(mContext, IntentServiceStub.class);
50 mContext.stopService(mIntent);
58 Intent addIntent = new Intent(mContext, IntentServiceStub.class);
64 mContext.startService(addIntent);
108 mContext.startService(mIntent);
119 mContext.bindService(mIntent, conn, Context.BIND_AUTO_CREATE);
128 mContext.unbindService(conn);
130 mContext.stopService(mIntent);
  /cts/tests/tests/content/src/android/content/cts/
ContextTest.java 43 private Context mContext;
48 mContext = getContext();
49 mContext.setTheme(R.style.Test_Theme);
68 String testString = mContext.getString(R.string.context_test_string1);
71 testString = mContext.getString(R.string.context_test_string1, "expected");
74 testString = mContext.getString(R.string.context_test_string2);
79 testString = mContext.getString(0, "expected");
86 testString = mContext.getString(0);
100 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2);
105 testCharSequence = mContext.getText(0)
    [all...]
  /cts/tests/tests/content/src/android/content/pm/cts/
ApplicationInfoTest.java 73 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
112 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
141 mApplicationInfo = mContext.getPackageManager().getApplicationInfo(mPackageName, 0);
143 assertNull(mApplicationInfo.loadDescription(mContext.getPackageManager()));
146 assertEquals(mContext.getResources().getString(R.string.hello_world),
147 mApplicationInfo.loadDescription(mContext.getPackageManager()));
  /cts/tests/tests/media/src/android/media/cts/
RingtoneTest.java 34 private Context mContext;
44 mContext = getContext();
45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
46 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI);
106 assertNotNull(mRingtone.getTitle(mContext));
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_VideoTest.java 43 private Context mContext;
61 mContext = getInstrumentation().getTargetContext();
62 mContentResolver = mContext.getContentResolver();
63 mHelper = new FileCopyHelper(mContext);
UserDictionary_WordsTest.java 36 private Context mContext;
55 mContext = getContext();
56 mContentResolver = mContext.getContentResolver();
  /cts/tests/tests/text/src/android/text/format/cts/
DateUtilsTest.java 40 private Context mContext;
45 mContext = getContext();
55 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
80 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
101 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
142 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US)) {
163 assertNotNull(DateUtils.getRelativeDateTimeString(mContext,
166 assertNotNull(DateUtils.getRelativeTimeSpanString(mContext,
168 assertNotNull(DateUtils.getRelativeTimeSpanString(mContext,
201 if (!LocaleUtils.isCurrentLocale(mContext, Locale.US))
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
DigitalClockTest.java 47 private Context mContext;
57 mContext = getInstrumentation().getContext();
76 new DigitalClock(mContext);
79 new DigitalClock(mContext, null);
82 new DigitalClock(mContext, getAttributeSet(R.layout.digitalclock_layout));
84 // Test constructor with null Context, in fact, DigitalClock(mContext) function will
138 MockDigitalClock datePicker = new MockDigitalClock(mContext,
ResourceCursorAdapterTest.java 44 private Context mContext;
54 mContext = getInstrumentation().getTargetContext();
55 LayoutInflater layoutInflater = (LayoutInflater) mContext.getSystemService(
74 MockResourceCursorAdapter adapter = new MockResourceCursorAdapter(mContext, -1, null);
79 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor);
84 adapter = new MockResourceCursorAdapter(mContext,
96 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext,
117 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext,
146 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext,
152 mResourceCursorAdapter = new MockResourceCursorAdapter(mContext,
    [all...]