/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));
|
H A D | 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);
|
/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/rs/cpp/ |
H A D | BaseObj.cpp | 47 if (mRS && mRS->getContext()) { 48 RS::dispatch->ObjDestroy(mRS->getContext(), mID); 56 RS::dispatch->GetName(mRS->getContext(), mID, &name);
|
H A D | Script.cpp | 26 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, nullptr, 0)); 44 tryDispatch(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); 49 tryDispatch(mRS, RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == nullptr) ? 0 : o->getID())); 53 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
|
/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...] |
H A D | TunerSwitch.java | 29 TunerService.get(getContext()).addTunable(this, getKey().split(",")); 34 TunerService.get(getContext()).removeTunable(this); 47 MetricsLogger.action(getContext(), mAction, isChecked()); 54 Settings.Secure.putString(getContext().getContentResolver(), key, value ? "1" : "0");
|
H A D | StatusBarSwitch.java | 44 TunerService.get(getContext()).addTunable(this, StatusBarIconController.ICON_BLACKLIST); 49 TunerService.get(getContext()).removeTunable(this); 67 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_DISABLE, 74 MetricsLogger.action(getContext(), MetricsEvent.TUNER_STATUS_BAR_ENABLE, getKey()); 82 ContentResolver contentResolver = getContext().getContentResolver();
|
H A D | BatteryPreference.java | 50 TunerService.get(getContext()).addTunable(this, StatusBarIconController.ICON_BLACKLIST); 51 mHasPercentage = Settings.System.getInt(getContext().getContentResolver(), 57 TunerService.get(getContext()).removeTunable(this); 85 MetricsLogger.action(getContext(), MetricsEvent.TUNER_BATTERY_PERCENTAGE, v); 86 Settings.System.putInt(getContext().getContentResolver(), SHOW_PERCENT_SETTING, v ? 1 : 0); 92 TunerService.get(getContext()).setValue(StatusBarIconController.ICON_BLACKLIST,
|
H A D | ColorAndAppearanceFragment.java | 48 mNightModeController = new NightModeController(getContext()); 59 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_COLOR_AND_APPEARANCE, true); 71 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_COLOR_AND_APPEARANCE, false); 88 MetricsLogger.action(getContext(), MetricsEvent.ACTION_TUNER_CALIBRATE_DISPLAY_CHANGED); 90 getContext().getContentResolver(), Secure.ACCESSIBILITY_DISPLAY_COLOR_MATRIX)); 103 Settings.Secure.putString(getContext().getContentResolver(), 122 mNightModeController = new NightModeController(getContext()); 134 View v = LayoutInflater.from(getContext()).inflate(R.layout.calibrate_sliders, null); 138 MetricsLogger.visible(getContext(), MetricsEvent.TUNER_CALIBRATE_DISPLAY); 139 return new AlertDialog.Builder(getContext()) [all...] |
H A D | NightModeFragment.java | 60 mNightModeController = new NightModeController(getContext()); 61 mUiModeManager = getContext().getSystemService(UiModeManager.class); 67 final View view = LayoutInflater.from(getContext()).inflate( 75 final Context context = getPreferenceManager().getContext(); 96 MetricsLogger.action(getContext(), MetricsEvent.ACTION_TUNER_NIGHT_MODE, newState); 106 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_NIGHT_MODE, true); 108 TunerService.get(getContext()).addTunable(this, Secure.BRIGHTNESS_USE_TWILIGHT, 116 MetricsLogger.visibility(getContext(), MetricsEvent.TUNER_NIGHT_MODE, false); 118 TunerService.get(getContext()).removeTunable(this); 125 MetricsLogger.action(getContext(), MetricsEven [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/base/services/tests/servicestests/src/com/android/server/notification/ |
H A D | RankingHelperTest.java | 50 mHelper = new RankingHelper(getContext(), handler, mUsageStats, 53 mNotiGroupGSortA = new Notification.Builder(getContext()) 59 mRecordGroupGSortA = new NotificationRecord(getContext(), new StatusBarNotification( 62 mNotiGroupGSortB = new Notification.Builder(getContext()) 68 mRecordGroupGSortB = new NotificationRecord(getContext(), new StatusBarNotification( 71 mNotiNoGroup = new Notification.Builder(getContext()) 75 mRecordNoGroup = new NotificationRecord(getContext(), new StatusBarNotification( 78 mNotiNoGroup2 = new Notification.Builder(getContext()) 82 mRecordNoGroup2 = new NotificationRecord(getContext(), new StatusBarNotification( 85 mNotiNoGroupSortA = new Notification.Builder(getContext()) [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | BottomSheetDialogFragment.java | 32 return new BottomSheetDialog(getContext(), getTheme());
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoDialog.java | 38 RecyclerView view = new RecyclerView(getContext()); 39 mAdapter = new Adapter(getContext()); 40 view.setLayoutManager(new GridLayoutManager(getContext(), 2)); 49 PrefState prefs = new PrefState(getContext()); 52 NekoService.registerJob(getContext(), food.getInterval(getContext())); 74 return new Holder(LayoutInflater.from(parent.getContext())
|
/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/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | ShadowOverlayContainerTest.java | 28 FrameLayout frameLayout = new FrameLayout(getContext()); 29 TextView textView = new TextView(getContext()); 33 ShadowOverlayContainer container = new ShadowOverlayContainer(getContext()); 59 FrameLayout frameLayout = new FrameLayout(getContext()); 60 TextView textView = new TextView(getContext()); 63 ShadowOverlayContainer container = new ShadowOverlayContainer(getContext()); 88 FrameLayout frameLayout = new FrameLayout(getContext()); 89 TextView textView = new TextView(getContext()); 93 ShadowOverlayContainer container = new ShadowOverlayContainer(getContext());
|
/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/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/ |
H A D | DataBindingMapperTest.java | 22 View view = new View(getContext()); 29 View view = new View(getContext());
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | LinkSpanTest.java | 31 final TestContext context = new TestContext(getContext()); 42 final Context context = getContext();
|
H A D | StatusBarBackgroundLayoutTest.java | 30 final StatusBarBackgroundLayout layout = new StatusBarBackgroundLayout(getContext()); 42 new TestStatusBarBackgroundLayout(getContext());
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | OwnersTest.java | 37 getContext().addUsers(10, 11, 20, 21); 41 final OwnersTestable owners = new OwnersTestable(getContext()); 73 final OwnersTestable owners = new OwnersTestable(getContext()); 90 getContext().addUsers(10, 11, 20, 21); 94 final OwnersTestable owners = new OwnersTestable(getContext()); 128 final OwnersTestable owners = new OwnersTestable(getContext()); 148 getContext().addUsers(10, 11, 20, 21); 152 final OwnersTestable owners = new OwnersTestable(getContext()); 194 final OwnersTestable owners = new OwnersTestable(getContext()); 226 getContext() [all...] |