HomeSort by relevance Sort by last modified time
    Searched full:getcontext (Results 76 - 100 of 3316) sorted by null

1 2 34 5 6 7 8 91011>>

  /frameworks/base/core/tests/coretests/src/android/app/activity/
IntentSenderTest.java 33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0,
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0,
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0);
BroadcastTest.java 180 getContext().registerReceiver(mReceiver, filter, permission, null);
192 getContext().unregisterReceiver(mReceiver);
279 getContext().sendOrderedBroadcast(
314 Intent sticky = getContext().registerReceiver(null, filter);
330 Intent sticky = getContext().registerReceiver(null, filter);
344 Intent sticky = getContext().registerReceiver(null, filter);
376 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED));
391 getContext().sendOrderedBroadcast(
401 getContext().sendBroadcast(
418 getContext().sendOrderedBroadcast
    [all...]
  /packages/apps/Settings/src/com/android/settings/dashboard/
DashboardTileView.java 95 Utils.startWithFragment(getContext(), mTile.fragment, mTile.fragmentArguments, null, 0,
100 ProfileSelectDialog.show(((Activity) getContext()).getFragmentManager(), mTile);
102 getContext().startActivityAsUser(mTile.intent, mTile.userHandle.get(0));
104 getContext().startActivity(mTile.intent);
  /cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
SplitAppTest.java 77 final Resources r = getContext().getResources();
78 final PackageManager pm = getContext().getPackageManager();
133 final Resources r = getContext().getResources();
145 final Resources r = getContext().getResources();
166 final Resources r = getContext().getResources();
174 final Resources r = getContext().getResources();
182 final Resources r = getContext().getResources();
183 final PackageManager pm = getContext().getPackageManager();
198 final Resources r = getContext().getResources();
221 final Resources r = getContext().getResources()
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
Dates.java 55 private static Context getContext() {
69 return getContext().getResources().getText(R.string.posted_just_now);
101 final Context context = getContext();
115 final Context context = getContext();
149 return getContext().getResources().getText(
156 final String format = getContext().getResources().getQuantityString(
162 return DateUtils.formatDateTime(getContext(), time,
179 final Context context = getContext();
197 final Context context = getContext();
217 final Context context = getContext();
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/InstrumentationAppDiffCert/src/com/android/cts/instrumentationdiffcertapp/
InstrumentationFailToRunTest.java 31 Context myContext = getInstrumentation().getContext();
37 getInstrumentation().getContext().startInstrumentation(appDiffCertInstrumentation,
  /cts/tests/tests/app/src/android/app/cts/
FragmentTest.java 35 assertNotNull(Fragment.instantiate(getContext(), TestFragment.class.getName()));
40 Fragment.instantiate(getContext(), TestNotFragment.class.getName());
  /cts/tests/tests/content/src/android/content/pm/cts/
FeatureTest.java 40 mPackageManager = getContext().getPackageManager();
41 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE);
  /cts/tests/tests/media/src/android/media/cts/
AsyncPlayerTest.java 32 asyncPlayer.play(getContext(), PLAY_URI, true, AudioManager.STREAM_RING);
41 asyncPlayer.play(getContext(), PLAY_URI, true,
  /cts/tests/tests/os/src/android/os/cts/
ProcessTest.java 70 mIntent.setPackage(getContext().getPackageName());
71 getContext().startService(mIntent);
74 secondaryIntent.setPackage(getContext().getPackageName());
75 getContext().bindService(secondaryIntent, mSecondaryConnection,
91 getContext().stopService(mIntent);
94 getContext().unbindService(mSecondaryConnection);
164 getContext().stopService(mIntent);
195 getContext().stopService(mIntent);
  /cts/tests/tests/permission/src/android/permission/cts/
AppWidgetManagerPermissionTest.java 35 mAppWidgetManager = AppWidgetManager.getInstance(getContext());
48 if (!getContext().getPackageManager()
  /cts/tests/tests/rscpp/src/android/cts/rscpp/
RSInitTest.java 33 RenderScript mRSt = RenderScript.create(getContext());
37 assertTrue(initTest(this.getContext().getCacheDir().toString()));
  /cts/tests/tests/view/src/android/view/cts/
NumberPickerTest.java 25 NumberPicker numberPicker = new NumberPicker(getContext());
32 NumberPicker numberPicker = new NumberPicker(getContext());
  /development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
StringPresenter.java 26 TextView tv = new TextView(parent.getContext());
30 parent.getContext().getResources().getDrawable(R.drawable.text_bg));
CardPresenter.java 66 ImageCardView v = new ImageCardView(parent.getContext());
73 v.setMainImageDimensions(getRowHeight(parent.getContext()),
74 getRowHeight(parent.getContext()));
78 getRowHeight(parent.getContext()));
87 Drawable drawable = viewHolder.view.getContext().getResources()
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ContentProviderTest.java 64 assertThat(provider.getContext(), is(notNullValue()));
68 assertThat(provider.getContext().getContentResolver(), is(notNullValue()));
  /frameworks/base/core/tests/coretests/src/android/content/
BrickDeniedTest.java 29 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE"));
30 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
  /frameworks/base/services/tests/servicestests/src/com/android/server/
EntropyMixerTest.java 31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE);
37 new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null");
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
OMAScalar.java 56 if (getContext() != null) {
57 sb.append(" (").append(getContext()).append(')');
  /packages/apps/Email/tests/src/com/android/email/
VendorPolicyLoaderTest.java 34 mTestApkPackageName = getContext().getPackageName() + ".tests";
47 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), "no.such.package",
55 final Context c = getContext();
66 MockVendorPolicy.inject(getContext());
67 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
94 VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), mTestApkPackageName,
115 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
147 VendorPolicyLoader pl = VendorPolicyLoader.getInstance(getContext());
  /packages/apps/Messaging/src/com/android/messaging/ui/
ImeDetectFrameLayout.java 42 if (measuredHeight != getMeasuredHeight() && getContext() instanceof ImeUtil.ImeStateHost) {
43 ((ImeUtil.ImeStateHost) getContext()).onDisplayHeightChanged(heightMeasureSpec);
  /packages/apps/Settings/src/com/android/settings/
DefaultRingtonePreference.java 47 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);
52 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
  /external/llvm/examples/ParallelJIT/
ParallelJIT.cpp 39 Type::getInt32Ty(M->getContext()),
40 Type::getInt32Ty(M->getContext()),
45 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", Add1F);
48 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1);
59 ReturnInst::Create(M->getContext(), Add, BB);
70 Type::getInt32Ty(M->getContext()),
71 Type::getInt32Ty(M->getContext()),
75 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", FibF);
78 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1);
79 Value *Two = ConstantInt::get(Type::getInt32Ty(M->getContext()), 2)
    [all...]
  /cts/suite/cts/hostTests/uihost/control/src/com/android/cts/taskswitching/control/
TaskswitchingDeviceTest.java 59 getContext().registerReceiver(mReceiverA, filterA);
60 getContext().registerReceiver(mReceiverB, filterB);
65 getContext().unregisterReceiver(mReceiverA);
66 getContext().unregisterReceiver(mReceiverB);
94 Context context = getContext();
  /cts/tests/tests/location/src/android/location/cts/
GeocoderTest.java 32 new Geocoder(getContext());
34 new Geocoder(getContext(), Locale.ENGLISH);
37 new Geocoder(getContext(), null);
45 Geocoder geocoder = new Geocoder(getContext());
98 Geocoder geocoder = new Geocoder(getContext(), Locale.US);

Completed in 2625 milliseconds

1 2 34 5 6 7 8 91011>>