/frameworks/base/core/java/android/util/ |
XmlPullAttributes.java | 58 String[] options, int defaultValue) { 60 getAttributeValue(namespace, attribute), options, defaultValue); 64 boolean defaultValue) { 66 getAttributeValue(namespace, attribute), defaultValue); 70 int defaultValue) { 72 getAttributeValue(namespace, attribute), defaultValue); 76 int defaultValue) { 78 getAttributeValue(namespace, attribute), defaultValue); 82 int defaultValue) { 84 getAttributeValue(namespace, attribute), defaultValue); [all...] |
AttributeSet.java | 130 * @param defaultValue Value returned if attribute doesn't exist or no 133 * @return Index in to 'options' or defaultValue. 136 String[] options, int defaultValue); 143 * @param defaultValue What to return if the attribute isn't found. 148 boolean defaultValue); 161 * @param defaultValue What to return if the attribute isn't found. 166 int defaultValue); 173 * @param defaultValue What to return if the attribute isn't found. 178 int defaultValue); 187 * @param defaultValue What to return if the attribute isn't found [all...] |
/external/chromium_org/chrome/browser/ui/autofill/ |
mock_autofill_dialog_view_delegate.cc | 14 using testing::DefaultValue; 19 // N.B. Setting DefaultValue in the ctor and deleting it in the dtor will 23 DefaultValue<const DetailInputs&>::Set(default_inputs_); 24 DefaultValue<base::string16>::Set(base::string16()); 25 DefaultValue<GURL>::Set(GURL()); 26 DefaultValue<ValidityMessages>::Set(ValidityMessages()); 27 DefaultValue<gfx::Image>::Set(gfx::Image()); 28 DefaultValue<SuggestionState>::Set(SuggestionState(false, 34 DefaultValue<FieldIconMap>::Set(FieldIconMap()); 35 DefaultValue<std::vector<DialogNotification> >::Set [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
DefaultsTest.java | 28 assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue()); 29 assertEquals('\0', Defaults.defaultValue(char.class).charValue()); 30 assertEquals(0, Defaults.defaultValue(byte.class).byteValue()); 31 assertEquals(0, Defaults.defaultValue(short.class).shortValue()); 32 assertEquals(0, Defaults.defaultValue(int.class).intValue()); 33 assertEquals(0, Defaults.defaultValue(long.class).longValue()); 34 assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue()); 35 assertEquals(0.0d, Defaults.defaultValue(double.class).doubleValue()); 36 assertNull(Defaults.defaultValue(void.class)); 37 assertNull(Defaults.defaultValue(String.class)) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
BridgeXmlPullAttributes.java | 83 String[] options, int defaultValue) { 92 return XmlUtils.convertValueToList(value, options, defaultValue); 95 return defaultValue; 100 boolean defaultValue) { 109 return XmlUtils.convertValueToBoolean(value, defaultValue); 112 return defaultValue; 116 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { 119 return resolveResourceValue(value, defaultValue); 124 int defaultValue) { 133 return XmlUtils.convertValueToInt(value, defaultValue); [all...] |
/cts/tools/signature-tools/src/signature/model/impl/ |
SigAnnotationField.java | 27 private Object defaultValue = Uninitialized.unset(); 34 return defaultValue; 37 public void setDefaultValue(Object defaultValue) { 38 this.defaultValue = defaultValue;
|
/packages/apps/Browser/res/xml/ |
debug_preferences.xml | 22 android:defaultValue="true" 27 android:defaultValue="false" 36 android:defaultValue="0"/> 40 android:defaultValue="false" 45 android:defaultValue="false" 52 android:defaultValue="true" 57 android:defaultValue="false" 62 android:defaultValue="true" 67 android:defaultValue="false" 72 android:defaultValue="false [all...] |
advanced_preferences.xml | 24 android:defaultValue="google" 30 android:defaultValue="false" 36 android:defaultValue="true" 41 android:defaultValue="false" 47 android:defaultValue="ON" 62 android:defaultValue="MEDIUM" 69 android:defaultValue="true" 75 android:defaultValue="true" 81 android:defaultValue="true" 87 android:defaultValue="@string/pref_default_text_encoding_default [all...] |
/external/chromium_org/base/test/ |
mock_time_provider.cc | 8 using ::testing::DefaultValue; 16 DCHECK(!DefaultValue<Time>::IsSet()); 18 DefaultValue<Time>::Set(Time::FromInternalValue(0)); 23 DefaultValue<Time>::Clear();
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeLayoutParamsMapAttributes.java | 80 String[] options, int defaultValue) { 86 boolean defaultValue) { 92 int defaultValue) { 98 int defaultValue) { 104 int defaultValue) { 110 float defaultValue) { 116 String[] options, int defaultValue) { 121 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { 126 public int getAttributeResourceValue(int index, int defaultValue) { 131 public int getAttributeIntValue(int index, int defaultValue) { [all...] |
/libcore/luni/src/main/java/java/io/ |
EmulatedFieldsForLoading.java | 83 * default value <code>defaultValue</code> is returned instead. 87 * @param defaultValue 98 public byte get(String name, byte defaultValue) throws IOException, 100 return emulatedFields.get(name, defaultValue); 106 * default value <code>defaultValue</code> is returned instead. 110 * @param defaultValue 121 public char get(String name, char defaultValue) throws IOException, 123 return emulatedFields.get(name, defaultValue); 129 * default value <code>defaultValue</code> is returned instead. 133 * @param defaultValue [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
ContextFeaturesClientImpl.cpp | 65 void set(bool value, bool defaultValue) 68 m_defaultValue = defaultValue; 71 bool needsRefresh(bool defaultValue) const 73 return m_value == NeedsRefresh || m_defaultValue != defaultValue; 124 bool ContextFeaturesClientImpl::isEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) 127 if (cache.needsRefresh(defaultValue)) 128 cache.set(askIfIsEnabled(document, type, defaultValue), defaultValue); 137 bool ContextFeaturesClientImpl::askIfIsEnabled(Document* document, ContextFeatures::FeatureType type, bool defaultValue) 140 return defaultValue; [all...] |
EditorClientImpl.cpp | 61 bool EditorClientImpl::canCopyCut(Frame* frame, bool defaultValue) const 65 return webFrame->permissionClient()->allowWriteToClipboard(webFrame, defaultValue); 68 return defaultValue; 69 return m_webView->permissionClient()->allowWriteToClipboard(webFrame, defaultValue); 72 bool EditorClientImpl::canPaste(Frame* frame, bool defaultValue) const 76 return webFrame->permissionClient()->allowReadFromClipboard(webFrame, defaultValue); 79 return defaultValue; 80 return m_webView->permissionClient()->allowReadFromClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
TestAttributeSet.java | 54 public boolean getAttributeBooleanValue(String namespace, String attribute, boolean defaultValue) { 56 return (value != null) ? Boolean.valueOf(value) : defaultValue; 65 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { 72 return (value != null) ? Integer.valueOf(value) : defaultValue; 101 public int getAttributeListValue(String namespace, String attribute, String[] options, int defaultValue) { 106 public int getAttributeUnsignedIntValue(String namespace, String attribute, int defaultValue) { 111 public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) { 118 return (value != null) ? Float.valueOf(value) : defaultValue; 122 public int getAttributeListValue(int index, String[] options, int defaultValue) { 127 public boolean getAttributeBooleanValue(int resourceId, boolean defaultValue) { [all...] |
/packages/apps/CellBroadcastReceiver/res/xml/ |
preferences.xml | 26 <CheckBoxPreference android:defaultValue="true" 32 <CheckBoxPreference android:defaultValue="true" 38 <CheckBoxPreference android:defaultValue="true" 43 <CheckBoxPreference android:defaultValue="true" 52 android:defaultValue="4" 59 android:defaultValue="0" 62 <CheckBoxPreference android:defaultValue="true" 67 <CheckBoxPreference android:defaultValue="true" 78 <CheckBoxPreference android:defaultValue="false" 90 <CheckBoxPreference android:defaultValue="true [all...] |
/frameworks/base/tests/LocationTracker/res/xml/ |
preferences.xml | 23 android:defaultValue="0" 29 android:defaultValue="0" 39 android:defaultValue="true" 44 android:defaultValue="true" 49 android:defaultValue="false" 58 android:defaultValue="false"
|
/packages/inputmethods/LatinIME/java/res/xml/ |
prefs_for_debug.xml | 26 android:defaultValue="false" /> 35 android:defaultValue="@string/config_default_keyboard_theme_index" /> 41 android:defaultValue="false" /> 47 android:defaultValue="false" /> 53 android:defaultValue="false" /> 56 android:defaultValue="false"
|
/cts/apps/CtsVerifier/res/xml/ |
camera_fov_calibration_preferences.xml | 8 android:defaultValue="36.8" 14 android:defaultValue="99.7"
|
/external/chromium_org/extensions/common/ |
feature_switch.h | 29 enum DefaultValue { 52 DefaultValue default_value); 55 DefaultValue default_value); 69 DefaultValue default_value);
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
Settings.java | 109 int getUploadBandwidth(int defaultValue) { 111 return (bit & set) != 0 ? values[UPLOAD_BANDWIDTH] : defaultValue; 114 int getDownloadBandwidth(int defaultValue) { 116 return (bit & set) != 0 ? values[DOWNLOAD_BANDWIDTH] : defaultValue; 119 int getRoundTripTime(int defaultValue) { 121 return (bit & set) != 0 ? values[ROUND_TRIP_TIME] : defaultValue; 124 int getMaxConcurrentStreams(int defaultValue) { 126 return (bit & set) != 0 ? values[MAX_CONCURRENT_STREAMS] : defaultValue; 129 int getCurrentCwnd(int defaultValue) { 131 return (bit & set) != 0 ? values[CURRENT_CWND] : defaultValue; [all...] |
/cts/tools/signature-tools/test/signature/converter/ |
ConvertAnnotationTest.java | 129 // tests whether default int value has the correct type and defaultValue
150 Integer defaultValue = (Integer)annotationField.getDefaultValue();
151 assertEquals(1, defaultValue.intValue());
154 // tests whether default int[] value has the correct type and defaultValue
174 Object[] defaultValue = (Object[])field.getDefaultValue();
175 assertEquals(0, defaultValue.length);
178 // tests whether default int[] value has the correct type and defaultValue
198 Object[] defaultValue = (Object[])field.getDefaultValue();
199 assertEquals(2, defaultValue.length);
201 Object defaultValue0 = defaultValue[0]; [all...] |
/packages/apps/Camera/res/xml/ |
video_preferences.xml | 22 camera:defaultValue="@string/pref_video_quality_default" 28 camera:defaultValue="@string/pref_video_time_lapse_frame_interval_default" 35 camera:defaultValue="@string/pref_camera_video_flashmode_default" 43 camera:defaultValue="@string/pref_camera_whitebalance_default" 51 camera:defaultValue="@string/pref_camera_id_default" 58 camera:defaultValue="@string/pref_video_effect_default" 66 camera:defaultValue="@string/pref_camera_recordlocation_default"
|
camera_preferences.xml | 22 camera:defaultValue="@string/pref_camera_flashmode_default" 30 camera:defaultValue="@string/pref_exposure_default" 35 camera:defaultValue="@string/pref_camera_scenemode_default" 42 camera:defaultValue="@string/pref_camera_whitebalance_default" 50 camera:defaultValue="@string/pref_camera_recordlocation_default" 63 camera:defaultValue="@array/pref_camera_focusmode_default_array" 69 camera:defaultValue="@string/pref_camera_id_default" 76 camera:defaultValue="@string/pref_camera_hdr_default" 82 camera:defaultValue="@string/pref_camera_timer_default" 86 camera:defaultValue="@string/pref_camera_timer_sound_default [all...] |
/packages/apps/LegacyCamera/res/xml/ |
camera_preferences.xml | 22 camera:defaultValue="@string/pref_camera_flashmode_default" 30 camera:defaultValue="@string/pref_exposure_default" 35 camera:defaultValue="@string/pref_camera_scenemode_default" 42 camera:defaultValue="@string/pref_camera_whitebalance_default" 50 camera:defaultValue="@string/pref_camera_recordlocation_default" 63 camera:defaultValue="@array/pref_camera_focusmode_default_array" 69 camera:defaultValue="@string/pref_camera_id_default"
|
/packages/apps/Calendar/res/xml/ |
general_preferences.xml | 21 android:defaultValue="false" 25 android:defaultValue="false" 29 android:defaultValue="@string/preferences_week_start_day_default" 36 android:defaultValue="false" 42 android:defaultValue="@string/preferences_home_tz_default" 54 android:defaultValue="true" 62 android:defaultValue="content://settings/system/notification_sound" /> 68 android:defaultValue="false" /> 73 android:defaultValue="false" 78 android:defaultValue="@string/preferences_default_reminder_default [all...] |