Searched refs:getContext (Results 1 - 25 of 342) 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"));
H A DMemoryFileProviderTest.java37 ContentResolver resolver = getContext().getContentResolver();
52 ContentResolver resolver = getContext().getContentResolver();
70 ContentResolver resolver = getContext().getContentResolver();
/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.java26 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class));
32 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class));
38 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class));
44 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class));
63 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
69 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
H A DIntentSenderTest.java33 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);
H A DBroadcastTest.java179 getContext().registerReceiver(mReceiver, filter, permission, null);
191 getContext().unregisterReceiver(mReceiver);
278 getContext().sendOrderedBroadcast(
312 Intent sticky = getContext().registerReceiver(null, filter);
327 Intent sticky = getContext().registerReceiver(null, filter);
341 Intent sticky = getContext().registerReceiver(null, filter);
373 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED));
388 getContext().sendOrderedBroadcast(
398 getContext().sendBroadcast(
415 getContext()
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemFocusablesFarApart.java42 position, parent.getContext(), desiredHeight);
H A DListHeterogeneous.java44 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
H A DListItemFocusableAboveUnfocusable.java43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
H A DListItemFocusablesClose.java52 position, parent.getContext(), desiredHeight);
H A DAdjacentListsWithAdjacentISVsInside.java90 final LinearLayout ll = new LinearLayout(views[0].getContext());
123 parent.getContext(), 5, "isv left");
126 parent.getContext(), 5, "isv right");
/frameworks/base/core/tests/coretests/src/android/text/util/
H A DLinkifyTest.java33 tv = new TextView(getContext());
44 tv = new TextView(getContext());
56 tv = new TextView(getContext());
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java54 public Context getContext() { method in class:AndroidTestCase
96 getContext().startActivity(intent);
115 getContext().getContentResolver().query(uri, null, null, null, null);
134 getContext().getContentResolver().insert(uri, new ContentValues());
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
H A DExternalSharedPermsFLTest.java33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DSettingsView.java59 final Context context = getContext();
92 return (StatusBarManager)getContext().getSystemService(Context.STATUS_BAR_SERVICE);
98 getContext().startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)
106 getContext().startActivity(new Intent(Settings.ACTION_SETTINGS)
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DEntropyServiceTest.java31 File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccSmsInterfaceManager.java41 mContext = phone.getContext();
78 mPhone.getContext().enforceCallingPermission(
115 mPhone.getContext().enforceCallingOrSelfPermission(
153 mPhone.getContext().enforceCallingPermission(
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java81 mOpenHelper = new DatabaseHelper(getContext());
89 getContext().getContentResolver().notifyChange(uri, null);
104 getContext().getContentResolver().notifyChange(addedUri, null);
117 getContext().getContentResolver().notifyChange(uri, null);
/frameworks/base/test-runner/src/android/test/
H A DApplicationTestCase.java91 mSystemContext = getContext();
100 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());
H A DProviderTestCase2.java81 return getContext().getResources();
88 return getContext().getDir("mockcontext2_" + name, mode);
138 getContext(), // The context that file methods are delegated to
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DRotationActivity.java54 canvas.translate(dipToPx(getContext(), 400), dipToPx(getContext(), 200));
/frameworks/compile/slang/
H A Dslang_rs_metadata_spec_encoder.cpp268 if (!EncodeInteger(mModule->getContext(),
278 if (!EncodeInteger(mModule->getContext(),
285 if (!EncodeInteger(mModule->getContext(),
291 RecordInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(),
326 if (!EncodeInteger(mModule->getContext(), VarName, VarInfo)) {
329 if (!EncodeInteger(mModule->getContext(), Type, VarInfo)) {
336 mVarInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(),
355 if (!EncodeInteger(mModule->getContext(), FuncName, FuncInfo)) {
362 mFuncInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(),
427 llvm::MDString::get(mModule->getContext(), StrTabDat
[all...]
/frameworks/base/core/java/android/preference/
H A DDialogPreference.java107 setDialogTitle(getContext().getString(dialogTitleResId));
137 setDialogMessage(getContext().getString(dialogMessageResId));
164 mDialogIcon = getContext().getResources().getDrawable(dialogIconRes);
190 setPositiveButtonText(getContext().getString(positiveButtonTextResId));
218 setNegativeButtonText(getContext().getString(negativeButtonTextResId));
275 Context context = getContext();
340 LayoutInflater inflater = LayoutInflater.from(mBuilder.getContext());
/frameworks/base/core/java/android/webkit/
H A DSelectActionModeCallback.java49 final Context context = mWebView.getContext();
85 Browser.sendString(mWebView.getContext(), selection);
103 mWebView.getContext().startActivity(i);

Completed in 634 milliseconds

1234567891011>>