/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/ |
H A D | ServiceTest.java | 201 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 D | SubActivityTest.java | 26 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 D | LaunchTest.java | 26 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 D | IntentSenderTest.java | 33 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 D | BroadcastTest.java | 179 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 D | BrickDeniedTest.java | 30 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); 31 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
|
H A D | SSLClientSessionCacheFactoryTest.java | 19 setSslSessionCacheValue(getContext(), ""); 34 Context context = getContext(); 41 Context context = getContext(); 50 Context context = getContext();
|
H A D | LinkifyTest.java | 37 tv = new TextView(getContext()); 48 tv = new TextView(getContext()); 60 tv = new TextView(getContext());
|
H A D | DbSSLSessionCacheTest.java | 67 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 D | ListHeterogeneous.java | 44 position, parent.getContext(), getValueAtPosition(position), desiredHeight); 47 position, parent.getContext(), getValueAtPosition(position), desiredHeight); 50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
|
H A D | ListItemFocusableAboveUnfocusable.java | 43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
|
H A D | ListItemFocusablesClose.java | 52 position, parent.getContext(), desiredHeight);
|
H A D | ListItemFocusablesFarApart.java | 42 position, parent.getContext(), desiredHeight);
|
H A D | AdjacentListsWithAdjacentISVsInside.java | 90 final LinearLayout ll = new LinearLayout(views[0].getContext()); 123 parent.getContext(), 5, "isv left"); 126 parent.getContext(), 5, "isv right");
|
H A D | ListInterleaveFocusables.java | 46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
|
/frameworks/base/core/java/android/webkit/ |
H A D | FrameLoader.java | 101 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 D | MemoryFileProviderTest.java | 36 ContentResolver resolver = getContext().getContentResolver(); 51 ContentResolver resolver = getContext().getContentResolver(); 70 ContentResolver resolver = getContext().getContentResolver();
|
/frameworks/base/core/java/android/test/ |
H A D | AndroidTestCase.java | 54 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 D | IccSmsInterfaceManager.java | 41 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 D | SettingsPermissionsTests.java | 35 mContentResolver = getContext().getContentResolver();
|
/frameworks/policies/base/phone/com/android/internal/policy/impl/ |
H A D | KeyguardViewBase.java | 149 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 D | ApplicationTestCase.java | 91 mSystemContext = getContext(); 100 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());
|
/frameworks/base/tests/CoreTests/android/location/ |
H A D | LocationManagerProximityTest.java | 65 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 D | SyncStorageEngineTest.java | 38 new TestContext(mockResolver, getContext()));
|
/frameworks/base/core/java/android/widget/ |
H A D | DigitalClock.java | 69 getContext().getContentResolver().registerContentObserver( 108 return android.text.format.DateFormat.is24HourFormat(getContext());
|