/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | 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/ |
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 | 28 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); 34 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); 40 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); 46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); 65 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); 71 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
|
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
H A D | FragmentUtil.java | 23 static Context getContext(Fragment fragment) { method in class:FragmentUtil 25 return fragment.getContext();
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | FragmentBase.java | 32 Context getContext(); method in interface:FragmentBase
|
H A D | PluginFragment.java | 33 return super.onGetLayoutInflater(savedInstanceState).cloneInContext(getContext()); 42 public Context getContext() { method in class:PluginFragment
|
/frameworks/support/tv-provider/src/androidTest/java/androidx/tvprovider/media/tv/ |
H A D | ChannelLogoUtilsTest.java | 19 import static android.support.test.InstrumentationRegistry.getContext; 57 mContentResolver = getContext().getContentResolver(); 72 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 73 Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), 76 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logo)); 80 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 85 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 87 Resources res = getContext().getResources(); 94 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logoUri)); 98 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelI [all...] |
/frameworks/support/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SampleSliceProvider.java | 109 return getUri("wifi", getContext()); 170 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, 172 return new ListBuilder(getContext(), sliceUri, INFINITY) 176 .addImage(IconCompat.createWithResource(getContext(), 182 .addImage(IconCompat.createWithResource(getContext(), 188 .addImage(IconCompat.createWithResource(getContext(), 194 .addImage(IconCompat.createWithResource(getContext(), 200 .addImage(IconCompat.createWithResource(getContext(), 211 IconCompat.createWithResource(getContext(), R.drawable.slices_1), 214 ListBuilder lb = new ListBuilder(getContext(), sliceUr [all...] |
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/ |
H A D | SampleSliceProvider.java | 109 return getUri("wifi", getContext()); 170 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, 172 return new ListBuilder(getContext(), sliceUri, INFINITY) 176 .addImage(IconCompat.createWithResource(getContext(), 182 .addImage(IconCompat.createWithResource(getContext(), 188 .addImage(IconCompat.createWithResource(getContext(), 194 .addImage(IconCompat.createWithResource(getContext(), 200 .addImage(IconCompat.createWithResource(getContext(), 211 IconCompat.createWithResource(getContext(), R.drawable.slices_1), 214 ListBuilder lb = new ListBuilder(getContext(), sliceUr [all...] |
/frameworks/base/tests/testables/src/android/testing/ |
H A D | ViewUtils.java | 36 view.getContext().getApplicationInfo().flags &= 42 view.getContext().getSystemService(WindowManager.class).addView(view, lp); 51 view.getContext().getSystemService(WindowManager.class).removeViewImmediate(view);
|
/frameworks/rs/cpp/ |
H A D | BaseObj.cpp | 46 if (mRS && mRS->getContext()) { 47 RS::dispatch->ObjDestroy(mRS->getContext(), mID); 55 RS::dispatch->GetName(mRS->getContext(), mID, &name);
|
H A D | Script.cpp | 25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); 35 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, nullptr, 0)); 43 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); 48 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID())); 52 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageHelperTests.java | 165 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", 171 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", 177 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", 183 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", 193 PackageHelper.resolveInstallVolume(getContext(), "package.name", 203 PackageHelper.resolveInstallVolume(getContext(), "package.name", 213 PackageHelper.resolveInstallVolume(getContext(), "package.name", 223 PackageHelper.resolveInstallVolume(getContext(), "package.name", 241 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", 247 volume = PackageHelper.resolveInstallVolume(getContext(), "packag [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoDialog.java | 39 RecyclerView view = new RecyclerView(getContext()); 40 mAdapter = new Adapter(getContext()); 41 view.setLayoutManager(new GridLayoutManager(getContext(), 2)); 50 PrefState prefs = new PrefState(getContext()); 53 NekoService.registerJob(getContext(), food.getInterval(getContext())); 55 MetricsLogger.histogram(getContext(), "egg_neko_offered_food", food.getType()); 76 return new Holder(LayoutInflater.from(parent.getContext())
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | DemoModeFragment.java | 61 Context context = getContext(); 77 ContentResolver contentResolver = getContext().getContentResolver(); 98 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_DEMO_MODE, true); 104 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_DEMO_MODE, false); 109 getContext().getContentResolver().unregisterContentObserver(mDemoModeObserver); 114 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), 121 boolean enabled = Settings.Global.getInt(getContext().getContentResolver(), 135 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ENABLED, enabled); 138 MetricsLogger.action(getContext(), MetricsEvent.TUNER_DEMO_MODE_ON, enabled); 154 getContext() [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | EntropyMixerTest.java | 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE); 37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null");
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationIntrusivenessExtractorTest.java | 44 final Notification.Builder builder = new Notification.Builder(getContext()) 51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 59 final Notification.Builder builder = new Notification.Builder(getContext()) 62 getContext(), 0, new Intent(""), 0), true) 69 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 77 final Notification.Builder builder = new Notification.Builder(getContext()) 80 getContext(), 0, new Intent(""), 0), true) 88 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | GlobalSortKeyComparatorTest.java | 50 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 52 NotificationRecord left = new NotificationRecord(getContext(), 59 NotificationRecord right = new NotificationRecord(getContext(), 66 NotificationRecord last = new NotificationRecord(getContext(), 89 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 91 NotificationRecord left = new NotificationRecord(getContext(), 97 NotificationRecord right = new NotificationRecord(getContext(), 119 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 121 NotificationRecord left = new NotificationRecord(getContext(), 128 NotificationRecord right = new NotificationRecord(getContext(), [all...] |
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
H A D | SliceCreator.java | 88 private Context getContext() { method in class:SliceCreator 143 return new ListBuilder(getContext(), sliceUri, INFINITY).build(); 151 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, 153 ListBuilder b = new ListBuilder(getContext(), sliceUri, -TimeUnit.HOURS.toMillis(8)); 157 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), 162 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_2), 167 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_3), 172 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_4), 177 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), 185 ListBuilder b = new ListBuilder(getContext(), sliceUr [all...] |
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/ |
H A D | MultiDexAndroidJUnitRunner.java | 27 MultiDex.installInstrumentation(getContext(), getTargetContext());
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/ |
H A D | MultiDexAndroidJUnitRunner.java | 11 MultiDex.installInstrumentation(getContext(), getTargetContext());
|
/frameworks/multidex/instrumentation/src/com/android/test/runner/ |
H A D | MultiDexTestRunner.java | 35 MultiDex.installInstrumentation(getContext(), getTargetContext());
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsic.cpp | 35 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 40 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 46 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 51 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 58 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 63 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, 68 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER,
|
/frameworks/support/slices/core/src/androidTest/java/androidx/slice/ |
H A D | SliceTestProvider.java | 36 getContext().getPackageName(); 53 IconCompat.createWithResource(getContext(), R.drawable.size_48x48), 58 PendingIntent broadcast = PendingIntent.getBroadcast(getContext(), 0, 59 new Intent(getContext().getPackageName() + ".action"), 0); 69 .addIcon(IconCompat.createWithResource(getContext(), R.drawable.size_48x48),
|