Searched refs:getContext (Results 1 - 25 of 647) 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.java180 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()
[all...]
/frameworks/base/keystore/tests/src/android/security/
H A DKeyPairGeneratorSpecTest.java43 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/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiScanningService.java37 mImpl = new WifiScanningServiceImpl(getContext());
48 mImpl = new WifiScanningServiceImpl(getContext());
50 mImpl.startService(getContext());
/frameworks/rs/cpp/
H A DBaseObj.cpp47 if (mRS && mRS->getContext()) {
48 RS::dispatch->ObjDestroy(mRS->getContext(), mID);
56 RS::dispatch->GetName(mRS->getContext(), mID, &name);
H A DScript.cpp26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len));
36 tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0));
45 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot));
50 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 : o->getID()));
54 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
H A DScriptC.cpp27 mID = RS::dispatch->ScriptCCreate(rs->getContext(), cachedName, cachedNameLength,
/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/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerSettingsTests.java56 writeFile(new File(getContext().getFilesDir(), "system/packages.xml"),
96 writeFile(new File(getContext().getFilesDir(), "system/packages-stopped.xml"),
106 writeFile(new File(getContext().getFilesDir(), "system/packages.list"),
134 Settings settings = new Settings(getContext(), getContext().getFilesDir());
152 Settings settings = new Settings(getContext(), getContext().getFilesDir());
156 settings = new Settings(getContext(), getContext().getFilesDir());
167 Settings settings = new Settings(getContext(), getContex
[all...]
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
H A DSetAlarm.java111 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/base/core/tests/coretests/src/android/os/
H A DSELinuxTest.java22 String mycon = SELinux.getContext();
38 String mycon = SELinux.getContext();
/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);
/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/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,
/frameworks/base/core/java/com/android/internal/widget/
H A DSwipeDismissLayout.java88 if (getContext() instanceof Activity) {
89 ((Activity) getContext()).convertFromTranslucent();
112 ViewConfiguration vc = ViewConfiguration.get(getContext());
116 mAnimationTime = getContext().getResources().getInteger(
133 if (getContext() instanceof Activity) {
142 if (getContext() instanceof Activity) {
233 if (getContext() instanceof Activity) {
234 ((Activity) getContext()).convertToTranslucent(null, null);
257 if (getContext() instanceof Activity) {
258 ((Activity) getContext())
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
H A DRankingHelperTest.java44 mHelper = new RankingHelper(getContext(), null, new String[0]);
46 mNotiGroupGSortA = new Notification.Builder(getContext())
55 mNotiGroupGSortB = new Notification.Builder(getContext())
64 mNotiNoGroup = new Notification.Builder(getContext())
71 mNotiNoGroup2 = new Notification.Builder(getContext())
78 mNotiNoGroupSortA = new Notification.Builder(getContext())
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DObscureSpeechDelegate.java57 host.announceForAccessibility(host.getContext().getString(
69 event.setContentDescription(host.getContext().getString(
79 final Context ctx = host.getContext();
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java56 public Context getContext() { method in class:AndroidTestCase
98 getContext().startActivity(intent);
117 getContext().getContentResolver().query(uri, null, null, null, null);
136 getContext().getContentResolver().insert(uri, new ContentValues());

Completed in 629 milliseconds

1234567891011>>