/frameworks/base/core/tests/coretests/src/android/app/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/core/tests/coretests/src/android/content/ |
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 | MemoryFileProviderTest.java | 36 ContentResolver resolver = getContext().getContentResolver(); 51 ContentResolver resolver = getContext().getContentResolver(); 70 ContentResolver resolver = getContext().getContentResolver();
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListItemFocusablesFarApart.java | 42 position, parent.getContext(), desiredHeight);
|
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 | 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 | ListButtonsDiagonalAcrossItems.java | 55 parent.getContext(), desiredHeight, slot);
|
H A D | ListInterleaveFocusables.java | 46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
|
/frameworks/base/core/tests/coretests/src/android/text/util/ |
H A D | LinkifyTest.java | 35 tv = new TextView(getContext()); 46 tv = new TextView(getContext()); 58 tv = new TextView(getContext());
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ProviderTestCase2.java | 52 return getContext().getResources(); 59 return getContext().getDir("mockcontext2_" + name, mode); 85 getContext(), // The context that file methods are delegated to
|
H A D | ApplicationTestCase.java | 91 mSystemContext = getContext(); 100 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());
|
/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/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ |
H A D | ExternalSharedPermsFLTest.java | 33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | EntropyServiceTest.java | 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE);
|
/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/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerProvider.java | 81 mOpenHelper = new DatabaseHelper(getContext()); 89 getContext().getContentResolver().notifyChange(uri, null); 104 getContext().getContentResolver().notifyChange(addedUri, null); 117 getContext().getContentResolver().notifyChange(uri, null);
|
/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);
|
H A D | LockScreen.java | 231 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); 278 mTimeFormat = DateFormat.getTimeFormat(getContext()); 279 mDateFormatString = getContext().getString(R.string.full_wday_month_day_no_year); 301 getContext().getContentResolver(), 314 getContext().getString(R.string.global_action_silent_mode_on_status) : 315 getContext().getString(R.string.global_action_silent_mode_off_status); 322 ? getContext().getResources().getColor(R.color.keyguard_text_color_soundoff) 323 : getContext().getResources().getColor(R.color.keyguard_text_color_soundon); 386 mAlarmIcon = getContext().getResources().getDrawable(R.drawable.ic_lock_idle_alarm); 411 getContext() [all...] |
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
H A D | ExternalSharedPermsTest.java | 38 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
|