/external/valgrind/memcheck/tests/linux/ |
stack_changes.stdout.exp2 | 0 getcontext() doesn't seem to work
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
TvInputInfoTest.java | 38 if (!Utils.hasTvInputFramework(getContext())) { 42 (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); 50 mPackageManager = getContext().getPackageManager(); 54 if (!Utils.hasTvInputFramework(getContext())) { 65 new ComponentName(getContext(), StubTunerTvInputService.class); 70 assertEquals(getContext().getPackageManager().getServiceInfo(componentName, 0).name, 93 assertEquals(mStubInfo.loadIcon(getContext()).getConstantState(), 94 infoFromParcel.loadIcon(getContext()).getConstantState()); 95 assertEquals(mStubInfo.loadLabel(getContext()), infoFromParcel.loadLabel(getContext())); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
ViewSwitcherTest.java | 47 new ViewSwitcher(getContext()); 49 new ViewSwitcher(getContext(), null); 51 XmlPullParser parser = getContext().getResources().getXml(R.layout.viewswitcher_layout); 53 new ViewSwitcher(getContext(), attrs); 57 mViewSwitcher = new ViewSwitcher(getContext()); 65 mViewSwitcher = new ViewSwitcher(getContext()); 67 ListView lv1 = new ListView(getContext()); 68 ListView lv2 = new ListView(getContext()); 80 mViewSwitcher = new ViewSwitcher(getContext()); 82 ListView lv1 = new ListView(getContext()); [all...] |
ImageSwitcherTest.java | 46 new ImageSwitcher(getContext()); 48 new ImageSwitcher(getContext(), null); 50 XmlPullParser parser = getContext().getResources().getXml(R.layout.imageswitcher_test); 53 new ImageSwitcher(getContext(), attrs); 58 ImageSwitcher imageSwitcher = new ImageSwitcher(getContext()); 59 ImageView iv = new ImageView(getContext()); 61 ImageView iv1 = new ImageView(getContext()); 67 Resources resources = getContext().getResources(); 88 ImageSwitcher imageSwitcher = new ImageSwitcher(getContext()); 89 ImageView iv = new ImageView(getContext()); [all...] |
ImageButtonTest.java | 31 XmlPullParser parser = getContext().getResources().getXml(R.layout.imagebutton_test); 35 new ImageButton(getContext()); 37 new ImageButton(getContext(), attrs); 39 new ImageButton(getContext(), attrs, 0);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_PhonesTest.java | 26 String display = Phones.getDisplayLabel(getContext(), 30 CharSequence[] labels = getContext().getResources().getTextArray( 32 display = Phones.getDisplayLabel(getContext(), 36 display = Phones.getDisplayLabel(getContext(), 40 display = Phones.getDisplayLabel(getContext(), 44 display = Phones.getDisplayLabel(getContext(), 48 display = Phones.getDisplayLabel(getContext(), 52 display = Phones.getDisplayLabel(getContext(), 56 display = Phones.getDisplayLabel(getContext(), 72 String display = Phones.getDisplayLabel(getContext(), [all...] |
Contacts_ContactMethodsTest.java | 56 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 60 CharSequence[] labels = getContext().getResources().getTextArray( 62 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 66 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 70 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, 74 String untitled = getContext().getString(R.string.untitled); 75 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_IM, 79 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_ORGANIZATION, 83 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_PHONE, 87 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_POSTAL [all...] |
Contacts_OrganizationsTest.java | 26 String display = Organizations.getDisplayLabel(getContext(), 30 CharSequence[] labels = getContext().getResources().getTextArray( 32 display = Organizations.getDisplayLabel(getContext(), 36 display = Organizations.getDisplayLabel(getContext(),
|
/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/tests/rscpp/src/android/cts/rscpp/ |
RSAllocationTest.java | 32 assertTrue(typedTest(this.getContext().getCacheDir().toString())); 37 assertTrue(test1DCopy(this.getContext().getCacheDir().toString())); 42 assertTrue(test2DCopy(this.getContext().getCacheDir().toString())); 47 assertTrue(test3DCopy(this.getContext().getCacheDir().toString())); 52 assertTrue(test1DCopyPadded(this.getContext().getCacheDir().toString())); 57 assertTrue(test2DCopyPadded(this.getContext().getCacheDir().toString())); 62 assertTrue(test3DCopyPadded(this.getContext().getCacheDir().toString())); 67 assertTrue(testSetElementAt(this.getContext().getCacheDir().toString()));
|
RSElementTest.java | 32 assertTrue(testCreatePixel(this.getContext().getCacheDir().toString())); 37 assertTrue(testCreateVector(this.getContext().getCacheDir().toString())); 42 assertTrue(testPrebuiltElements(this.getContext().getCacheDir().toString())); 47 assertTrue(testIsCompatible(this.getContext().getCacheDir().toString())); 52 assertTrue(testElementBuilder(this.getContext().getCacheDir().toString()));
|
RSObjectTest.java | 32 assertTrue(testClearObjectElement(this.getContext().getCacheDir().toString())); 37 assertTrue(testClearObjectType(this.getContext().getCacheDir().toString())); 42 assertTrue(testClearObjectAllocation(this.getContext().getCacheDir().toString())); 47 assertTrue(testClearObjectSampler(this.getContext().getCacheDir().toString())); 52 assertTrue(testClearObjectScript(this.getContext().getCacheDir().toString()));
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
ContactDisplayUtilTests.java | 46 "expected sms label", ContactDisplayUtils.INTERACTION_SMS, getContext()); 50 "expected call label", ContactDisplayUtils.INTERACTION_CALL, getContext()); 56 ContactDisplayUtils.INTERACTION_CALL, getContext()); 57 CharSequence expected = getContext().getResources().getText(R.string.call_home); 61 ContactDisplayUtils.INTERACTION_CALL, getContext()); 62 expected = getContext().getResources().getText(R.string.call_mobile); 68 ContactDisplayUtils.INTERACTION_SMS, getContext()); 69 CharSequence expected = getContext().getResources().getText(R.string.sms_home); 73 ContactDisplayUtils.INTERACTION_SMS, getContext()); 74 expected = getContext().getResources().getText(R.string.sms_mobile) [all...] |
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
HelpersTest.java | 36 IoUtils.deleteContents(getContext().getFilesDir()); 37 IoUtils.deleteContents(getContext().getCacheDir()); 43 final File expected = new File(getContext().getFilesDir(), "file.mp4"); 44 final String actual = Helpers.generateSaveFile(getContext(), 51 final File expected1 = new File(getContext().getFilesDir(), "file.txt"); 52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", 55 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt"); 56 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt", 64 final File expected = new File(getContext().getFilesDir(), "file.mp4"); 65 final String actual = Helpers.generateSaveFile(getContext(), [all...] |
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/ |
RandomRWTest.java | 28 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); 29 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); 36 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); 40 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, getReportLog(), fileSize, 49 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, getReportLog(), fileSize,
|
AlmostFullTest.java | 57 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); 73 FileUtil.createNewFilledFile(getContext(), 78 Log.i(TAG, "free disk " + SystemUtil.getFreeDiskSize(getContext())); 83 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); 87 FileUtil.removeFileOrDir(getContext(), DIR_INITIAL_FILL); 89 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); 90 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); 91 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); 92 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); 101 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
KeyPairGeneratorSpecTest.java | 43 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, 46 assertEquals("Context should be the one specified", getContext(), spec.getContext()); 62 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext()) 73 assertEquals("Context should be the one specified", getContext(), spec.getContext()); 101 new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, 110 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, 119 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, 128 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1 [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
ContactInteractionUtilTest.java | 71 calendar.getTimeInMillis(), getContext())); 80 getContext())); 86 assertEquals(getContext().getResources().getString(R.string.yesterday), 88 getContext())); 98 assertEquals(getContext().getResources().getString(R.string.yesterday), 100 getContext(), calendar)); 105 assertEquals(getContext().getResources().getString(R.string.tomorrow), 107 getContext())); 115 assertEquals(getContext().getResources().getString(R.string.tomorrow), 117 getContext(), calendar)) [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp/src/com/android/cts/usepermission/ |
UsePermissionTest.java | 50 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() 52 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() 56 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); 57 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver()); 63 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 65 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 69 assertDirReadWriteAccess(getInstrumentation().getContext().getExternalCacheDir()); 70 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); 77 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() 79 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
DemoModeFragment.java | 62 Context context = getContext(); 78 ContentResolver contentResolver = getContext().getContentResolver(); 99 MetricsLogger.visibility(getContext(), MetricsLogger.TUNER_DEMO_MODE, true); 105 MetricsLogger.visibility(getContext(), MetricsLogger.TUNER_DEMO_MODE, false); 110 getContext().getContentResolver().unregisterContentObserver(mDemoModeObserver); 115 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), 122 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), 136 MetricsLogger.action(getContext(), MetricsLogger.TUNER_DEMO_MODE_ENABLED, enabled); 139 MetricsLogger.action(getContext(), MetricsLogger.TUNER_DEMO_MODE_ON, enabled); 155 getContext().sendBroadcast(intent) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/base/ |
BaseActivity.java | 10 * either {@link #getContext} or {@link #getActivity} 14 public Context getContext() {
|
/cts/tests/tests/os/src/android/os/cts/ |
BinderTest.java | 210 getContext().bindService(mService, conn1, 0); 211 getContext().startService(mService); 215 getContext().bindService(mService, conn2, 0); 218 getContext().unbindService(conn2); 223 getContext().stopService(mService); 224 getContext().unbindService(conn1); 225 getContext().unbindService(conn2); 234 getContext().stopService(mService); 237 getContext().unbindService(conn1); 246 getContext().bindService(mService, conn1, 0) [all...] |
/packages/apps/Dialer/src/com/android/dialer/settings/ |
DefaultRingtonePreference.java | 52 if (!Settings.System.canWrite(getContext())) { 54 getContext(), 55 getContext().getResources().getString(R.string.toast_cannot_write_system_settings), 59 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri); 64 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
|