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

1 23 4 5 6 7 8 91011>>

  /packages/apps/Calculator/src/com/android/calculator2/
Persist.java 33 private Context mContext;
39 this.mContext = context;
52 InputStream is = new BufferedInputStream(mContext.openFileInput(FILE_NAME), 8192);
71 OutputStream os = new BufferedOutputStream(mContext.openFileOutput(FILE_NAME, 0), 8192);
  /packages/apps/Contacts/tests/src/com/android/contacts/
ContactDetailTest.java 26 private ContactsMockContext mContext;
36 mContext = new ContactsMockContext(getInstrumentation().getTargetContext());
37 mContactsProvider = mContext.getContactsProvider();
38 setActivityContext(mContext);
  /packages/apps/Mms/src/com/android/mms/util/
DownloadManager.java 61 private final Context mContext;
112 mContext = context;
189 NotificationInd nInd = (NotificationInd) PduPersister.getPduPersister(mContext)
195 Toast.makeText(mContext, R.string.service_message_not_found,
199 SqliteWrapper.delete(mContext, mContext.getContentResolver(), uri, null, null);
212 Toast.makeText(mContext, getMessage(uri),
227 SqliteWrapper.update(mContext, mContext.getContentResolver(),
236 Toast.makeText(mContext, errStr, Toast.LENGTH_LONG).show()
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockIconLoader.java 34 private final Context mContext;
37 mContext = context;
45 mContext.getResources().getDrawable(android.R.drawable.star_on));
55 .authority(mContext.getPackageName())
  /cts/tests/tests/widget/src/android/widget/cts/
CursorAdapterTest.java 82 final LayoutInflater inflater = LayoutInflater.from(mContext);
113 new MockCursorAdapter(mContext, mCursor);
117 new MockCursorAdapter(mContext, mCursor, true);
138 cursorAdapter.init(mContext, null, false);
139 assertSame(mContext, cursorAdapter.getContext());
146 cursorAdapter.init(mContext, null, true);
147 assertSame(mContext, cursorAdapter.getContext());
154 cursorAdapter.init(mContext, mCursor, true);
155 assertSame(mContext, cursorAdapter.getContext());
179 CursorAdapter cursorAdapter = new MockCursorAdapter(mContext, null)
    [all...]
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...]
TableLayoutTest.java 49 private Context mContext;
58 mContext = getInstrumentation().getContext();
77 new TableLayout(mContext);
79 new TableLayout(mContext, null);
100 TableLayout tableLayout = new TableLayout(mContext);
105 tableLayout.addView(new TextView(mContext));
113 tableLayout.addView(new TextView(mContext));
126 TableLayout tableLayout = new TableLayout(mContext);
127 tableLayout.addView(new TextView(mContext));
128 tableLayout.addView(new ListView(mContext));
    [all...]
LinearLayoutTest.java 46 private Context mContext;
57 mContext = getInstrumentation().getTargetContext();
77 new LinearLayout(mContext);
79 new LinearLayout(mContext, null);
81 XmlPullParser parser = mContext.getResources().getXml(R.layout.linearlayout_layout);
83 new LinearLayout(mContext, attrs);
105 LinearLayout linearLayout = new LinearLayout(mContext);
133 LinearLayout linearLayout = new LinearLayout(mContext);
135 ListView lv1 = new ListView(mContext);
139 ListView lv2 = new ListView(mContext);
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
ImageSpanTest.java 112 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
121 new ImageSpan(mContext, Uri.parse("content://user/a/b"));
122 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
124 new ImageSpan(mContext, Uri.parse("content://user/a/b"),
127 new ImageSpan(mContext, R.drawable.pass);
128 new ImageSpan(mContext, R.drawable.pass, DynamicDrawableSpan.ALIGN_BOTTOM);
129 new ImageSpan(mContext, R.drawable.pass, DynamicDrawableSpan.ALIGN_BASELINE);
148 Drawable d = mContext.getResources().getDrawable(R.drawable.pass);
158 imageSpan = new ImageSpan(mContext, Uri.parse(source));
169 Drawable drawable = mContext.getResources().getDrawable(R.drawable.pass)
    [all...]
  /frameworks/base/services/java/com/android/server/usb/
UsbService.java 40 private final Context mContext;
47 mContext = context;
49 PackageManager pm = mContext.getPackageManager();
102 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
107 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
130 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
135 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
140 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
145 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null);
150 mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null)
    [all...]
  /packages/apps/Camera/src/com/android/camera/
CameraPreference.java 34 private final Context mContext;
43 mContext = context;
56 mSharedPreferences = ComboPreferences.get(mContext);
  /packages/apps/Contacts/tests/src/com/android/contacts/interactions/
PhoneNumberInteractionTest.java 73 private ContactsMockContext mContext;
79 mContext = new ContactsMockContext(getInstrumentation().getTargetContext());
80 mContactsProvider = mContext.getContactsProvider();
95 mContext, InteractionType.SMS, null);
100 Intent intent = mContext.getIntentForStartActivity();
113 mContext, InteractionType.SMS, null);
118 Intent intent = mContext.getIntentForStartActivity();
132 mContext, InteractionType.SMS, null);
137 Intent intent = mContext.getIntentForStartActivity();
171 mContext, InteractionType.PHONE_CALL, null)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
ResourceTexture.java 29 protected final Context mContext;
33 mContext = Utils.checkNotNull(context);
43 mContext.getResources(), mResId, options);
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
GalleryAppMock.java 30 Context mContext;
35 mContext = context;
45 public Context getAndroidContext() { return mContext; }
  /packages/apps/Phone/src/com/android/phone/
DataUsageListener.java 50 private final Context mContext;
62 mContext = context;
71 mContext = context;
80 mThrottleManager = (ThrottleManager) mContext.getSystemService(Context.THROTTLE_SERVICE);
109 mContext.registerReceiver(mReceiver, mFilter);
114 mContext.unregisterReceiver(mReceiver);
175 mCurrentUsagePref.setSummary(mContext.getString(
180 mCurrentUsagePref.setSummary(mContext.getString(
186 mTimeFramePref.setSummary(mContext.getString(R.string.throttle_time_frame_subtext,
191 mThrottleRatePref.setSummary(mContext.getString(R.string.throttle_rate_subtext
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
AbstractCorpus.java 27 private final Context mContext;
32 mContext = context;
37 return mContext;
  /packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
SoundManager.java 27 private Context mContext;
34 mContext = context;
40 mAudioManager = (AudioManager) mContext
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
CountryMonitor.java 33 private Context mContext;
36 mContext = context;
47 (CountryDetector) mContext.getSystemService(Context.COUNTRY_DETECTOR);
  /cts/tests/tests/app/src/android/app/cts/
DownloadManagerTest.java 52 mDownloadManager = (DownloadManager) mContext.getSystemService(Context.DOWNLOAD_SERVICE);
53 mWebServer = new CtsTestServer(mContext);
68 mContext.registerReceiver(receiver, intentFilter);
87 mContext.unregisterReceiver(receiver);
96 mContext.registerReceiver(receiver, intentFilter);
121 mContext.unregisterReceiver(receiver);
132 File uriLocation = new File(mContext.getExternalFilesDir(null), "uriFile.bin");
137 File extFileLocation = new File(mContext.getExternalFilesDir(null), "extFile.bin");
153 mContext.registerReceiver(receiver, intentFilter);
160 requestExtFile.setDestinationInExternalFilesDir(mContext, null, "extFile.bin")
    [all...]
  /frameworks/base/policy/src/com/android/internal/policy/impl/
PhoneFallbackEventHandler.java 38 Context mContext;
47 mContext = context;
105 mContext.sendOrderedBroadcast(intent, null);
123 mContext.startActivity(intent);
144 mContext.sendOrderedBroadcast(intent, null);
156 Configuration config = mContext.getResources().getConfiguration();
166 mContext.startActivity(intent);
197 AudioManager audioManager = (AudioManager)mContext.getSystemService(
220 mContext.sendOrderedBroadcast(intent, null);
252 mContext.startActivity(intent)
    [all...]
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadNotification.java 40 Context mContext;
98 mContext = ctx;
124 title = mContext.getResources().getString(
142 item.mPausedText = mContext.getResources().getString(
150 final Notification.Builder builder = new Notification.Builder(mContext);
163 title.append(mContext.getString(R.string.notification_filename_separator));
166 title.append(mContext.getString(R.string.notification_filename_extras,
182 buildPercentageLabel(mContext, item.mTotalTotal, item.mTotalCurrent));
193 builder.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0));
212 Notification.Builder builder = new Notification.Builder(mContext);
    [all...]
  /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/admin/src/android/admin/cts/
DeviceAdminReceiverTest.java 45 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_CHANGED));
49 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_FAILED));
53 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_PASSWORD_SUCCEEDED));
57 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED));
61 mReceiver.onReceive(mContext, new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_DISABLED));
  /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/view/src/android/view/cts/
OrientationEventListenerTest.java 49 new MockOrientationEventListener(mContext);
51 new MockOrientationEventListener(mContext, SensorManager.SENSOR_DELAY_UI);
76 MockOrientationEventListener listener = new MockOrientationEventListener(mContext);
87 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE);
91 MockOrientationEventListener listener = new MockOrientationEventListener(mContext);

Completed in 295 milliseconds

1 23 4 5 6 7 8 91011>>