/packages/apps/TV/usbtuner/src/com/android/usbtuner/util/ |
SystemPropertiesProxy.java | 25 * Proxy class that gives an access to a hidden API {@link android.os.SystemProperties#getBoolean}. 32 public static boolean getBoolean(String key, boolean def) 36 Method getBooleanMethod = SystemPropertiesClass.getDeclaredMethod("getBoolean", 42 Log.e(TAG, "Failed to invoke SystemProperties.getBoolean()", e);
|
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/ |
LaunchingActivity.java | 35 if (extras.getBoolean("launch_to_the_side")) { 37 if (extras.getBoolean("multiple_task")) { 40 if (extras.getBoolean("random_data")) {
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
RotationPreferenceTest.java | 30 mOriginalRotationValue = mPrefs.getBoolean(Utilities.ALLOW_ROTATION_PREFERENCE_KEY, false); 40 if (mTargetContext.getResources().getBoolean(R.bool.allow_rotation)) { 54 if (mTargetContext.getResources().getBoolean(R.bool.allow_rotation)) {
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MtpReceiver.java | 48 boolean connected = extras.getBoolean(UsbManager.USB_CONFIGURED); 49 boolean mtpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_MTP); 50 boolean ptpEnabled = extras.getBoolean(UsbManager.USB_FUNCTION_PTP); 51 boolean unlocked = extras.getBoolean(UsbManager.USB_DATA_UNLOCKED);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TypedArrayTest.java | 32 assertThat(typedArray.getBoolean(0, true), equalTo(true)); 33 assertThat(typedArray.getBoolean(0, false), equalTo(false));
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
TetherUtil.java | 27 return configManager.getConfig().getBoolean(CarrierConfigManager 36 if (SystemProperties.getBoolean("net.tethering.noprovisioning", false)
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
BluetoothPbapConfig.java | 33 sUseProfileForOwnerVcard = r.getBoolean(R.bool.pbap_use_profile_for_owner_vcard); 38 sIncludePhotosInVcard = r.getBoolean(R.bool.pbap_include_photos_in_vcard);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
DozeParameters.java | 69 return "fallback: " + mContext.getResources().getBoolean( 77 return getBoolean("doze.display.supported", R.bool.doze_display_state_supported); 99 return getBoolean("doze.pulse.sigmotion", R.bool.doze_pulse_on_significant_motion); 103 return SystemProperties.getBoolean("doze.vibrate.sigmotion", false); 107 return SystemProperties.getBoolean("doze.vibrate.pickup", false); 111 return getBoolean("doze.pulse.proxcheck", R.bool.doze_proximity_check_before_pulse); 118 private boolean getBoolean(String propName, int resId) { 119 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); 137 return mContext.getResources().getBoolean(R.bool.doze_pickup_performs_proximity_check) [all...] |
AutoTileManager.java | 41 if (!Prefs.getBoolean(context, Key.QS_HOTSPOT_ADDED, false)) { 44 if (!Prefs.getBoolean(context, Key.QS_DATA_SAVER_ADDED, false)) { 47 if (!Prefs.getBoolean(context, Key.QS_INVERT_COLORS_ADDED, false)) { 66 if (!Prefs.getBoolean(context, Key.QS_WORK_ADDED, false)) {
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
MmsConfig.java | 202 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLED_TRANS_ID, 234 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLE_MULTIPART_SMS, 239 return mValues.getBoolean( 245 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLE_SMS_DELIVERY_REPORTS, 250 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLED_NOTIFY_WAP_MMSC, 255 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ALIAS_ENABLED, 270 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ALLOW_ATTACH_AUDIO, 280 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_ENABLE_GROUP_MMS, 285 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, 290 return mValues.getBoolean(CarrierConfigValuesLoader.CONFIG_CELL_BROADCAST_APP_LINKS [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SettingsValues.java | 134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); 138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( 144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) 148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); 149 mUsePersonalizedDicts = prefs.getBoolean(Settings.PREF_KEY_USE_PERSONALIZED_DICTS, true); 150 mUseDoubleSpacePeriod = prefs.getBoolean(Settings.PREF_KEY_USE_DOUBLE_SPACE_PERIOD, true) 160 mEnableMetricsLogging = prefs.getBoolean(Settings.PREF_ENABLE_METRICS_LOGGING, true); 161 mIsSplitKeyboardEnabled = prefs.getBoolean(Settings.PREF_ENABLE_SPLIT_KEYBOARD, false); 165 && prefs.getBoolean(DebugSettings.PREF_SHOULD_SHOW_LXX_SUGGESTION_UI, true); 171 mEnableEmojiAltPhysicalKey = prefs.getBoolean( [all...] |
Settings.java | 206 return prefs.getBoolean(PREF_SOUND_ON, 207 res.getBoolean(R.bool.config_default_sound_enabled)); 213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, 214 res.getBoolean(R.bool.config_default_vibration_enabled)); 219 return prefs.getBoolean(PREF_AUTO_CORRECTION, true); 228 return prefs.getBoolean(PREF_BLOCK_POTENTIALLY_OFFENSIVE, 229 res.getBoolean(R.bool.config_block_potentially_offensive)); 233 return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config); 239 && prefs.getBoolean(PREF_GESTURE_INPUT, true); 243 return res.getBoolean(R.bool.config_enable_show_key_preview_popup_option) [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
SharedPrefUtil.java | 51 return eabPref.getBoolean(INIT_DONE, false); 119 return eabPref.getBoolean(VIDEO_CALLING_WARN_SHOW, false); 131 return eabPref.getBoolean(VIDEO_CALL_OFF_WARN_SHOW, false); 143 return eabPref.getBoolean(MOBILE_DATA_ON_WARN_SHOW, false); 155 return eabPref.getBoolean(VOLTE_ON_WARN_SHOW, false); 167 return eabPref.getBoolean(TTY_OFF_WARN_SHOW, false); 179 return eabPref.getBoolean(VT_ON_WARN_SHOW, false);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/ |
ContactsPreferencesTest.java | 67 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 76 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 86 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 95 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 105 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 121 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn( 137 Mockito.when(mResources.getBoolean(Mockito.anyInt())).thenReturn(
|
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/ |
OwnerChangedBroadcastTest.java | 58 if (mPreferences.getBoolean(BroadcastIntentReceiver.OWNER_CHANGED_BROADCAST_RECEIVED_KEY, 66 assertTrue(mPreferences.getBoolean( 71 assertFalse(mPreferences.getBoolean(
|
/frameworks/support/core-utils/java/android/support/v4/content/res/ |
TypedArrayUtils.java | 35 public static boolean getBoolean(TypedArray a, @StyleableRes int index, 37 boolean val = a.getBoolean(fallbackIndex, defaultValue); 38 return a.getBoolean(index, val);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/ |
ContactsPreferenceActivity.java | 69 return !context.getResources().getBoolean(R.bool.config_sort_order_user_changeable) 70 && !context.getResources().getBoolean(R.bool.config_display_order_user_changeable) 71 && !context.getResources().getBoolean(
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
WearPackageArgs.java | 69 return b.getBoolean(KEY_CHECK_PERMS); 73 return b.getBoolean(KEY_SKIP_IF_SAME_VERSION); 93 return b.getBoolean(KEY_SKIP_IF_LOWER_VERSION, false);
|
/packages/services/Telephony/src/com/android/phone/settings/ |
VisualVoicemailSettingsUtil.java | 54 if (!context.getResources().getBoolean(R.bool.allow_visual_voicemail)) { 61 // getBoolean(). The "false" here should never be actually used. 62 return prefs.getBoolean(IS_ENABLED_KEY, false);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
PduParserUtil.java | 35 .getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, true);
|
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/ |
AndroidPreferences.java | 85 public boolean getBoolean (String key) {
86 return sharedPrefs.getBoolean(key, false);
110 public boolean getBoolean (String key, boolean defValue) {
111 return sharedPrefs.getBoolean(key, defValue);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/android/content/ |
TestSharedPreferencesTest.java | 45 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); 73 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); 94 assertTrue(anotherSharedPreferences.getBoolean("boolean", false)); 116 assertFalse(anotherSharedPreferences.getBoolean("boolean", false));
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
ToggleWeightWatcher.java | 20 boolean show = sp.getBoolean(TestingUtils.SHOW_WEIGHT_WATCHER, true);
|
/packages/apps/TV/common/src/com/android/tv/common/ |
BooleanSystemProperty.java | 33 * >android.os.SystemProperties.getBoolean</a>. 68 private static boolean getBoolean(String key, boolean defaultValue) { 71 final Method get = systemProperties.getMethod("getBoolean", String.class, Boolean.TYPE); 96 mValue = getBoolean(mKey, mDefaultValue);
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
NotificationService.java | 100 if (sharedPref.getBoolean(SettingsActivity.KEY_SMS_PERSON, false)) { 146 .setOnlyAlertOnce(sharedPref.getBoolean(SettingsActivity.KEY_SMS_ONCE, true)); 156 if(sharedPref.getBoolean(SettingsActivity.KEY_SMS_NOISY, true)) { 164 if(sharedPref.getBoolean(SettingsActivity.KEY_SMS_BUZZY, false)) { 197 if(sharedPref.getBoolean(SettingsActivity.KEY_SMS_ENABLE, true)) { 202 if(sharedPref.getBoolean(SettingsActivity.KEY_UPLOAD_ENABLE, false)) { 209 if(sharedPref.getBoolean(SettingsActivity.KEY_PHONE_ENABLE, false)) { 228 if(sharedPref.getBoolean(SettingsActivity.KEY_PHONE_FULLSCREEN, false)) { 232 if(sharedPref.getBoolean(SettingsActivity.KEY_PHONE_NOISY, false)) { 236 if (sharedPref.getBoolean(SettingsActivity.KEY_PHONE_PERSON, false)) [all...] |