Searched refs:getContext (Results 1 - 25 of 186) sorted by relevance

12345678

/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/
H A DServiceTest.java201 getContext().startService(new Intent(service).putExtras(bundle));
205 getContext().startService(new Intent(service).putExtras(bundle));
211 getContext().stopService(service);
219 getContext().stopService(service);
225 getContext().startService(service);
239 getContext().bindService(service, conn, 0);
240 getContext().startService(service);
244 getContext().bindService(service, conn2, 0);
247 getContext().unbindService(conn2);
252 getContext()
[all...]
H A DSubActivityTest.java26 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
32 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
38 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
45 new ComponentName(getContext(), RemoteSubActivityScreen.class));
52 new ComponentName(getContext(), RemoteSubActivityScreen.class));
59 new ComponentName(getContext(), RemoteSubActivityScreen.class));
65 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
72 new ComponentName(getContext(), RemoteSubActivityScreen.class));
80 new ComponentName(getContext(), RemoteSubActivityScreen.class));
87 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScree
[all...]
H A DLaunchTest.java26 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class));
32 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class));
38 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class));
44 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class));
63 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
69 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
H A DIntentSenderTest.java33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0,
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0,
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
H A DBroadcastTest.java179 getContext().registerReceiver(mReceiver, filter, permission, null);
191 getContext().unregisterReceiver(mReceiver);
278 getContext().sendOrderedBroadcast(
312 Intent sticky = getContext().registerReceiver(null, filter);
327 Intent sticky = getContext().registerReceiver(null, filter);
341 Intent sticky = getContext().registerReceiver(null, filter);
373 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED));
388 getContext().sendOrderedBroadcast(
398 getContext().sendBroadcast(
415 getContext()
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
H A DBrickDeniedTest.java30 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE"));
31 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
H A DSSLClientSessionCacheFactoryTest.java19 setSslSessionCacheValue(getContext(), "");
34 Context context = getContext();
41 Context context = getContext();
50 Context context = getContext();
H A DLinkifyTest.java37 tv = new TextView(getContext());
48 tv = new TextView(getContext());
60 tv = new TextView(getContext());
H A DDbSSLSessionCacheTest.java67 DbSSLSessionCache cache = DbSSLSessionCache.getInstanceForPackage(getContext());
74 SQLiteOpenHelper helper = new DatabaseHelper(getContext());
91 DatabaseHelper helper = new DatabaseHelper(getContext());
136 GoogleHttpClient client = new GoogleHttpClient(getContext(), "Test",
/frameworks/base/tests/FrameworkTest/src/com/android/frameworktest/listview/
H A DListHeterogeneous.java44 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
H A DListItemFocusableAboveUnfocusable.java43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
H A DListItemFocusablesClose.java52 position, parent.getContext(), desiredHeight);
H A DListItemFocusablesFarApart.java42 position, parent.getContext(), desiredHeight);
H A DAdjacentListsWithAdjacentISVsInside.java90 final LinearLayout ll = new LinearLayout(views[0].getContext());
123 parent.getContext(), 5, "isv left");
126 parent.getContext(), 5, "isv right");
H A DListInterleaveFocusables.java46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
/frameworks/base/core/java/android/webkit/
H A DFrameLoader.java101 mListener.getContext().getString(
108 mListener.getContext().getString(
112 mNetwork = Network.getInstance(mListener.getContext());
122 mListener.getContext().getText(
137 loadListener.getContext().getString(
144 FileLoader.requestUrl(url, loadListener, loadListener.getContext(),
148 FileLoader.requestUrl(url, loadListener, loadListener.getContext(),
155 loadListener.getContext());
204 mListener.error(error, mListener.getContext().getText(
254 mListener.error(err, mListener.getContext()
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/content/
H A DMemoryFileProviderTest.java36 ContentResolver resolver = getContext().getContentResolver();
51 ContentResolver resolver = getContext().getContentResolver();
70 ContentResolver resolver = getContext().getContentResolver();
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java54 public Context getContext() { method in class:AndroidTestCase
96 getContext().startActivity(intent);
115 getContext().getContentResolver().query(uri, null, null, null, null);
134 getContext().getContentResolver().insert(uri, new ContentValues());
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccSmsInterfaceManager.java41 mContext = phone.getContext();
78 mPhone.getContext().enforceCallingPermission(
115 mPhone.getContext().enforceCallingPermission(
153 mPhone.getContext().enforceCallingPermission(
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DSettingsPermissionsTests.java35 mContentResolver = getContext().getContentResolver();
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DKeyguardViewBase.java149 mTelephonyManager = (TelephonyManager) getContext().getSystemService(
164 getContext().sendOrderedBroadcast(intent, null);
172 mAudioManager = (AudioManager) getContext().getSystemService(
201 getContext().sendOrderedBroadcast(intent, null);
/frameworks/base/test-runner/android/test/
H A DApplicationTestCase.java91 mSystemContext = getContext();
100 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());
/frameworks/base/tests/CoreTests/android/location/
H A DLocationManagerProximityTest.java65 if (Settings.Secure.getInt(getContext().getContentResolver(),
71 mLocationManager = (LocationManager) getContext().
97 getContext().unregisterReceiver(mIntentReceiver);
151 mPendingIntent = PendingIntent.getBroadcast(getContext(), 0,
158 getContext().registerReceiver(mIntentReceiver,
/frameworks/base/tests/CoreTests/android/content/
H A DSyncStorageEngineTest.java38 new TestContext(mockResolver, getContext()));
/frameworks/base/core/java/android/widget/
H A DDigitalClock.java69 getContext().getContentResolver().registerContentObserver(
108 return android.text.format.DateFormat.is24HourFormat(getContext());

Completed in 316 milliseconds

12345678