Home
last modified time | relevance | path

Searched refs:defaultValue (Results 1 – 25 of 199) sorted by relevance

12345678

/frameworks/native/services/surfaceflinger/
DSurfaceFlingerProperties.h32 int64_t vsync_event_phase_offset_ns(int64_t defaultValue);
34 int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue);
36 bool use_context_priority(bool defaultValue);
38 int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue);
40 int32_t max_graphics_width(int32_t defaultValue);
41 int32_t max_graphics_height(int32_t defaultValue);
43 bool has_wide_color_display(bool defaultValue);
45 bool running_without_sync_framework(bool defaultValue);
47 bool has_HDR_display(bool defaultValue);
49 int64_t present_time_offset_from_vsync_ns(int64_t defaultValue);
[all …]
DSurfaceFlingerProperties.cpp39 int64_t vsync_event_phase_offset_ns(int64_t defaultValue) { in vsync_event_phase_offset_ns() argument
45 defaultValue); in vsync_event_phase_offset_ns()
48 int64_t vsync_sf_event_phase_offset_ns(int64_t defaultValue) { in vsync_sf_event_phase_offset_ns() argument
54 defaultValue); in vsync_sf_event_phase_offset_ns()
57 bool use_context_priority(bool defaultValue) { in use_context_priority() argument
63 defaultValue); in use_context_priority()
66 int64_t max_frame_buffer_acquired_buffers(int64_t defaultValue) { in max_frame_buffer_acquired_buffers() argument
72 defaultValue); in max_frame_buffer_acquired_buffers()
75 int32_t max_graphics_width(int32_t defaultValue) { in max_graphics_width() argument
80 return defaultValue; in max_graphics_width()
[all …]
/frameworks/base/core/java/android/util/
DXmlPullAttributes.java63 String[] options, int defaultValue) { in getAttributeListValue() argument
65 getAttributeValue(namespace, attribute), options, defaultValue); in getAttributeListValue()
69 boolean defaultValue) { in getAttributeBooleanValue() argument
71 getAttributeValue(namespace, attribute), defaultValue); in getAttributeBooleanValue()
75 int defaultValue) { in getAttributeResourceValue() argument
77 getAttributeValue(namespace, attribute), defaultValue); in getAttributeResourceValue()
81 int defaultValue) { in getAttributeIntValue() argument
83 getAttributeValue(namespace, attribute), defaultValue); in getAttributeIntValue()
87 int defaultValue) { in getAttributeUnsignedIntValue() argument
89 getAttributeValue(namespace, attribute), defaultValue); in getAttributeUnsignedIntValue()
[all …]
DTypedXmlPullParser.java201 @NonNull String name, @Nullable byte[] defaultValue) { in getAttributeBytesHex() argument
203 if (index == -1) return defaultValue; in getAttributeBytesHex()
207 return defaultValue; in getAttributeBytesHex()
216 @NonNull String name, @Nullable byte[] defaultValue) { in getAttributeBytesBase64() argument
218 if (index == -1) return defaultValue; in getAttributeBytesBase64()
222 return defaultValue; in getAttributeBytesBase64()
231 int defaultValue) { in getAttributeInt() argument
233 if (index == -1) return defaultValue; in getAttributeInt()
237 return defaultValue; in getAttributeInt()
246 int defaultValue) { in getAttributeIntHex() argument
[all …]
DAttributeSet.java162 String[] options, int defaultValue); in getAttributeListValue() argument
174 boolean defaultValue); in getAttributeBooleanValue() argument
192 int defaultValue); in getAttributeResourceValue() argument
204 int defaultValue); in getAttributeIntValue() argument
218 int defaultValue); in getAttributeUnsignedIntValue() argument
230 float defaultValue); in getAttributeFloatValue() argument
243 public int getAttributeListValue(int index, String[] options, int defaultValue); in getAttributeListValue() argument
253 public boolean getAttributeBooleanValue(int index, boolean defaultValue); in getAttributeBooleanValue() argument
269 public int getAttributeResourceValue(int index, int defaultValue); in getAttributeResourceValue() argument
279 public int getAttributeIntValue(int index, int defaultValue); in getAttributeIntValue() argument
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DFlagManagerTest.cpp51 T defaultValue);
69 std::optional<T> systemPropertyOpt, T defaultValue) { in getValue() argument
70 return mFlagManager->getValue(experimentFlagName, systemPropertyOpt, defaultValue); in getValue()
76 const bool defaultValue = false; in TEST_F() local
78 const bool result = FlagManagerTest::getValue("test_flag", systemPropertyValue, defaultValue); in TEST_F()
79 ASSERT_EQ(result, defaultValue); in TEST_F()
83 const bool defaultValue = false; in TEST_F() local
85 const bool result = FlagManagerTest::getValue("test_flag", systemPropertyValue, defaultValue); in TEST_F()
91 const bool defaultValue = false; in TEST_F() local
93 const bool result = FlagManagerTest::getValue("test_flag", systemPropertyValue, defaultValue); in TEST_F()
[all …]
/frameworks/layoutlib/bridge/src/android/provider/
DDeviceConfig_Delegate.java30 public static String getString(String namespace, String name, String defaultValue) { in getString() argument
31 return defaultValue; in getString()
35 public static boolean getBoolean(String namespace, String name, boolean defaultValue) { in getBoolean() argument
36 return defaultValue; in getBoolean()
40 public static int getInt(String namespace, String name, int defaultValue) { in getInt() argument
41 return defaultValue; in getInt()
45 public static long getLong(String namespace, String name, long defaultValue) { in getLong() argument
46 return defaultValue; in getLong()
50 public static float getFloat(String namespace, String name, float defaultValue) { in getFloat() argument
51 return defaultValue; in getFloat()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java119 String[] options, int defaultValue) { in getAttributeListValue() argument
128 return XmlUtils.convertValueToList(value, options, defaultValue); in getAttributeListValue()
131 return defaultValue; in getAttributeListValue()
136 boolean defaultValue) { in getAttributeBooleanValue() argument
145 return XmlUtils.convertValueToBoolean(value, defaultValue); in getAttributeBooleanValue()
148 return defaultValue; in getAttributeBooleanValue()
152 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { in getAttributeResourceValue() argument
155 return resolveResourceValue(value, defaultValue); in getAttributeResourceValue()
159 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { in getAttributeIntValue() argument
162 return defaultValue; in getAttributeIntValue()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DNopAttributeSet.java66 defaultValue) { in getAttributeListValue() argument
72 boolean defaultValue) { in getAttributeBooleanValue() argument
77 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { in getAttributeResourceValue() argument
82 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { in getAttributeIntValue() argument
88 int defaultValue) { in getAttributeUnsignedIntValue() argument
94 float defaultValue) { in getAttributeFloatValue() argument
99 public int getAttributeListValue(int index, String[] options, int defaultValue) { in getAttributeListValue() argument
104 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument
109 public int getAttributeResourceValue(int index, int defaultValue) { in getAttributeResourceValue() argument
114 public int getAttributeIntValue(int index, int defaultValue) { in getAttributeIntValue() argument
[all …]
DBridgeLayoutParamsMapAttributes.java85 String[] options, int defaultValue) { in getAttributeListValue() argument
91 boolean defaultValue) { in getAttributeBooleanValue() argument
97 int defaultValue) { in getAttributeResourceValue() argument
103 int defaultValue) { in getAttributeIntValue() argument
109 int defaultValue) { in getAttributeUnsignedIntValue() argument
115 float defaultValue) { in getAttributeFloatValue() argument
121 String[] options, int defaultValue) { in getAttributeListValue() argument
126 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument
131 public int getAttributeResourceValue(int index, int defaultValue) { in getAttributeResourceValue() argument
136 public int getAttributeIntValue(int index, int defaultValue) { in getAttributeIntValue() argument
[all …]
DBridgeXmlBlockParser.java416 public boolean getAttributeBooleanValue(int index, boolean defaultValue) { in getAttributeBooleanValue() argument
417 return mAttrib.getAttributeBooleanValue(index, defaultValue); in getAttributeBooleanValue()
422 boolean defaultValue) { in getAttributeBooleanValue() argument
423 return mAttrib.getAttributeBooleanValue(namespace, attribute, defaultValue); in getAttributeBooleanValue()
427 public float getAttributeFloatValue(int index, float defaultValue) { in getAttributeFloatValue() argument
428 return mAttrib.getAttributeFloatValue(index, defaultValue); in getAttributeFloatValue()
432 public float getAttributeFloatValue(String namespace, String attribute, float defaultValue) { in getAttributeFloatValue() argument
433 return mAttrib.getAttributeFloatValue(namespace, attribute, defaultValue); in getAttributeFloatValue()
437 public int getAttributeIntValue(int index, int defaultValue) { in getAttributeIntValue() argument
438 return mAttrib.getAttributeIntValue(index, defaultValue); in getAttributeIntValue()
[all …]
/frameworks/base/core/java/android/provider/
DDeviceConfigInterface.java79 String getString(@NonNull String namespace, @NonNull String name, @NonNull String defaultValue); in getString() argument
85 int getInt(@NonNull String namespace, @NonNull String name, int defaultValue); in getInt() argument
91 long getLong(@NonNull String namespace, @NonNull String name, long defaultValue); in getLong() argument
97 boolean getBoolean(@NonNull String namespace, @NonNull String name, boolean defaultValue); in getBoolean() argument
103 float getFloat(@NonNull String namespace, @NonNull String name, float defaultValue); in getFloat() argument
162 public String getString(String namespace, String name, String defaultValue) {
163 return DeviceConfig.getString(namespace, name, defaultValue);
167 public int getInt(String namespace, String name, int defaultValue) {
168 return DeviceConfig.getInt(namespace, name, defaultValue);
172 public long getLong(String namespace, String name, long defaultValue) {
[all …]
DDeviceConfig.java834 @Nullable String defaultValue) { in getString() argument
836 return value != null ? value : defaultValue; in getString()
852 boolean defaultValue) { in getBoolean() argument
854 return value != null ? Boolean.parseBoolean(value) : defaultValue; in getBoolean()
869 public static int getInt(@NonNull String namespace, @NonNull String name, int defaultValue) { in getInt() argument
872 return defaultValue; in getInt()
878 return defaultValue; in getInt()
894 public static long getLong(@NonNull String namespace, @NonNull String name, long defaultValue) { in getLong() argument
897 return defaultValue; in getLong()
903 return defaultValue; in getLong()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DDeviceConfigHelper.java42 public long getLong(String name, long defaultValue) { in getLong() argument
44 DeviceConfig.getLong(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue)); in getLong()
47 public int getInt(String name, int defaultValue) { in getInt() argument
49 DeviceConfig.getInt(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue)); in getInt()
53 public String getString(String name, @Nullable String defaultValue) { in getString() argument
55 DeviceConfig.getString(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue)); in getString()
58 public boolean getBoolean(String name, boolean defaultValue) { in getBoolean() argument
60 DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_SYSTEMUI, name, defaultValue)); in getBoolean()
/frameworks/base/core/java/android/content/res/
DXmlBlock.java345 String[] options, int defaultValue) { in getAttributeListValue() argument
348 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue()
350 return defaultValue; in getAttributeListValue()
353 boolean defaultValue) { in getAttributeBooleanValue() argument
356 return getAttributeBooleanValue(idx, defaultValue); in getAttributeBooleanValue()
358 return defaultValue; in getAttributeBooleanValue()
361 int defaultValue) { in getAttributeResourceValue() argument
364 return getAttributeResourceValue(idx, defaultValue); in getAttributeResourceValue()
366 return defaultValue; in getAttributeResourceValue()
369 int defaultValue) { in getAttributeIntValue() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDeviceConfigProxy.java64 @NonNull String namespace, @NonNull String name, boolean defaultValue) { in getBoolean() argument
65 return DeviceConfig.getBoolean(namespace, name, defaultValue); in getBoolean()
72 @NonNull String namespace, @NonNull String name, float defaultValue) { in getFloat() argument
73 return DeviceConfig.getFloat(namespace, name, defaultValue); in getFloat()
79 public int getInt(@NonNull String namespace, @NonNull String name, int defaultValue) { in getInt() argument
80 return DeviceConfig.getInt(namespace, name, defaultValue); in getInt()
86 public long getLong(@NonNull String namespace, @NonNull String name, long defaultValue) { in getLong() argument
87 return DeviceConfig.getLong(namespace, name, defaultValue); in getLong()
102 @NonNull String namespace, @NonNull String name, @Nullable String defaultValue) { in getString() argument
103 return DeviceConfig.getString(namespace, name, defaultValue); in getString()
/frameworks/base/services/core/java/com/android/server/wm/
DLetterboxConfigurationDeviceConfig.java163 Boolean defaultValue = sKeyToDefaultValueMap.get(key); in readAndSaveValueFromDeviceConfig() local
164 if (defaultValue == null) { in readAndSaveValueFromDeviceConfig()
169 mIsCameraCompatTreatmentEnabled = getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
173 getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
176 mIsAllowIgnoreOrientationRequest = getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
179 mIsCompatFakeFocusAllowed = getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
182 mIsTranslucentLetterboxingAllowed = getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
186 getDeviceConfig(key, defaultValue); in readAndSaveValueFromDeviceConfig()
193 private boolean getDeviceConfig(String key, boolean defaultValue) { in getDeviceConfig() argument
195 key, defaultValue); in getDeviceConfig()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DDeviceConfigProxyFake.java104 public boolean getBoolean(String namespace, String name, boolean defaultValue) { in getBoolean() argument
107 return props.getBoolean(name, defaultValue); in getBoolean()
110 return defaultValue; in getBoolean()
114 public int getInt(String namespace, String name, int defaultValue) { in getInt() argument
117 return props.getInt(name, defaultValue); in getInt()
120 return defaultValue; in getInt()
124 public long getLong(String namespace, String name, long defaultValue) { in getLong() argument
127 return props.getLong(name, defaultValue); in getLong()
130 return defaultValue; in getLong()
139 public String getString(String namespace, String name, String defaultValue) { in getString() argument
[all …]
/frameworks/base/core/java/android/app/
DAppGlobals.java70 public static int getIntCoreSetting(String key, int defaultValue) { in getIntCoreSetting() argument
73 return currentActivityThread.getIntCoreSetting(key, defaultValue); in getIntCoreSetting()
75 return defaultValue; in getIntCoreSetting()
86 public static float getFloatCoreSetting(String key, float defaultValue) { in getFloatCoreSetting() argument
89 return currentActivityThread.getFloatCoreSetting(key, defaultValue); in getFloatCoreSetting()
91 return defaultValue; in getFloatCoreSetting()
/frameworks/libs/net/common/device/com/android/net/module/util/
DDeviceConfigUtils.java74 @Nullable String defaultValue) { in getDeviceConfigProperty() argument
76 return value != null ? value : defaultValue; in getDeviceConfigProperty()
87 int defaultValue) { in getDeviceConfigPropertyInt() argument
90 return (value != null) ? Integer.parseInt(value) : defaultValue; in getDeviceConfigPropertyInt()
92 return defaultValue; in getDeviceConfigPropertyInt()
111 int minimumValue, int maximumValue, int defaultValue) { in getDeviceConfigPropertyInt() argument
112 int value = getDeviceConfigPropertyInt(namespace, name, defaultValue); in getDeviceConfigPropertyInt()
113 if (value < minimumValue || value > maximumValue) return defaultValue; in getDeviceConfigPropertyInt()
125 @NonNull String name, boolean defaultValue) { in getDeviceConfigPropertyBoolean() argument
127 return (value != null) ? Boolean.parseBoolean(value) : defaultValue; in getDeviceConfigPropertyBoolean()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java54 T defaultValue; field in CoreSettingsObserver.DeviceConfigEntry
57 @NonNull T defaultValue) { in DeviceConfigEntry() argument
62 this.defaultValue = Objects.requireNonNull(defaultValue); in DeviceConfigEntry()
278 String defaultValue = ((DeviceConfigEntry<String>) entry).defaultValue; in populateSettingsFromDeviceConfig() local
280 DeviceConfig.getString(entry.namespace, entry.flag, defaultValue)); in populateSettingsFromDeviceConfig()
282 int defaultValue = ((DeviceConfigEntry<Integer>) entry).defaultValue; in populateSettingsFromDeviceConfig() local
284 DeviceConfig.getInt(entry.namespace, entry.flag, defaultValue)); in populateSettingsFromDeviceConfig()
286 float defaultValue = ((DeviceConfigEntry<Float>) entry).defaultValue; in populateSettingsFromDeviceConfig() local
288 DeviceConfig.getFloat(entry.namespace, entry.flag, defaultValue)); in populateSettingsFromDeviceConfig()
290 long defaultValue = ((DeviceConfigEntry<Long>) entry).defaultValue; in populateSettingsFromDeviceConfig() local
[all …]
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DFakeDeviceConfigInterface.java155 public String getString(String namespace, String name, String defaultValue) { in getString() argument
157 return value != null ? value : defaultValue; in getString()
161 public int getInt(String namespace, String name, int defaultValue) { in getInt() argument
164 return defaultValue; in getInt()
169 return defaultValue; in getInt()
174 public long getLong(String namespace, String name, long defaultValue) { in getLong() argument
177 return defaultValue; in getLong()
182 return defaultValue; in getLong()
187 public float getFloat(String namespace, String name, float defaultValue) { in getFloat() argument
190 return defaultValue; in getFloat()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetadataEditor.java332 public synchronized long getLong(int key, long defaultValue) in getLong() argument
337 return mEditorMetadata.getLong(String.valueOf(key), defaultValue); in getLong()
348 public synchronized String getString(int key, String defaultValue) in getString() argument
353 return mEditorMetadata.getString(String.valueOf(key), defaultValue); in getString()
364 public synchronized Bitmap getBitmap(int key, Bitmap defaultValue) in getBitmap() argument
369 return (mEditorArtwork != null ? mEditorArtwork : defaultValue); in getBitmap()
381 public synchronized Object getObject(int key, Object defaultValue) in getObject() argument
388 return defaultValue; in getObject()
394 return defaultValue; in getObject()
400 return defaultValue; in getObject()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataConfigManagerTest.java56 DataConfigManager.EventFrequency defaultValue = new DataConfigManager.EventFrequency(0, 2); in testParseSlidingWindowCounterThreshold() local
78 assertThat(invalidRange.timeWindow).isEqualTo(defaultValue.timeWindow); in testParseSlidingWindowCounterThreshold()
79 assertThat(invalidRange.eventNumOccurrence).isEqualTo(defaultValue.eventNumOccurrence); in testParseSlidingWindowCounterThreshold()
83 assertThat(invalidFormat2.timeWindow).isEqualTo(defaultValue.timeWindow); in testParseSlidingWindowCounterThreshold()
84 assertThat(invalidFormat2.eventNumOccurrence).isEqualTo(defaultValue.eventNumOccurrence); in testParseSlidingWindowCounterThreshold()
88 assertThat(invalidFormat3.timeWindow).isEqualTo(defaultValue.timeWindow); in testParseSlidingWindowCounterThreshold()
89 assertThat(invalidFormat3.eventNumOccurrence).isEqualTo(defaultValue.eventNumOccurrence); in testParseSlidingWindowCounterThreshold()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java122 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() argument
123 return get(context).getBoolean(key, defaultValue); in getBoolean()
130 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() argument
131 return get(context).getInt(key, defaultValue); in getInt()
138 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() argument
139 return get(context).getLong(key, defaultValue); in getLong()
146 public static String getString(Context context, @Key String key, String defaultValue) { in getString() argument
147 return get(context).getString(key, defaultValue); in getString()
159 Context context, @Key String key, Set<String> defaultValue) { in getStringSet() argument
160 return get(context).getStringSet(key, defaultValue); in getStringSet()

12345678