HomeSort by relevance Sort by last modified time
    Searched full:mcontext (Results 176 - 200 of 1171) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
AbstractSource.java 39 private final Context mContext;
47 mContext = context;
53 return mContext;
60 new PackageIconLoader(mContext, iconPackage, mUiThread, mIconLoaderExecutor));
104 return QsbApplication.get(mContext).getVoiceSearch()
  /packages/apps/Settings/src/com/android/settings/net/
UidDetailProvider.java 34 private final Context mContext;
38 mContext = context.getApplicationContext();
57 final Resources res = mContext.getResources();
58 final PackageManager pm = mContext.getPackageManager();
77 final ConnectivityManager cm = (ConnectivityManager) mContext.getSystemService(
  /cts/tests/tests/text/src/android/text/style/cts/
TextAppearanceSpanTest.java 61 new TextAppearanceSpan(mContext, 1);
62 new TextAppearanceSpan(mContext, 1, 1);
97 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
100 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
162 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
165 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
182 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
185 textAppearanceSpan = new TextAppearanceSpan(mContext, 1, 1);
250 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1);
260 TextAppearanceSpan textAppearanceSpan = new TextAppearanceSpan(mContext, 1)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
RatingBarTest.java 37 private Context mContext;
49 mContext = getInstrumentation().getContext();
73 new RatingBar(mContext, null, com.android.internal.R.attr.ratingBarStyle);
75 new RatingBar(mContext, null);
77 new RatingBar(mContext);
137 RatingBar ratingBar = new RatingBar(mContext);
161 MockRatingBar mockRatingBar = new MockRatingBar(mContext);
197 RatingBar ratingBar = new RatingBar(mContext);
219 RatingBar ratingBar = new RatingBar(mContext);
251 RatingBar ratingBar = new RatingBar(mContext);
    [all...]
ExpandableListViewTest.java 75 new ExpandableListView(mContext);
77 new ExpandableListView(mContext, null);
79 new ExpandableListView(mContext, null, 0);
84 new ExpandableListView(mContext, attrs);
85 new ExpandableListView(mContext, attrs, 0);
114 ExpandableListView expandableListView = new ExpandableListView(mContext);
115 Drawable drawable = mContext.getResources().getDrawable(R.drawable.scenery);
125 ExpandableListView expandableListView = new ExpandableListView(mContext);
140 ExpandableListView expandableListView = new ExpandableListView(mContext);
161 ExpandableListView expandableListView = new ExpandableListView(mContext);
    [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...]
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...]
  /frameworks/base/core/tests/coretests/src/android/widget/
SimpleCursorAdapterTest.java 42 Context mContext;
58 mContext = getContext();
89 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo);
100 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, mFrom, mTo);
111 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo);
130 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, mCursor2x2, mFrom, mTo);
149 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2,
175 SimpleCursorAdapter ca = new SimpleCursorAdapter(mContext, mLayout, null, null, null);
185 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, null, null, null);
208 TestSimpleCursorAdapter ca = new TestSimpleCursorAdapter(mContext, mLayout, mCursor2x2,
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/month/
MonthByWeekAdapter.java 76 mController = CalendarController.getInstance(mContext);
77 mHomeTimeZone = Utils.getTimeZone(mContext, null);
184 v = new MonthWeekEventsView(mContext);
190 v = new MonthWeekEventsView(mContext);
250 mFirstDayOfWeek = Utils.getFirstDayOfWeek(mContext);
251 mShowWeekNumber = Utils.getShowWeekNumber(mContext);
252 mHomeTimeZone = Utils.getTimeZone(mContext, null);
253 mOrientation = mContext.getResources().getConfiguration().orientation;
270 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1,
274 mController.sendEvent(mContext, EventType.GO_TO, day, day, -1
    [all...]
  /packages/apps/Email/src/com/android/email/widget/
EmailWidgetLoader.java 102 private final Context mContext;
107 mContext = context;
115 messagesCursor.setNotificationUri(mContext.getContentResolver(), Message.NOTIFIER_URI);
120 messageCount = EmailContent.count(mContext, Message.CONTENT_URI, selection,
126 Account account = Account.restoreAccountWithId(mContext, mAccountId);
132 int accountCount = EmailContent.count(mContext, Account.CONTENT_URI);
133 Resources res = mContext.getResources();
145 Mailbox mailbox = Mailbox.restoreMailboxWithId(mContext, mMailboxId);
154 mailboxName = mContext.getString(R.string.picker_mailbox_name_all_inbox);
156 mailboxName = mContext.getString(R.string.picker_mailbox_name_all_unread)
    [all...]
  /packages/apps/Mms/src/com/android/mms/transaction/
RetrieveTransaction.java 142 if (isDuplicateMessage(mContext, retrieveConf)) {
149 PduPersister persister = PduPersister.getPduPersister(mContext);
155 SqliteWrapper.update(mContext, mContext.getContentResolver(),
165 updateContentLocation(mContext, msgUri, mContentLocation, mLocked);
169 SqliteWrapper.delete(mContext, mContext.getContentResolver(),
175 Recycler.getMmsRecycler().deleteOldMessagesInSameThreadAsMessage(mContext, msgUri);
236 sendPdu(new PduComposer(mContext, acknowledgeInd).make(), mContentLocation);
238 sendPdu(new PduComposer(mContext, acknowledgeInd).make())
    [all...]
  /frameworks/base/core/java/android/server/
BluetoothA2dpService.java 60 private final Context mContext;
118 Intent i = mContext.registerReceiver(null, new IntentFilter(Intent.ACTION_DOCK_EVENT));
132 mContext = context;
151 mContext.registerReceiver(mReceiver, mIntentFilter);
258 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
266 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
333 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
360 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
377 mContext.enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM,
393 mContext.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission")
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java 53 private Context mContext;
67 mContext = instrumentation.getContext();
68 mPackageManager = mContext.getPackageManager();
75 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);
76 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
77 mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);
78 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
79 mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
175 mContext.startActivity(intent);
199 if (NfcAdapter.getDefaultAdapter(mContext) != null)
    [all...]
NotificationTest.java 37 private Context mContext;
48 mContext = getContext();
108 final PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
112 mContext, 0, deleteIntent, 0);
116 final RemoteViews contentView = new RemoteViews(mContext.getPackageName(),
200 final PendingIntent contentIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);
201 mNotification.setLatestEventInfo(mContext, CONTENT_TITLE, CONTENT_TEXT, contentIntent);
  /cts/tests/tests/content/src/android/content/cts/
SharedPreferencesTest.java 52 private Context mContext;
60 mContext = getContext();
61 mContextWrapper = new ContextWrapper(mContext);
74 return PreferenceManager.getDefaultSharedPreferences(mContext);
238 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE);
242 prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE);
279 SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE);
296 File prefsFile = mContext.getSharedPrefsFile(prefsName);
297 File prefsFileClone = mContext.getSharedPrefsFile(clonePrefsName);
312 SharedPreferences clonePrefs = mContext.getSharedPreferences
    [all...]
  /frameworks/base/core/java/android/widget/
ShareActionProvider.java 121 private final Context mContext;
139 mContext = context;
163 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
164 ActivityChooserView activityChooserView = new ActivityChooserView(mContext);
169 mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true);
170 Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId);
199 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName);
200 PackageManager packageManager = mContext.getPackageManager();
217 mContext.getString(R.string.activity_chooser_view_see_all));
266 ActivityChooserModel dataModel = ActivityChooserModel.get(mContext,
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 57 private final Context mContext;
61 mContext = context;
93 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account);
97 dirtyContacts = ContactManager.getDirtyContacts(mContext, account);
107 long newSyncState = ContactManager.updateContacts(mContext,
118 ContactManager.updateStatusMessages(mContext, updatedContacts);
125 ContactManager.clearSyncFlags(mContext, dirtyContacts);
  /development/samples/Support4Demos/src/com/example/android/supportv4/app/
FragmentTabsPager.java 88 private final Context mContext;
106 private final Context mContext;
109 mContext = context;
114 View v = new View(mContext);
123 mContext = activity;
132 tabSpec.setContent(new DummyTabFactory(mContext));
149 return Fragment.instantiate(mContext, info.clss.getName(), info.args);
  /frameworks/base/core/java/android/app/backup/
BackupManager.java 61 private Context mContext;
80 mContext = context;
93 sService.dataChanged(mContext.getPackageName());
146 IRestoreSession binder = sService.beginRestoreSession(mContext.getPackageName(),
148 session = new RestoreSession(mContext, binder);
149 result = session.restorePackage(mContext.getPackageName(), observer);
173 session = new RestoreSession(mContext, binder);
  /frameworks/base/core/tests/coretests/src/android/app/
SearchManagerTest.java 76 Context mContext;
90 mContext = testActivity;
115 mContext.getSystemService(Context.SEARCH_SERVICE);
118 mContext.getSystemService(Context.SEARCH_SERVICE);
129 mContext.getSystemService(Context.SEARCH_SERVICE);
143 mContext.getSystemService(Context.SEARCH_SERVICE);
158 mContext.getSystemService(Context.SEARCH_SERVICE);
  /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);
  /frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/
CallerInfoTest.java 39 private Context mContext;
48 mContext = new MockContext();
67 mInfo = CallerInfo.getCallerInfo(mContext, "911");
70 mInfo = CallerInfo.getCallerInfo(mContext, "tel:911");
75 mInfo = CallerInfo.getCallerInfo(mContext, "18001234567");
106 mInfo = CallerInfo.getCallerInfo(mContext, "911");
191 CallerInfoAsyncQuery.startQuery(kToken, mContext, mNumber, this, null);
  /packages/apps/Browser/src/com/android/browser/
AutofillHandler.java 42 private Context mContext;
45 mContext = context.getApplicationContext();
74 PreferenceManager.getDefaultSharedPreferences(mContext);
84 AutoFillProfileDatabase autoFillDb = AutoFillProfileDatabase.getInstance(mContext);
147 getDefaultSharedPreferences(mContext).edit();
180 mAutoFillProfileDb = AutoFillProfileDatabase.getInstance(mContext);
195 mAutoFillProfileDb = AutoFillProfileDatabase.getInstance(mContext);
DataController.java 43 private Context mContext;
73 mContext = c.getApplicationContext();
159 ContentResolver cr = mContext.getContentResolver();
187 ContentResolver cr = mContext.getContentResolver();
192 cursor = mContext.getContentResolver().query(
193 BookmarkUtils.getBookmarksUri(mContext),
211 ContentResolver cr = mContext.getContentResolver();
  /packages/apps/Email/tests/src/com/android/email/activity/setup/
AccountSettingsTests.java 48 private Context mContext;
64 mContext = getInstrumentation().getTargetContext();
74 mContext.getContentResolver().delete(uri, null, null);
160 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthRecv(mContext), storeUri);
161 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthSend(mContext), senderUri);
162 mAccount.save(mContext);
165 return AccountSettings.createAccountSettingsIntent(mContext, mAccountId, null);

Completed in 613 milliseconds

1 2 3 4 5 6 78 91011>>