/packages/apps/Browser/src/com/android/browser/ |
AccountsChangedReceiver.java | 47 Context mContext; 49 mContext = context.getApplicationContext(); 54 Account[] accounts = AccountManager.get(mContext).getAccounts(); 55 ContentResolver cr = mContext.getContentResolver();
|
CrashRecoveryHandler.java | 58 private Context mContext; 80 mContext = mController.getActivity().getApplicationContext(); 95 File stateJournal = new File(mContext.getCacheDir(), 100 File stateFile = new File(mContext.getCacheDir(), 118 File state = new File(mContext.getCacheDir(), STATE_FILE); 165 SharedPreferences prefs = mContext.getSharedPreferences( 176 SharedPreferences prefs = mContext.getSharedPreferences( 191 File stateFile = new File(mContext.getCacheDir(), STATE_FILE);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CacheStorageUsageInfo.java | 43 private Context mContext; 48 mContext = activity.getAndroidContext(); 56 File cacheDir = mContext.getExternalCacheDir(); 58 cacheDir = mContext.getCacheDir();
|
DialogDetailsView.java | 49 private final GalleryActivity mContext; 58 mContext = activity; 90 mContext.getAndroidContext().getString(R.string.details_title), 92 ListView detailsList = (ListView) LayoutInflater.from(mContext.getAndroidContext()).inflate( 95 mDialog = new AlertDialog.Builder((Activity) mContext) 119 Context context = mContext.getAndroidContext(); 132 value = DetailsHelper.resolveAddress(mContext, latlng, this); 218 tv = (TextView) LayoutInflater.from(mContext.getAndroidContext()).inflate(
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsMessageSender.java | 36 protected final Context mContext; 57 mContext = context; 84 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); 94 Sms.addMessageToUri(mContext.getContentResolver(), 104 SqliteWrapper.checkSQLiteException(mContext, e); 108 mContext.sendBroadcast(new Intent(SmsReceiverService.ACTION_SEND_MESSAGE, 110 mContext, 132 cursor = SqliteWrapper.query(mContext, mContext.getContentResolver(),
|
/packages/apps/Phone/tests/src/com/android/phone/unit/ |
CnapTest.java | 34 private Context mContext; 43 mContext = getContext(); 70 * Shorthand for PhoneUtils.modifyForSpecialCnapCases(mContext, mCallerInfo, ...) 74 mContext, mCallerInfo, number, presentation);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
VoiceSearch.java | 37 private final Context mContext; 40 mContext = context; 44 return mContext; 61 ResolveInfo ri = mContext.getPackageManager().
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/ |
PreferenceControllerFactory.java | 34 private final Context mContext; 39 mContext = context; 44 return mContext; 51 Corpora corpora = QsbApplication.get(mContext).getCorpora();
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiApEnabler.java | 43 private final Context mContext; 76 mContext = context; 82 mCm = (ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE); 92 mContext.registerReceiver(mReceiver, mIntentFilter); 97 mContext.unregisterReceiver(mReceiver); 101 boolean isAirplaneMode = Settings.System.getInt(mContext.getContentResolver(), 112 final ContentResolver cr = mContext.getContentResolver(); 148 String s = mContext.getString( 151 mContext.getString(R.string.wifi_tether_enabled_subtext),
|
/packages/experimental/UiAutomation/library/src/com/android/testing/uiautomation/ |
UiTestHelper.java | 25 private Context mContext; 30 mContext = context; 67 mContext.startActivity(intent); 93 String appName = info.activityInfo.loadLabel(mContext.getPackageManager()).toString();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ProgressBarTest.java | 42 private Context mContext; 47 mContext = getInstrumentation().getTargetContext(); 68 new ProgressBar(mContext); 70 new ProgressBar(mContext, null); 72 new ProgressBar(mContext, null, android.R.attr.progressBarStyle); 88 ProgressBar progressBar = new ProgressBar(mContext); 98 progressBar = new ProgressBar(mContext, null, android.R.attr.progressBarStyleHorizontal); 121 ProgressBar progressBar = new ProgressBar(mContext); 150 ProgressBar progressBar = new ProgressBar(mContext, null, 180 ProgressBar progressBar = new ProgressBar(mContext, null [all...] |
RadioGroupTest.java | 64 private Context mContext; 69 mContext = getInstrumentation().getTargetContext(); 91 new RadioGroup(mContext); 94 new RadioGroup(mContext, attrs); 95 new RadioGroup(mContext, null); 133 mDefaultRadioGroup = new RadioGroup(mContext); 134 RadioButton newButton = new RadioButton(mContext); 151 mDefaultRadioGroup = new RadioGroup(mContext); 152 RadioButton newButton = new RadioButton(mContext); 355 mDefaultRadioGroup = new RadioGroup(mContext); [all...] |
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...] |
CursorTreeAdapterTest.java | 119 final LayoutInflater inflater = LayoutInflater.from(mContext); 160 new MockCursorTreeAdapter(mGroupCursor, mContext); 164 new MockCursorTreeAdapter(mGroupCursor, mContext, true); 176 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 193 CursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 210 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 225 CursorTreeAdapter adapter = new MockCursorTreeAdapter(null, mContext); 242 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 286 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); 317 MockCursorTreeAdapter adapter = new MockCursorTreeAdapter(mGroupCursor, mContext); [all...] |
ToggleButtonTest.java | 45 Context mContext; 52 mContext = getContext(); 53 XmlPullParser parser = mContext.getResources().getXml(R.layout.togglebutton_layout); 55 mToggleButton = new ToggleButton(mContext, mAttrSet); 81 new ToggleButton(mContext, mAttrSet, 0); 82 new ToggleButton(mContext, mAttrSet); 83 new ToggleButton(mContext); 140 MockToggleButton toggleButton = new MockToggleButton(mContext); 146 Resources resources = mContext.getResources(); 166 MockToggleButton toggleButton = new MockToggleButton(mContext); [all...] |
SimpleCursorAdapterTest.java | 70 private Context mContext; 103 mContext = getInstrumentation().getTargetContext(); 106 mSimpleCursorAdapter = new SimpleCursorAdapter(mContext, R.layout.cursoradapter_item0, 117 new SimpleCursorAdapter(mContext, R.layout.cursoradapter_item0, 132 TextView listItem = (TextView) mSimpleCursorAdapter.newView(mContext, null, null); 162 mSimpleCursorAdapter = new SimpleCursorAdapter(mContext, R.layout.cursoradapter_host, 164 LinearLayout illegalView = (LinearLayout)mSimpleCursorAdapter.newView(mContext, null, null); 207 TextView view = new TextView(mContext); 225 ImageView view = new ImageView(mContext); 229 BitmapDrawable d = (BitmapDrawable) mContext.getResources().getDrawable [all...] |
/packages/apps/Email/src/com/android/email/ |
NotificationController.java | 83 private final Context mContext; 119 mContext = context.getApplicationContext(); 123 mGenericSenderIcon = BitmapFactory.decodeResource(mContext.getResources(), 125 mGenericMultipleSenderIcon = BitmapFactory.decodeResource(mContext.getResources(), 174 mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); 178 Notification.Builder builder = new Notification.Builder(mContext) 243 ContentResolver resolver = mContext.getContentResolver(); 264 mAccountObserver = new AccountContentObserver(sNotificationHandler, mContext); 324 ContentResolver resolver = mContext.getContentResolver(); 341 Mailbox mailbox = Mailbox.restoreMailboxOfType(mContext, accountId, Mailbox.TYPE_INBOX) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupBrowseListFragment.java | 77 private Context mContext; 116 mAdapter = new GroupBrowseListAdapter(mContext); 147 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext)); 165 leftPadding = mContext.getResources().getDimensionPixelOffset( 168 rightPadding = mContext.getResources().getDimensionPixelOffset( 178 mContext = activity; 184 mContext = null; 202 return new GroupListLoader(mContext); 217 setAddAccountsVisibility(!ContactsUtils.areGroupWritableAccountsAvailable(mContext)); 273 if (mContext == null) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
InsetDrawableTest.java | 60 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 77 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 80 Resources r = mContext.getResources(); 114 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 128 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 150 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 172 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 193 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 211 Drawable d = mContext.getResources().getDrawable(R.drawable.pass); 258 Drawable d = mContext.getResources().getDrawable(R.drawable.pass) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
LayoutInflaterTest.java | 52 private Context mContext; 74 mContext = getContext(); 75 mLayoutInflater = (LayoutInflater) mContext 101 mLayoutInflater = LayoutInflater.from(mContext); 104 mLayoutInflater = new MockLayoutInflater(mContext); 108 mContext); 155 mLayoutInflater=new MockLayoutInflater(mContext); 156 assertSame(mContext, mLayoutInflater.getContext()); 163 ComponentName mComponentName = new ComponentName(mContext, 166 ai = mContext.getPackageManager().getActivityInfo(mComponentName [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
EriManager.java | 97 private Context mContext; 104 this.mContext = context; 159 Resources r = mContext.getResources(); 308 mContext.getText(com.android.internal.R.string.roamingText0).toString()); 315 mContext.getText(com.android.internal.R.string.roamingText1).toString()); 322 mContext.getText(com.android.internal.R.string.roamingText2).toString()); 331 mContext.getText(com.android.internal.R.string.roamingText3).toString()); 338 mContext.getText(com.android.internal.R.string.roamingText4).toString()); 345 mContext.getText(com.android.internal.R.string.roamingText5).toString()); 352 mContext.getText(com.android.internal.R.string.roamingText6).toString()) [all...] |
/frameworks/base/services/java/com/android/server/ |
NetworkManagementService.java | 111 private Context mContext; 142 mContext = context; 172 Settings.Secure.getInt(mContext.getContentResolver(), NETSTATS_ENABLED, 1) != 0; 343 mContext.enforceCallingOrSelfPermission( 355 mContext.enforceCallingOrSelfPermission(ACCESS_NETWORK_STATE, TAG); 410 mContext.enforceCallingOrSelfPermission(CHANGE_NETWORK_STATE, TAG); 428 mContext.enforceCallingOrSelfPermission(CHANGE_NETWORK_STATE, TAG); 440 mContext.enforceCallingOrSelfPermission(CHANGE_NETWORK_STATE, TAG); 453 mContext.enforceCallingOrSelfPermission(CHANGE_NETWORK_STATE, TAG); 469 mContext.enforceCallingOrSelfPermission(CHANGE_NETWORK_STATE, TAG) [all...] |
/cts/tests/tests/app/src/android/app/backup/cts/ |
BackupAgentHelperTest.java | 28 helper.addHelper("prefs", new SharedPreferencesBackupHelper(mContext)); 29 helper.addHelper("files", new FileBackupHelper(mContext));
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
ListMenuPresenter.java | 40 Context mContext; 65 mContext = context; 66 mInflater = LayoutInflater.from(mContext); 82 mContext = new ContextThemeWrapper(context, mThemeRes); 83 mInflater = LayoutInflater.from(mContext); 84 } else if (mContext != null) { 85 mContext = context; 87 mInflater = LayoutInflater.from(mContext);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppTransferAdapter.java | 58 private Context mContext; 62 mContext = context; 88 title = mContext.getString(R.string.unknown_file); 107 tv.setText(BluetoothOppUtility.getStatusDescription(mContext, status, deviceName)); 112 mContext, totalBytes)); 115 mContext, totalBytes)); 123 CharSequence str = DateUtils.isToday(time) ? DateFormat.getTimeFormat(mContext).format( 124 d) : DateFormat.getDateFormat(mContext).format(d);
|