/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
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().sendBroadcast(intent) [all...] |
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/ |
SliceCreator.java | 88 private Context getContext() { 143 return new ListBuilder(getContext(), sliceUri, INFINITY).build(); 151 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, 153 ListBuilder b = new ListBuilder(getContext(), sliceUri, -TimeUnit.HOURS.toMillis(8)); 157 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), 162 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_2), 167 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_3), 172 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_4), 177 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), 185 ListBuilder b = new ListBuilder(getContext(), sliceUri, INFINITY) [all...] |
/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/ |
VoicemailSettingsFragment.java | 83 voicemailClient = VoicemailComponent.get(getContext()).getVoicemailClient(); 89 Logger.get(getContext()).logImpression(DialerImpression.Type.VVM_SETTINGS_VIEWED); 108 Logger.get(getContext()) 126 if (!VoicemailComponent.get(getContext()) 128 .isVoicemailArchiveAvailable(getContext())) { 132 if (!VoicemailComponent.get(getContext()) 134 .isVoicemailDonationAvailable(getContext())) { 140 if (voicemailClient.hasCarrierSupport(getContext(), phoneAccountHandle)) { 143 new Intent(new Intent(getContext(), VoicemailChangePinActivity.class)); 151 Logger.get(getContext()).logImpression(DialerImpression.Type.VVM_CHANGE_PIN_CLICKED) [all...] |
/external/deqp/external/openglcts/modules/gles32/ |
es32cTestPackage.cpp | 87 glu::resetState(m_testPackage.getContext().getRenderContext(), m_testPackage.getContext().getContextInfo()); 92 tcu::TestContext& testCtx = m_testPackage.getContext().getTestContext(); 93 glu::RenderContext& renderCtx = m_testPackage.getContext().getRenderContext(); 143 addChild(new deqp::InfoTests(getContext())); 146 shadersGroup->addChild(new deqp::ShaderIntegerMixTests(getContext(), glu::GLSL_VERSION_320_ES)); 147 shadersGroup->addChild(new deqp::ShaderNegativeTests(getContext(), glu::GLSL_VERSION_320_ES)); 152 coreGroup->addChild(new glcts::GeometryShaderTests(getContext(), extParams)); 153 coreGroup->addChild(new glcts::GPUShader5Tests(getContext(), extParams)); 154 coreGroup->addChild(new glcts::TessellationShaderTests(getContext(), extParams)) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
DevicePrefFragment.java | 87 final TvInputManager manager = (TvInputManager) getContext().getSystemService( 129 MainFragment.systemIntentIsHandled(getContext(), preference.getIntent()) != null); 133 return SecurityFragment.isRestrictedProfileInEffect(getContext()); 144 getContext())); 152 mSoundsPref.setIcon(SoundFragment.getSoundEffectsEnabled(getContext().getContentResolver()) 159 final ResolveInfo info = MainFragment.systemIntentIsHandled(getContext(), 164 info.activityInfo.loadIcon(getContext().getPackageManager())); 166 info.activityInfo.loadLabel(getContext().getPackageManager())); 176 getContext(), castPref.getIntent()); 179 final Context targetContext = getContext() [all...] |
/packages/experimental/SlicesApp/src/com/android/experimental/slicesapp/ |
SlicesProvider.java | 47 mSharedPrefs = getContext().getSharedPreferences("slice", 0); 54 .authority(getContext().getPackageName()) 91 Icon.createWithResource(getContext(), R.drawable.mady), 140 Intent intent = new Intent(getContext(), SlicesActivity.class); 141 PendingIntent pendingIntent = PendingIntent.getActivity(getContext(), 0, intent, 0); 145 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_add), 150 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_remove), 155 .addIcon(Icon.createWithResource(getContext(), R.drawable.ic_add), 165 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_1), 170 .addIcon(Icon.createWithResource(getContext(), R.drawable.weather_2) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
CaptionCustomFragment.java | 199 final String typeface = Settings.Secure.getString(getContext().getContentResolver(), 206 Settings.Secure.putString(getContext().getContentResolver(), 209 Settings.Secure.putString(getContext().getContentResolver(), 215 return Integer.toHexString(Settings.Secure.getInt(getContext().getContentResolver(), 221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), 223 Settings.Secure.putInt(getContext().getContentResolver(), 228 return opacityToString(Settings.Secure.getInt(getContext().getContentResolver(), 233 final int color = Settings.Secure.getInt(getContext().getContentResolver(), 236 Settings.Secure.putInt(getContext().getContentResolver(), 241 return Integer.toString(Settings.Secure.getInt(getContext().getContentResolver() [all...] |
/cts/tests/filesystem/src/android/filesystem/cts/ |
AlmostFullTest.java | 19 import static android.support.test.InstrumentationRegistry.getContext; 63 long freeDisk = SystemUtil.getFreeDiskSize(getContext()); 81 FileUtil.createNewFilledFile(getContext(), 86 Log.i(TAG, "free disk " + SystemUtil.getFreeDiskSize(getContext())); 91 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); 95 FileUtil.removeFileOrDir(getContext(), DIR_INITIAL_FILL); 97 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); 98 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); 99 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); 100 Log.i(TAG, "tearDown free disk " + SystemUtil.getFreeDiskSize(getContext())); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
Contacts_OrganizationsTest.java | 26 String display = Organizations.getDisplayLabel(getContext(), 30 CharSequence[] labels = getContext().getResources().getTextArray( 32 display = Organizations.getDisplayLabel(getContext(), 36 display = Organizations.getDisplayLabel(getContext(),
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/ |
MultiDexAndroidJUnitRunner.java | 11 MultiDex.installInstrumentation(getContext(), getTargetContext());
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
AirplaneModeCondition.java | 47 setActive(WirelessUtils.isAirplaneModeOn(mManager.getContext())); 62 return mManager.getContext().getDrawable(R.drawable.ic_airplane); 73 return mManager.getContext().getString(R.string.condition_airplane_title); 78 return mManager.getContext().getString(R.string.condition_airplane_summary); 83 return new CharSequence[] {mManager.getContext().getString(R.string.condition_turn_off)}; 88 mManager.getContext().startActivity( 96 ConnectivityManager.from(mManager.getContext()).setAirplaneMode(false);
|
WorkModeCondition.java | 39 mUm = (UserManager) mManager.getContext().getSystemService(Context.USER_SERVICE); 64 return mManager.getContext().getDrawable(R.drawable.ic_signal_workmode_enable); 69 return mManager.getContext().getString(R.string.condition_work_title); 74 return mManager.getContext().getString(R.string.condition_work_summary); 80 mManager.getContext().getString(R.string.condition_turn_on) 86 mManager.getContext().startActivity(new Intent(mManager.getContext(),
|
DndCondition.java | 54 mManager.getContext().registerReceiver(mReceiver, DND_FILTER); 61 mManager.getContext().getSystemService(NotificationManager.class); 86 return mManager.getContext().getDrawable(R.drawable.ic_do_not_disturb_on_24dp); 91 return mManager.getContext().getString(R.string.condition_zen_title); 96 return ZenModeConfig.getDescription(mManager.getContext(), mZen != Global.ZEN_MODE_OFF, 102 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_off) }; 107 new SubSettingLauncher(mManager.getContext()) 118 NotificationManager notificationManager = mManager.getContext().getSystemService( 149 mManager.getContext().registerReceiver(mReceiver, DND_FILTER); 157 mManager.getContext().unregisterReceiver(mReceiver) [all...] |
CellularDataCondition.java | 40 ConnectivityManager connectivity = mManager.getContext().getSystemService( 42 TelephonyManager telephony = mManager.getContext().getSystemService(TelephonyManager.class); 63 return mManager.getContext().getDrawable(R.drawable.ic_cellular_off); 68 return mManager.getContext().getString(R.string.condition_cellular_title); 73 return mManager.getContext().getString(R.string.condition_cellular_summary); 78 return new CharSequence[] { mManager.getContext().getString(R.string.condition_turn_on) }; 83 mManager.getContext().startActivity(new Intent(mManager.getContext(), 90 TelephonyManager telephony = mManager.getContext().getSystemService(
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
GlobalSortKeyComparatorTest.java | 50 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 52 NotificationRecord left = new NotificationRecord(getContext(), 59 NotificationRecord right = new NotificationRecord(getContext(), 66 NotificationRecord last = new NotificationRecord(getContext(), 89 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 91 NotificationRecord left = new NotificationRecord(getContext(), 97 NotificationRecord right = new NotificationRecord(getContext(), 119 Notification n = new Notification.Builder(getContext(), TEST_CHANNEL_ID) 121 NotificationRecord left = new NotificationRecord(getContext(), 128 NotificationRecord right = new NotificationRecord(getContext(), [all...] |
/frameworks/support/tv-provider/src/androidTest/java/androidx/tvprovider/media/tv/ |
ChannelLogoUtilsTest.java | 19 import static android.support.test.InstrumentationRegistry.getContext; 57 mContentResolver = getContext().getContentResolver(); 72 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 73 Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), 76 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logo)); 80 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 85 assertNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)); 87 Resources res = getContext().getResources(); 94 assertTrue(ChannelLogoUtils.storeChannelLogo(getContext(), mChannelId, logoUri)); 98 assertNotNull(ChannelLogoUtils.loadChannelLogo(getContext(), mChannelId)) [all...] |
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsSyncTest.java | 33 private static Context getContext() { 34 return InstrumentationRegistry.getContext(); 39 BatteryStatsAuthenticator.removeAllAccounts(getContext()); 44 BatteryStatsAuthenticator.removeAllAccounts(getContext()); 55 BatteryStatsAuthenticator.ensureTestAccount(getContext());
|
/cts/tests/app/src/android/app/cts/ |
NewDocumentTest.java | 36 intent.setClass(getContext(), NewDocumentTestActivity.class); 41 getContext().startActivity(intent); 46 getContext().startActivity(intent); 55 getContext().registerReceiver(this, new IntentFilter(action)); 71 getContext().unregisterReceiver(this);
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
DefaultRingtonePreference.java | 49 if (!Settings.System.canWrite(getContext())) { 51 getContext(), 52 getContext().getResources().getString(R.string.toast_cannot_write_system_settings), 57 RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri); 62 return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
|
/cts/tests/tests/permission/src/android/permission/cts/ |
TelephonyManagerPermissionTest.java | 48 mHasTelephony = getContext().getPackageManager().hasSystemFeature( 51 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 53 mAudioManager = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); 209 getContext().sendBroadcast(intent); 214 getContext().sendBroadcast(intent); 219 getContext().sendBroadcast(intent); 225 getContext().sendBroadcast(intent); 231 getContext().sendBroadcast(intent); 237 getContext().sendBroadcast(intent); 242 getContext().sendBroadcast(intent) [all...] |
/external/deqp/external/openglcts/modules/glesext/ |
esextcTestPackage.cpp | 66 glu::resetState(m_testPackage.getContext().getRenderContext(), m_testPackage.getContext().getContextInfo()); 75 glu::resetState(m_testPackage.getContext().getRenderContext(), m_testPackage.getContext().getContextInfo()); 80 tcu::TestContext& testCtx = m_testPackage.getContext().getTestContext(); 81 glu::RenderContext& renderCtx = m_testPackage.getContext().getRenderContext(); 122 const glu::ContextType& context_type = getContext().getRenderContext().getType(); 130 addChild(new glcts::GeometryShaderTests(getContext(), extParams)); 131 addChild(new glcts::GPUShader5Tests(getContext(), extParams)); 132 addChild(new glcts::TessellationShaderTests(getContext(), extParams)) [all...] |
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/ |
Utils.java | 37 ConnectivityManager connectivityManager = getContext().getSystemService( 44 return !getContext().getPackageManager() 48 public static Context getContext() { 49 return InstrumentationRegistry.getInstrumentation().getContext(); 53 return (getContext().getResources().getConfiguration().uiMode 70 "cmd deviceidle whitelist +" + getContext().getPackageName()); 79 "cmd deviceidle whitelist -" + getContext().getPackageName()); 94 AccountManager accountManager = getContext().getSystemService(AccountManager.class); 103 AccountManager accountManager = getContext().getSystemService(AccountManager.class);
|
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
ContactInteractionUtilTest.java | 70 calendar.getTimeInMillis(), getContext())); 79 getContext())); 92 getContext())); 97 ContactInteractionUtil.formatDuration(0, getContext())); 102 ContactInteractionUtil.formatDuration(60, getContext())); 107 ContactInteractionUtil.formatDuration(1809, getContext())); 112 ContactInteractionUtil.formatDuration(3600, getContext())); 117 ContactInteractionUtil.formatDuration(9876, getContext())); 122 Resources res = getContext().getResources();
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
ManagementTest.java | 41 AdminReceiver.getComponentName(getContext()))); 42 assertTrue(mDevicePolicyManager.isProfileOwnerApp(getContext().getPackageName())); 44 AdminReceiver.getComponentName(getContext()))); 50 AdminReceiver.getComponentName(getContext()))); 51 assertTrue(mDevicePolicyManager.isDeviceOwnerApp(getContext().getPackageName())); 53 AdminReceiver.getComponentName(getContext())));
|
/cts/hostsidetests/shortcuts/deviceside/upgrade/src/android/content/pm/cts/shortcut/upgrade/ |
ShortcutManagerPostUpgradeTest.java | 50 final Icon icon1 = Icon.createWithResource(getContext(), R.drawable.black_32x32); 51 final Icon icon2 = Icon.createWithResource(getContext(), R.drawable.black_64x64); 54 Launcher.setAsDefaultLauncher(getInstrumentation(), getContext()); 57 assertIconDimensions(getContext().getPackageName(), "s1", icon1); 58 assertIconDimensions(getContext().getPackageName(), "s2", icon2); 63 assertIconDimensions(getContext().getPackageName(), "s1", icon2);
|