/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 39 private Context mContext; 45 return ResourceHelper.getInstance(mContext).getAccountColor(accountId); 52 VendorPolicyLoader.getInstance(mContext).useAlternateExchangeStrings()); 63 EmailServiceUtils.startRemoteServices(mContext); 65 MailActivityEmail.updateLoggingFlags(mContext); 67 return Device.getDeviceId(mContext); 76 if (mContext == null) { 77 mContext = this;
|
/cts/tests/tests/content/src/android/content/cts/ |
ContextTest.java | 37 private Context mContext; 42 mContext = getContext(); 43 mContext.setTheme(R.style.Test_Theme); 47 String testString = mContext.getString(R.string.context_test_string1); 50 testString = mContext.getString(R.string.context_test_string1, "expected"); 53 testString = mContext.getString(R.string.context_test_string2); 58 testString = mContext.getString(0, "expected"); 65 testString = mContext.getString(0); 72 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2); 77 testCharSequence = mContext.getText(0) [all...] |
MutableContextWrapperTest.java | 27 Context mContext; 33 mContext = getInstrumentation().getTargetContext(); 38 mMutableContextWrapper = new MutableContextWrapper(mContext); 44 mMutableContextWrapper = new MutableContextWrapper(mContext); 45 assertTrue(mContext.equals(mMutableContextWrapper.getBaseContext()));
|
/cts/tests/tests/view/src/android/view/cts/ |
OrientationEventListenerTest.java | 31 new MockOrientationEventListener(mContext); 33 new MockOrientationEventListener(mContext, SensorManager.SENSOR_DELAY_UI); 37 MockOrientationEventListener listener = new MockOrientationEventListener(mContext); 43 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE); 47 MockOrientationEventListener listener = new MockOrientationEventListener(mContext);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
CreateViewTest.java | 41 new CreateViewTest.ViewOne(mContext); 46 LinearLayout vert = new LinearLayout(mContext); 47 vert.addView(new CreateViewTest.ViewOne(mContext), 53 LinearLayout vert = new LinearLayout(mContext); 55 ViewOne one = new ViewOne(mContext); 58 ViewOne two = new ViewOne(mContext); 61 ViewOne three = new ViewOne(mContext); 64 ViewOne four = new ViewOne(mContext); 67 ViewOne five = new ViewOne(mContext); 70 ViewOne six = new ViewOne(mContext); [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
PrintSpoolerProvider.java | 28 private final Context mContext; 34 mContext = context; 36 Intent intent = new Intent(mContext, PrintSpoolerService.class); 37 mContext.bindService(intent, this, 0); 46 mContext.unbindService(this);
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/ |
InvalidationController.java | 35 private final Context mContext; 47 registerIntent.setClass(mContext, InvalidationService.class); 48 mContext.startService(registerIntent); 59 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); 76 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); 81 registerIntent.setClass(mContext, InvalidationService.class); 82 mContext.startService(registerIntent); 89 Intent intent = new Intent(mContext, InvalidationService.class); 90 mContext.startService(intent); 97 Intent intent = new Intent(mContext, InvalidationService.class) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
Config.java | 77 private final Context mContext; 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.getResources().getBoolean(R.bool.show_zero_query_suggestions) [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
FileCopyHelper.java | 38 private Context mContext; 49 mContext = context; 63 InputStream source = mContext.getResources().openRawResource(resId); 64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); 67 return mContext.getFileStreamPath(fileName).getAbsolutePath(); 71 InputStream source = mContext.getResources().openRawResource(resId); 97 mContext.deleteFile(path);
|
/cts/libs/deviceutil/src/android/cts/util/ |
FileCopyHelper.java | 38 private Context mContext; 49 mContext = context; 63 InputStream source = mContext.getResources().openRawResource(resId); 64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); 67 return mContext.getFileStreamPath(fileName).getAbsolutePath(); 71 InputStream source = mContext.getResources().openRawResource(resId); 97 mContext.deleteFile(path);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
UsageTracker.java | 31 private final Context mContext; 39 mContext = context; 41 mTimeToShowTile = MILLIS_PER_DAY * mContext.getResources() 49 mContext.registerReceiver(mReceiver, new IntentFilter(mResetAction)); 52 mContext.unregisterReceiver(mReceiver); 71 return mContext.getSharedPreferences(mContext.getPackageName(), 0);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
HapticFeedbackController.java | 23 private final Context mContext; 31 mContext = context; 35 mIsGloballyEnabled = checkGlobalSetting(mContext); 44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE); 47 mIsGloballyEnabled = checkGlobalSetting(mContext); 49 mContext.getContentResolver().registerContentObserver(uri, false, mContentObserver); 57 mContext.getContentResolver().unregisterContentObserver(mContentObserver);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/ |
SortOrderPreference.java | 33 private Context mContext; 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);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
RealSystemFacade.java | 29 private Context mContext; 32 mContext = context; 43 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 58 final ConnectivityManager conn = ConnectivityManager.from(mContext); 65 (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 82 return DownloadManager.getMaxBytesOverMobile(mContext); 87 return DownloadManager.getRecommendedMaxBytesOverMobile(mContext); 92 mContext.sendBroadcast(intent); 97 return mContext.getPackageManager().getApplicationInfo(packageName, 0).uid == uid;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
TestCase.java | 49 protected Context mContext; 69 mContext = context; 89 mListener.onTestFailed(mContext.getString(R.string.p2p_setup_error)); 102 mContext.getString(R.string.p2p_unexpected_error)); 145 mP2pMgr = (WifiP2pManager) mContext.getSystemService(Context.WIFI_P2P_SERVICE); 146 mWifiMgr = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 147 mChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null); 148 mSubChannel = mP2pMgr.initialize(mContext, mContext.getMainLooper(), null) [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
PendingIntentTest.java | 35 private Context mContext; 47 mContext = getContext(); 102 mIntent.setClass(mContext, PendingIntentStubActivity.class); 104 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 106 assertEquals(mContext.getPackageName(), mPendingIntent.getTargetPackage()); 116 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 120 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 142 mIntent.setClass(mContext, MockReceiver.class); 143 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent, 153 mPendingIntent = PendingIntent.getBroadcast(mContext, 1, mIntent [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
RingtoneTest.java | 30 private Context mContext; 41 mContext = getContext(); 42 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); 43 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI); 55 mDefaultRingUri = RingtoneManager.getActualDefaultRingtoneUri(mContext, 71 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, 78 assertNotNull(mRingtone.getTitle(mContext)); 90 RingtoneManager.setActualDefaultRingtoneUri(mContext, RingtoneManager.TYPE_RINGTONE, null); 91 mRingtone = RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_RINGTONE_URI); 96 Uri uri = RingtoneManager.getValidRingtoneUri(mContext); [all...] |
/packages/apps/Dialer/src/com/android/dialer/util/ |
EmptyLoader.java | 41 private final Context mContext; 44 mContext = context.getApplicationContext(); 49 return new EmptyLoader(mContext);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
AsyncRefreshTask.java | 25 private final Context mContext; 30 mContext = context; 37 mContext.getContentResolver().query(mRefreshUri, null, null, null, null);
|
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/personalization/ |
PersonalizationDictionaryUpdater.java | 26 final Context mContext; 32 mContext = context; 44 PersonalizationHelper.removeAllPersonalizationDictionaries(mContext);
|
/cts/tests/tests/text/src/android/text/cts/ |
ClipboardManagerTest.java | 30 private Context mContext; 34 mContext = getInstrumentation().getContext(); 40 (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE); 51 (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ButtonTest.java | 32 XmlPullParser parser = mContext.getResources().getXml(R.layout.togglebutton_layout); 35 new Button(mContext, attrs, 0); 36 new Button(mContext, attrs); 37 new Button(mContext);
|
CheckBoxTest.java | 31 XmlPullParser parser = mContext.getResources().getXml(R.layout.checkbox_layout); 34 new CheckBox(mContext, mAttrSet, 0); 35 new CheckBox(mContext, mAttrSet); 36 new CheckBox(mContext);
|
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
HttpUrlConnectionUrlRequestFactory.java | 17 private final Context mContext; 21 mContext = context.getApplicationContext(); 37 return new HttpUrlConnectionUrlRequest(mContext, url, requestPriority, 45 return new HttpUrlConnectionUrlRequest(mContext, url, requestPriority,
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
MetaDataTest.java | 59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), 88 TypedArray a = mContext.obtainStyledAttributes(xml, 99 ComponentName cn = new ComponentName(mContext, LocalActivity.class); 100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( 105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); 112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); 113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( 118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); 125 ComponentName cn = new ComponentName(mContext, LocalService.class); 126 ServiceInfo si = mContext.getPackageManager().getServiceInfo [all...] |