/frameworks/base/core/tests/coretests/src/android/content/ |
BrickDeniedTest.java | 29 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); 30 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
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().stopService(service) [all...] |
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(), SubActivityScreen.class)) [all...] |
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));
|
/cts/tests/appsecurity-tests/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
CreatePrivateDataTest.java | 43 FileOutputStream outputStream = getContext().openFileOutput(PRIVATE_FILE_NAME, 47 assertTrue(getContext().getFileStreamPath(PRIVATE_FILE_NAME).exists()); 55 assertFalse(getContext().getFileStreamPath(PRIVATE_FILE_NAME).exists());
|
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_PhonesTest.java | 37 String display = Phones.getDisplayLabel(getContext(), 41 CharSequence[] labels = getContext().getResources().getTextArray( 43 display = Phones.getDisplayLabel(getContext(), 47 display = Phones.getDisplayLabel(getContext(), 51 display = Phones.getDisplayLabel(getContext(), 55 display = Phones.getDisplayLabel(getContext(), 59 display = Phones.getDisplayLabel(getContext(), 63 display = Phones.getDisplayLabel(getContext(), 67 display = Phones.getDisplayLabel(getContext(), 90 String display = Phones.getDisplayLabel(getContext(), [all...] |
Contacts_OrganizationsTest.java | 37 String display = Organizations.getDisplayLabel(getContext(), 41 CharSequence[] labels = getContext().getResources().getTextArray( 43 display = Organizations.getDisplayLabel(getContext(), 47 display = Organizations.getDisplayLabel(getContext(),
|
Contacts_ContactMethodsTest.java | 96 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 100 CharSequence[] labels = getContext().getResources().getTextArray( 102 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 106 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 110 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 114 String untitled = getContext().getString(R.string.untitled); 115 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_IM, 119 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_ORGANIZATION, 123 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_PHONE, 127 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_POSTAL [all...] |
/cts/tests/appsecurity-tests/test-apps/InstrumentationAppDiffCert/src/com/android/cts/instrumentationdiffcertapp/ |
InstrumentationFailToRunTest.java | 31 Context myContext = getInstrumentation().getContext(); 37 getInstrumentation().getContext().startInstrumentation(appDiffCertInstrumentation,
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ViewSwitcherTest.java | 69 new ViewSwitcher(getContext()); 71 new ViewSwitcher(getContext(), null); 73 XmlPullParser parser = getContext().getResources().getXml(R.layout.viewswitcher_layout); 75 new ViewSwitcher(getContext(), attrs); 85 mViewSwitcher = new ViewSwitcher(getContext()); 99 mViewSwitcher = new ViewSwitcher(getContext()); 101 ListView lv1 = new ListView(getContext()); 102 ListView lv2 = new ListView(getContext()); 128 mViewSwitcher = new ViewSwitcher(getContext()); 130 ListView lv1 = new ListView(getContext()); [all...] |
ImageSwitcherTest.java | 67 new ImageSwitcher(getContext()); 69 new ImageSwitcher(getContext(), null); 71 XmlPullParser parser = getContext().getResources().getXml(R.layout.imageswitcher_test); 74 new ImageSwitcher(getContext(), attrs); 85 ImageSwitcher imageSwitcher = new ImageSwitcher(getContext()); 86 ImageView iv = new ImageView(getContext()); 88 ImageView iv1 = new ImageView(getContext()); 94 Resources resources = getContext().getResources(); 121 ImageSwitcher imageSwitcher = new ImageSwitcher(getContext()); 122 ImageView iv = new ImageView(getContext()); [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 35 Store.StoreInfo info = Store.StoreInfo.getStoreInfo(storeUri, getContext()); 45 Store store = Store.getInstance(storeUri, getContext(), null); 53 Store.StoreInfo info = Store.StoreInfo.getStoreInfo(storeUri, getContext()); 63 Store store = Store.getInstance(storeUri, getContext(), null); 72 Store.StoreInfo info = Store.StoreInfo.getStoreInfo(storeUri, getContext()); 81 Store store = Store.getInstance(storeUri, getContext(), null); 84 Store store = Store.getInstance(storeUri, getContext(), null); 97 Store.StoreInfo info = Store.StoreInfo.getStoreInfo(storeUri, getContext()); 101 Store store = Store.getInstance(storeUri, getContext(), null);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmPreference.java | 45 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), 54 final Ringtone r = RingtoneManager.getRingtone(getContext(), alert); 56 setSummary(r.getTitle(getContext()));
|
/external/webkit/WebCore/html/ |
HTMLCanvasElement.idl | 40 [Custom] DOMObject getContext(in DOMString contextId);
|
/packages/apps/Email/tests/src/com/android/email/ |
VendorPolicyLoaderTest.java | 31 mTestApkPackageName = getContext().getPackageName() + ".tests"; 44 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), "no.such.package", 52 final Context c = getContext(); 63 MockVendorPolicy.inject(getContext()); 64 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext()); 91 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), mTestApkPackageName, 112 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext()); 144 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PhotoPriorityResolverTest.java | 35 PhotoPriorityResolver resolver = new PhotoPriorityResolver(getContext());
|
/cts/tests/appsecurity-tests/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
AccessPermissionWithDiffSigTest.java | 49 getContext().getContentResolver().query(uri, null, null, null, null); 58 getContext().getContentResolver().insert(uri, new ContentValues()); 105 grantIntent.setClass(getContext(), ReceiveUriActivity.class); 108 getContext().startActivity(grantIntent); 156 grantIntent.setClass(getContext(), ReceiveUriService.class); 158 getContext().startService(grantIntent); 274 grantIntent.setClass(getContext(), 281 getContext().sendOrderedBroadcast(intent, null, receiver, null, 0, null, null); 330 grantIntent.setClass(getContext(), 336 getContext().sendBroadcast(intent) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
AppsCorpus.java | 47 return getContext().getText(R.string.corpus_label_apps); 52 return getContext().getText(R.string.corpus_hint_apps); 57 return getContext().getResources().getDrawable(R.drawable.corpus_icon_apps); 62 return Util.getResourceUri(getContext(), R.drawable.corpus_icon_apps); 72 return getContext().getText(R.string.corpus_description_apps); 93 ComponentName name = getComponentName(getContext(), R.string.apps_search_activity); 97 ActivityInfo ai = intent.resolveActivityInfo(getContext().getPackageManager(), 0);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSource.java | 82 return getContext().getString(R.string.google_search_hint); 87 return getContext().getPackageName(); 91 return getContext().getString(R.string.google_search_label); 103 return getContext().getString(R.string.google_search_description); 107 return getContext().getResources().getDrawable(getSourceIconResource()); 111 return Uri.parse("android.resource://" + getContext().getPackageName() 132 return QsbApplication.get(getContext()).getVersionCode();
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewDebugTest.java | 64 View ownerView = new View(getContext()); 65 View view = new View(getContext()); 102 View v1 = new View(getContext()); 103 View v2 = new View(getContext()); 112 ViewDebug.dumpCapturedView("TAG", new TextView(getContext()));
|
/libcore/luni/src/test/java/libcore/java/security/ |
AccessControllerTest.java | 51 assertSame(union, AccessController.getContext().getDomainCombiner()); 57 assertNull(AccessController.getContext().getDomainCombiner()); 66 assertSame(union, AccessController.getContext().getDomainCombiner()); 79 AccessController.getContext().checkPermission(permission); 82 AccessController.getContext().checkPermission(permission);
|
/cts/tests/tests/os/src/android/os/cts/ |
BinderTest.java | 231 getContext().bindService(mService, conn1, 0); 232 getContext().startService(mService); 236 getContext().bindService(mService, conn2, 0); 239 getContext().unbindService(conn2); 244 getContext().stopService(mService); 245 getContext().unbindService(conn1); 246 getContext().unbindService(conn2); 255 getContext().stopService(mService); 258 getContext().unbindService(conn1); 267 getContext().bindService(mService, conn1, 0) [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
AliasActivityTest.java | 48 intent.setClass(getContext(), AliasActivityStub.class); 53 getContext().startActivity(intent);
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/ |
LocalServiceTest.java | 66 startIntent.setClass(getContext(), LocalService.class); 76 startIntent.setClass(getContext(), LocalService.class);
|
/packages/apps/Email/tests/src/com/android/exchange/ |
CalendarSyncEnablerTest.java | 55 for (Account account : AccountManager.get(getContext()).getAccounts()) { 87 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext()); 105 enabler = new CalendarSyncEnabler(getContext()); 154 for (Account account : AccountManager.get(getContext()).getAccounts()) { 174 if (AccountManager.get(getContext()).getAccountsByType(EAT).length > 0) { 179 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext()); 190 CalendarSyncEnabler enabler = new CalendarSyncEnabler(getContext()); 196 ((NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE))
|