/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/base/services/tests/notification/src/com/android/server/notification/ |
H A D | NotificationTestCase.java | 28 new TestableContext(InstrumentationRegistry.getContext(), null); 30 protected Context getContext() { method in class:NotificationTestCase
|
H A D | GlobalSortKeyComparatorTest.java | 48 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 50 NotificationRecord left = new NotificationRecord(getContext(), 57 NotificationRecord right = new NotificationRecord(getContext(), 64 NotificationRecord last = new NotificationRecord(getContext(), 87 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 89 NotificationRecord left = new NotificationRecord(getContext(), 95 NotificationRecord right = new NotificationRecord(getContext(), 117 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 119 NotificationRecord left = new NotificationRecord(getContext(), 126 NotificationRecord right = new NotificationRecord(getContext(), [all...] |
/frameworks/support/tv-provider/tests/src/android/support/media/tv/ |
H A D | ChannelLogoUtilsTest.java | 41 mContentResolver = getContext().getContentResolver(); 56 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 57 Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), 60 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logo)); 64 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 68 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 70 Resources res = getContext().getResources(); 77 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logoUri)); 81 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId));
|
/frameworks/base/keystore/tests/src/android/security/ |
H A D | 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_ [all...] |
/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/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | FragmentUtil.java | 27 return fragment.getContext(); 30 public static Context getContext(Fragment fragment) { method in class:FragmentUtil
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
H A D | SideInfoCardPresenter.java | 42 final BaseCardView cardView = new BaseCardView(getContext(), null, 45 cardView.addView(LayoutInflater.from(getContext()).inflate(R.layout.side_info_card, null)); 53 int width = (int) getContext().getResources() 55 int height = (int) getContext().getResources() 57 int resourceId = getContext().getResources() 59 "drawable", getContext().getPackageName()); 60 Picasso.with(getContext()).load(resourceId).resize(width, height).centerCrop()
|
H A D | ImageCardViewPresenter.java | 44 ImageCardView imageCardView = new ImageCardView(getContext()); 48 Toast.makeText(getContext(), "Clicked on ImageCardView", Toast.LENGTH_SHORT).show(); 60 int resourceId = getContext().getResources() 62 "drawable", getContext().getPackageName()); 63 Picasso.with(getContext()).load(resourceId).into(cardView.getMainImageView());
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
H A D | SideInfoCardPresenter.java | 42 final BaseCardView cardView = new BaseCardView(getContext(), null, 45 cardView.addView(LayoutInflater.from(getContext()).inflate(R.layout.side_info_card, null)); 53 int width = (int) getContext().getResources() 55 int height = (int) getContext().getResources() 57 int resourceId = getContext().getResources() 59 "drawable", getContext().getPackageName()); 60 Picasso.with(getContext()).load(resourceId).resize(width, height).centerCrop()
|
H A D | ImageCardViewPresenter.java | 44 ImageCardView imageCardView = new ImageCardView(getContext()); 48 Toast.makeText(getContext(), "Clicked on ImageCardView", Toast.LENGTH_SHORT).show(); 60 int resourceId = getContext().getResources() 62 "drawable", getContext().getPackageName()); 63 Picasso.with(getContext()).load(resourceId).into(cardView.getMainImageView());
|
/frameworks/base/tests/testables/src/android/testing/ |
H A D | ViewUtils.java | 28 view.getContext().getApplicationInfo().flags &= 34 view.getContext().getSystemService(WindowManager.class).addView(view, lp); 38 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/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/support/design/src/android/support/design/widget/ |
H A D | BottomSheetDialogFragment.java | 32 return new BottomSheetDialog(getContext(), getTheme());
|
/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/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/ |
H A D | SetAlarm.java | 111 ComponentName cn = getContext().startService(mServceIntent); 115 if (!getContext().bindService(mServceIntent, mConn, Context.BIND_AUTO_CREATE)) { 126 getContext().unbindService(mConn); 136 getContext().unbindService(mConn); 140 getContext().stopService(mServceIntent); 149 getContext().unbindService(mConn);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | MccTableTest.java | 76 MccTable.getLocaleFromMcc(getContext(), 302, null)); 78 MccTable.getLocaleFromMcc(getContext(), 234, null)); 80 MccTable.getLocaleFromMcc(getContext(), 0, "en")); 82 MccTable.getLocaleFromMcc(getContext(), 454, null)); 84 MccTable.getLocaleFromMcc(getContext(), 454, "en")); 86 MccTable.getLocaleFromMcc(getContext(), 466, null));
|