/packages/apps/Mms/src/com/android/mms/util/ |
SmileyParser.java | 42 private final Context mContext; 48 mContext = context; 49 mSmileyTexts = mContext.getResources().getStringArray(DEFAULT_SMILEY_TEXTS); 179 builder.setSpan(new ImageSpan(mContext, resId),
|
/packages/apps/Nfc/src/com/android/nfc/ |
NativeNfcManager.java | 40 private final Context mContext; 47 mContext = context;
|
/packages/apps/Phone/src/com/android/phone/ |
BluetoothAtPhonebook.java | 75 private final Context mContext; 85 mContext = context; 98 Cursor cursor = mContext.getContentResolver().query(Calls.CONTENT_URI, projection, 238 Cursor c = mContext.getContentResolver().query( 272 name = mContext.getString(R.string.unknown); 280 name = mContext.getString(R.string.unknown); 367 pbr.cursor = mContext.getContentResolver().query( 382 pbr.cursor = mContext.getContentResolver().query(uri, PHONES_PROJECTION, where, null,
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
Config.java | 75 private final Context mContext; 83 mContext = context; 87 return mContext; 101 String[] corpora = mContext.getResources().getStringArray(res); 145 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard);
|
EventLogLogger.java | 33 private final Context mContext; 42 mContext = context; 44 mPackageName = mContext.getPackageName(); 49 return mContext;
|
QsbApplication.java | 48 private final Context mContext; 69 mContext = context; 81 return mContext;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatterySipper.java | 34 final Context mContext; 66 mContext = context; 73 icon = mContext.getResources().getDrawable(iconId); 109 PackageManager pm = mContext.getPackageManager(); 116 name = mContext.getResources().getString(R.string.process_kernel_label); 118 name = mContext.getResources().getString(R.string.process_mediaserver_label); 121 icon = mContext.getResources().getDrawable(iconId); 136 PackageManager pm = mContext.getPackageManager();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinIMEUtil.java | 89 private Context mContext; 103 sRingCharBuffer.mContext = context; 159 if (!((LatinIME)mContext).isWordSeparator(c)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/ |
VoiceInputLogger.java | 38 private final Context mContext; 62 mContext = context; 78 mContext.sendBroadcast(i); 85 mContext.sendBroadcast(newLoggingBroadcast( 91 mContext.sendBroadcast(newLoggingBroadcast( 97 mContext.sendBroadcast(newLoggingBroadcast( 103 mContext.sendBroadcast(newLoggingBroadcast( 109 mContext.sendBroadcast(newLoggingBroadcast( 115 mContext.sendBroadcast(newLoggingBroadcast( 121 mContext.sendBroadcast(newLoggingBroadcast [all...] |
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DownloadAdapter.java | 50 private Context mContext; 69 mContext = context; 71 mResources = mContext.getResources(); 88 DownloadItem view = (DownloadItem) LayoutInflater.from(mContext) 141 sizeText = Formatter.formatFileSize(mContext, totalBytes); 182 PackageManager pm = mContext.getPackageManager();
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityEndToEndTest.java | 448 private Context mContext; 471 mContext = context; 486 AccessibilityManager accessibilityManager = (AccessibilityManager) mContext 497 ActivityManager activityManager = (ActivityManager) mContext 511 PackageManager packageManager = mContext.getPackageManager(); 524 mContext.bindService(intent, this, Context.BIND_AUTO_CREATE);
|
/cts/tests/tests/location/src/android/location/cts/ |
LocationManagerTest.java | 63 private Context mContext; 72 mContext = getInstrumentation().getTargetContext(); 74 mManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); 77 if (Settings.Secure.getInt(mContext.getContentResolver(), 118 mContext.unregisterReceiver(mIntentReceiver); 227 return mContext.getPackageManager().hasSystemFeature( 575 PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, i, PendingIntent.FLAG_ONE_SHOT); 839 mPendingIntent = PendingIntent.getBroadcast(mContext, 0, proximityIntent, 842 mContext.registerReceiver(mIntentReceiver, mIntentReceiver.getFilter()); [all...] |
/frameworks/base/core/java/android/server/ |
BluetoothEventLoop.java | 54 private final Context mContext; 106 mContext = context; 169 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 186 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 197 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 237 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 256 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 270 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 307 mContext.sendBroadcast(intent, BLUETOOTH_PERM); 314 mContext.sendBroadcast(intent, BLUETOOTH_PERM) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
AgendaWindowAdapter.java | 112 private Context mContext; 263 mContext = agendaActivity; 364 TextView tv = new TextView(mContext); 451 Time time = new Time(Utils.getTimeZone(mContext, mUpdateTZ)); 459 Time time = new Time(Utils.getTimeZone(mContext, mUpdateTZ)); 627 Time time = new Time(Utils.getTimeZone(mContext, mUpdateTZ)); 629 Time time2 = new Time(Utils.getTimeZone(mContext, mUpdateTZ)); 643 Time time = new Time(Utils.getTimeZone(mContext, mUpdateTZ)); 646 return Utils.formatDateRange(mContext, millis, millis, 652 mHeaderView.setText(mContext.getString(R.string.show_older_events [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
ApplicationsState.java | 193 final Context mContext; 225 mContext.registerReceiver(this, filter); 230 mContext.registerReceiver(this, sdFilter); 334 mContext = app; 335 mPm = mContext.getPackageManager(); 471 entry.ensureLabel(mContext); 522 entry.ensureIconLocked(mContext, mPm); 618 entry = new AppEntry(mContext, info, mCurId++); 638 return Formatter.formatFileSize(mContext, size); 740 if (entry.ensureIconLocked(mContext, mPm)) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestListAdapter.java | 80 private final Context mContext; 122 this.mContext = context; 126 updateTestResults(mContext, mTestResults); 239 updateTestResults(mContext, mTestResults);
|
/cts/tests/tests/content/src/android/content/cts/ |
SharedPreferencesTest.java | 51 private Context mContext; 59 mContext = getContext(); 60 mContextWrapper = new ContextWrapper(mContext); 73 return PreferenceManager.getDefaultSharedPreferences(mContext); 237 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); 241 prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); 278 SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); 295 File prefsFile = mContext.getSharedPrefsFile(prefsName); 296 File prefsFileClone = mContext.getSharedPrefsFile(clonePrefsName); 311 SharedPreferences clonePrefs = mContext.getSharedPreferences [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
ComponentInfoTest.java | 104 PackageManager pm = mContext.getPackageManager(); 228 final PackageManager pm = mContext.getPackageManager(); 241 mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, 0); 245 assertEquals(mContext.getString(mComponentInfo.labelRes), mComponentInfo.loadLabel(pm));
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioManagerTest.java | 82 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 134 Settings.System.putInt(mContext.getContentResolver(), SOUND_EFFECTS_ENABLED, 1); 173 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); 588 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Images_MediaTest.java | 63 private Context mContext; 83 mContext = getInstrumentation().getTargetContext(); 84 mContentResolver = mContext.getContentResolver(); 86 mHelper = new FileCopyHelper(mContext); 203 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery);
|
/cts/tests/tests/view/src/android/view/cts/ |
SurfaceViewTest.java | 40 private Context mContext; 52 mContext = mInstrumentation.getContext(); 77 new SurfaceView(mContext); 78 new SurfaceView(mContext, null); 79 new SurfaceView(mContext, null, 0);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AbsSpinnerTest.java | 49 private Context mContext; 58 mContext = getInstrumentation().getTargetContext(); 86 new Spinner(mContext); 88 new Spinner(mContext, null); 90 new Spinner(mContext, null, com.android.internal.R.attr.spinnerStyle); 92 new Gallery(mContext); 93 new Gallery(mContext, null); 94 new Gallery(mContext, null, 0); 96 XmlPullParser parser = mContext.getResources().getXml(R.layout.gallery_test); 98 new Gallery(mContext, attrs) [all...] |
SimpleAdapterTest.java | 86 private Context mContext; 95 mContext = getInstrumentation().getTargetContext(); 96 mInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 101 mSimpleAdapter = new SimpleAdapter(mContext, 114 new SimpleAdapter(mContext, createTestList(DEFAULT_COLUMN_COUNT, DEFAULT_ROW_COUNT), 125 mSimpleAdapter = new SimpleAdapter(mContext, 130 mSimpleAdapter = new SimpleAdapter(mContext, createTestList(DEFAULT_COLUMN_COUNT, 10), 367 ImageView view = new ImageView(mContext); 370 BitmapDrawable d = (BitmapDrawable) mContext.getResources().getDrawable( 376 view = new ImageView(mContext); [all...] |
SimpleCursorTreeAdapterTest.java | 69 private Context mContext; 78 mContext = getInstrumentation().getTargetContext(); 109 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor, 113 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor, 117 new MockSimpleCursorTreeAdapter(mContext, mGroupCursor, 132 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor, 136 TextView view = new TextView(mContext); 156 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor, 159 TextView view = new TextView(mContext); 179 mSimpleCursorTreeAdapter = new MockSimpleCursorTreeAdapter(mContext, mGroupCursor [all...] |
TableRowTest.java | 49 Context mContext; 59 mContext = getInstrumentation().getContext(); 78 new TableRow(mContext); 80 new TableRow(mContext, null); 90 TableRow tableRow = new TableRow(mContext); 95 tableRow.addView(new TextView(mContext)); 103 tableRow.addView(new TextView(mContext)); 176 TableRow tableRow = new TableRow(mContext); 194 MockTableRow mockTableRow = new MockTableRow(mContext); 212 MockTableRow mockTableRow = new MockTableRow(mContext); [all...] |