Searched refs:getContext (Results 1 - 25 of 1357) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/content/
H A DBrickDeniedTest.java29 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 DServiceTest.java201 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 DSubActivityTest.java26 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 DLaunchTest.java28 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 DNotificationTestCase.java28 new TestableContext(InstrumentationRegistry.getContext(), null);
30 protected TestableContext getContext() { method in class:NotificationTestCase
H A DNotificationIntrusivenessExtractorTest.java42 final Notification.Builder builder = new Notification.Builder(getContext())
49 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
57 final Notification.Builder builder = new Notification.Builder(getContext())
60 getContext(), 0, new Intent(""), 0), true)
67 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
75 final Notification.Builder builder = new Notification.Builder(getContext())
78 getContext(), 0, new Intent(""), 0), true)
86 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
H A DGlobalSortKeyComparatorTest.java48 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 DChannelLogoUtilsTest.java41 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/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DFragmentBase.java32 Context getContext(); method in interface:FragmentBase
H A DPluginFragment.java33 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 DFragmentUtil.java27 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 DSideInfoCardPresenter.java42 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 DImageCardViewPresenter.java44 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 DSideInfoCardPresenter.java42 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 DImageCardViewPresenter.java44 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 DViewUtils.java36 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 DBaseObj.cpp46 if (mRS && mRS->getContext()) {
47 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
55 RS::dispatch->GetName(mRS->getContext(), mID, &name);
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DNekoDialog.java39 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 DDemoModeFragment.java61 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 DEntropyMixerTest.java31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE);
37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null");
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/
H A DMultiDexAndroidJUnitRunner.java27 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/
H A DMultiDexAndroidJUnitRunner.java11 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/multidex/instrumentation/src/com/android/test/runner/
H A DMultiDexTestRunner.java35 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/support/design/src/android/support/design/widget/
H A DBottomSheetDialogFragment.java32 return new BottomSheetDialog(getContext(), getTheme());
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsic.cpp35 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,

Completed in 3997 milliseconds

1234567891011>>