/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 | 56 if (!Utils.hasTvInputFramework(getContext())) { 60 (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE); 68 mPackageManager = getContext().getPackageManager(); 72 if (!Utils.hasTvInputFramework(getContext())) { 83 new ComponentName(getContext(), StubTunerTvInputService.class); 88 assertEquals(getContext().getPackageManager().getServiceInfo(componentName, 0).name, 105 TvInputInfoTest.compareTvInputInfos(getContext(), mStubInfo, infoFromParcel)); 112 assertEquals(mStubInfo.loadIcon(getContext()).getConstantState(), 113 infoFromParcel.loadIcon(getContext()).getConstantState()); 114 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...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/ |
UsePermissionTest22.java | 47 final Context context = getInstrumentation().getContext(); 64 assertMediaReadWriteAccess(getInstrumentation().getContext().getContentResolver()); 75 final Context context = getInstrumentation().getContext(); 94 assertMediaNoAccess(getInstrumentation().getContext().getContentResolver(), true); 98 "/Android/data/" + getInstrumentation().getContext().getPackageName())); 103 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 105 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 108 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 110 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() 112 assertEquals(PackageManager.PERMISSION_GRANTED, getInstrumentation().getContext() [all...] |
/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...] |
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
UtilsTest_GetDurationString.java | 80 assertEquals("3:00 AM", Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 83 assertEquals("03:00", Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 90 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, DATE_THIS_YEAR_2_1_MS, 94 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, DATE_THIS_YEAR_2_1_MS, 101 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 105 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 109 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 113 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 120 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS, 124 Utils.getDurationString(getContext(), DATE_THIS_YEAR_2_1_MS [all...] |
/external/chromium-trace/catapult/experimental/heatmap/ |
heatmap.js | 3 this.context = this.canvas.getContext('2d');
|
/external/valgrind/none/tests/solaris/ |
context_link2.c | 13 getcontext(&uc2); 23 if (getcontext(&uc)) { 24 perror("getcontext"); 43 getcontext(&uc);
|
/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...] |
/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()));
|
/external/llvm/test/CodeGen/CPP/ |
gep.ll | 5 ; CHECK: ConstantInt* [[INT_1:.*]] = ConstantInt::get(mod->getContext(), APInt(32, StringRef("1"), 10)); 6 ; CHECK: GetElementPtrInst::Create(IntegerType::get(mod->getContext(), 32), ptr_addr,
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
BackgroundDataCondition.java | 33 setActive(NetworkPolicyManager.from(mManager.getContext()).getRestrictBackground()); 38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_data_saver); 43 return mManager.getContext().getString(R.string.condition_bg_data_title); 48 return mManager.getContext().getString(R.string.condition_bg_data_summary); 53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; 58 mManager.getContext().startActivity(new Intent(mManager.getContext(), 70 NetworkPolicyManager.from(mManager.getContext()).setRestrictBackground(false);
|
BatterySaverCondition.java | 32 PowerManager powerManager = mManager.getContext().getSystemService(PowerManager.class); 38 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_settings_battery); 43 return mManager.getContext().getString(R.string.condition_battery_title); 48 return mManager.getContext().getString(R.string.condition_battery_summary); 53 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; 58 Utils.startWithFragment(mManager.getContext(), BatterySaverSettings.class.getName(), null, 65 mManager.getContext().getSystemService(PowerManager.class).setPowerSaveMode(false);
|
CellularDataCondition.java | 32 ConnectivityManager connectivity = mManager.getContext().getSystemService( 34 TelephonyManager telephony = mManager.getContext().getSystemService(TelephonyManager.class); 50 return Icon.createWithResource(mManager.getContext(), R.drawable.ic_cellular_off); 55 return mManager.getContext().getString(R.string.condition_cellular_title); 60 return mManager.getContext().getString(R.string.condition_cellular_summary); 65 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_on) }; 70 mManager.getContext().startActivity(new Intent(mManager.getContext(), 77 TelephonyManager telephony = mManager.getContext().getSystemService(
|
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ |
ContactsPreferencesFactoryTest.java | 31 if (!UserManagerCompat.isUserUnlocked(getContext())) { 34 assertNotNull(ContactsPreferencesFactory.newContactsPreferences(getContext())); 38 if (UserManagerCompat.isUserUnlocked(getContext())) { 41 assertNull(ContactsPreferencesFactory.newContactsPreferences(getContext())); 48 assertSame(testInstance, ContactsPreferencesFactory.newContactsPreferences(getContext())); 49 assertSame(testInstance, ContactsPreferencesFactory.newContactsPreferences(getContext()));
|
/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...] |
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
EditorUiUtilsTest.java | 71 final Pair pair = EditorUiUtils.getLocalAccountInfo(getContext(), 76 assertEquals(getContext().getString(R.string.external_profile_title, DISPLAY_LABEL), 81 final Pair pair = EditorUiUtils.getLocalAccountInfo(getContext(), 86 assertEquals(getContext().getString(R.string.local_profile_title), 91 final Pair pair = EditorUiUtils.getAccountInfo(getContext(), 95 assertEquals(getContext().getString(R.string.from_account_format, ACCOUNT_NAME), 97 assertEquals(getContext().getString(R.string.account_type_format, DISPLAY_LABEL), 104 final Pair pair = EditorUiUtils.getAccountInfo(getContext(), 108 assertEquals(getContext().getString(R.string.from_account_format, GOOGLE_ACCOUNT_NAME), 111 getContext().getString(R.string.google_account_type_format, GOOGLE_DISPLAY_LABEL) [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/tests/app/src/android/app/cts/ |
LaunchTest.java | 31 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); 37 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); 46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); 51 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); 56 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); 61 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class));
|