Home
last modified time | relevance | path

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

123456789

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothHeadsetClient.java801 final boolean defaultValue = false; in connect()
809 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
814 return defaultValue; in connect()
832 final boolean defaultValue = false; in disconnect()
840 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
845 return defaultValue; in disconnect()
862 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
872 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
881 return defaultValue; in getConnectedDevices()
899 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothHidHost.java299 final boolean defaultValue = false; in connect()
307 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
312 return defaultValue; in connect()
345 final boolean defaultValue = false; in disconnect()
353 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
358 return defaultValue; in disconnect()
373 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
383 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
389 return defaultValue; in getConnectedDevices()
403 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothHeadset.java412 final boolean defaultValue = false; in connect()
420 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
425 return defaultValue; in connect()
457 final boolean defaultValue = false; in disconnect()
465 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
470 return defaultValue; in disconnect()
482 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
492 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
498 return defaultValue; in getConnectedDevices()
510 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothDevice.java1491 final String defaultValue = null; in getIdentityAddress() local
1503 return defaultValue; in getIdentityAddress()
1521 final String defaultValue = null; in getName() local
1529 String name = recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getName()
1541 return defaultValue; in getName()
1556 final int defaultValue = DEVICE_TYPE_UNKNOWN; in getType() local
1564 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getType()
1569 return defaultValue; in getType()
1585 final String defaultValue = null; in getAlias() local
1593 String alias = recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getAlias()
[all …]
DBluetoothHidDevice.java462 final List<BluetoothDevice> defaultValue = new ArrayList<>(); in getConnectedDevices() local
472 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
478 return defaultValue; in getConnectedDevices()
487 final List<BluetoothDevice> defaultValue = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
497 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getDevicesMatchingConnectionStates()
503 return defaultValue; in getDevicesMatchingConnectionStates()
512 final int defaultValue = STATE_DISCONNECTED; in getConnectionState() local
520 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getConnectionState()
525 return defaultValue; in getConnectionState()
574 final boolean defaultValue = result; in registerApp()
[all …]
DBluetoothHearingAid.java191 final boolean defaultValue = false; in connect()
199 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
204 return defaultValue; in connect()
237 final boolean defaultValue = false; in disconnect()
245 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
250 return defaultValue; in disconnect()
262 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
272 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
278 return defaultValue; in getConnectedDevices()
291 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothA2dp.java333 final boolean defaultValue = false; in connect()
341 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
346 return defaultValue; in connect()
379 final boolean defaultValue = false; in disconnect()
387 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
392 return defaultValue; in disconnect()
404 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
414 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
420 return defaultValue; in getConnectedDevices()
432 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothA2dpSink.java147 final boolean defaultValue = false; in connect()
155 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
160 return defaultValue; in connect()
192 final boolean defaultValue = false; in disconnect()
200 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
205 return defaultValue; in disconnect()
219 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
229 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
235 return defaultValue; in getConnectedDevices()
249 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
DBluetoothMapClient.java265 final boolean defaultValue = false; in isConnected()
273 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in isConnected()
278 return defaultValue; in isConnected()
295 final boolean defaultValue = false; in connect()
303 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
308 return defaultValue; in connect()
327 final boolean defaultValue = false; in disconnect()
335 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
340 return defaultValue; in disconnect()
357 final List<BluetoothDevice> defaultValue = new ArrayList<>(); in getConnectedDevices() local
[all …]
DBluetoothCsipSetCoordinator.java273 final UUID defaultValue = null; in lockGroup() local
284 return ret == null ? defaultValue : ret.getUuid(); in lockGroup()
291 return defaultValue; in lockGroup()
308 final boolean defaultValue = false; in unlockGroup()
324 return defaultValue; in unlockGroup()
340 final Map defaultValue = new HashMap<>(); in getGroupUuidMapByDevice() local
348 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getGroupUuidMapByDevice()
355 return defaultValue; in getGroupUuidMapByDevice()
370 final List<Integer> defaultValue = new ArrayList<>(); in getAllGroupIds() local
379 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getAllGroupIds()
[all …]
DBluetoothLeAudio.java738 final boolean defaultValue = false; in connect()
746 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
751 return defaultValue; in connect()
782 final boolean defaultValue = false; in disconnect()
790 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
795 return defaultValue; in disconnect()
820 final BluetoothDevice defaultValue = null; in getConnectedGroupLeadDevice() local
830 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedGroupLeadDevice()
836 return defaultValue; in getConnectedGroupLeadDevice()
848 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
[all …]
DBluetoothSap.java179 final int defaultValue = BluetoothSap.STATE_ERROR; in getState() local
187 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getState()
192 return defaultValue; in getState()
207 final BluetoothDevice defaultValue = null; in getClient() local
217 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getClient()
223 return defaultValue; in getClient()
238 final boolean defaultValue = false; in isConnected()
246 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in isConnected()
251 return defaultValue; in isConnected()
279 final boolean defaultValue = false; in disconnect()
[all …]
DBluetoothMap.java151 final int defaultValue = BluetoothMap.STATE_ERROR; in getState() local
159 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in getState()
164 return defaultValue; in getState()
180 final BluetoothDevice defaultValue = null; in getClient() local
190 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getClient()
196 return defaultValue; in getClient()
211 final boolean defaultValue = false; in isConnected()
219 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in isConnected()
224 return defaultValue; in isConnected()
253 final boolean defaultValue = false; in disconnect()
[all …]
DBluetoothPbapClient.java169 final boolean defaultValue = false; in connect()
177 return recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in connect()
182 return defaultValue; in connect()
203 final boolean defaultValue = true; in disconnect()
211 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue); in disconnect()
217 return defaultValue; in disconnect()
236 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getConnectedDevices() local
246 recv.awaitResultNoInterrupt(getSyncTimeout()).getValue(defaultValue), in getConnectedDevices()
255 return defaultValue; in getConnectedDevices()
275 final List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java297 boolean defaultValue = false; in connect()
299 defaultValue = service.connect(device); in connect()
301 receiver.send(defaultValue); in connect()
312 boolean defaultValue = false; in disconnect()
314 defaultValue = service.disconnect(device); in disconnect()
316 receiver.send(defaultValue); in disconnect()
327 List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(0); in getConnectedDevices() local
329 defaultValue = service.getConnectedDevices(); in getConnectedDevices()
331 receiver.send(defaultValue); in getConnectedDevices()
342 List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(0); in getDevicesMatchingConnectionStates() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DCompatUtils.java93 public static Object invoke(final Object receiver, final Object defaultValue, in invoke() argument
96 return defaultValue; in invoke()
104 return defaultValue; in invoke()
107 public static Object getFieldValue(final Object receiver, final Object defaultValue, in getFieldValue() argument
110 return defaultValue; in getFieldValue()
117 return defaultValue; in getFieldValue()
146 final T defaultValue, final Class<?>... parameterTypes) { in getMethod() argument
148 defaultValue); in getMethod()
151 public ToIntMethodWrapper getPrimitiveMethod(final String name, final int defaultValue, in getPrimitiveMethod() argument
154 defaultValue); in getPrimitiveMethod()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DLauncherPrefsTest.kt72 putSync(TEST_BOOLEAN_ITEM.to(TEST_BOOLEAN_ITEM.defaultValue)) in has_keyPresentInLauncherPrefs_returnsTrue()
84 putSync(TEST_STRING_ITEM.to(TEST_STRING_ITEM.defaultValue)) in addListener_listeningForStringItemUpdates_isCorrectlyNotifiedOfUpdates()
86 putSync(TEST_STRING_ITEM.to(TEST_STRING_ITEM.defaultValue + "abc")) in addListener_listeningForStringItemUpdates_isCorrectlyNotifiedOfUpdates()
101 putSync(TEST_STRING_ITEM.to(TEST_STRING_ITEM.defaultValue + "hello.")) in removeListener_previouslyListeningForStringItemUpdates_isNoLongerNotifiedOfUpdates()
117 TEST_INT_ITEM.to(TEST_INT_ITEM.defaultValue + 123), in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
118 TEST_STRING_ITEM.to(TEST_STRING_ITEM.defaultValue + "abc"), in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
119 TEST_BOOLEAN_ITEM.to(!TEST_BOOLEAN_ITEM.defaultValue) in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
126 TEST_INT_ITEM.to(TEST_INT_ITEM.defaultValue), in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
127 TEST_STRING_ITEM.to(TEST_STRING_ITEM.defaultValue), in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
128 TEST_BOOLEAN_ITEM.to(TEST_BOOLEAN_ITEM.defaultValue) in addListenerAndRemoveListener_forMultipleItems_bothWorkProperly()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/util/
DFakeBugleGservices.java31 public long getLong(final String key, final long defaultValue) { in getLong() argument
32 return defaultValue; in getLong()
36 public int getInt(final String key, final int defaultValue) { in getInt() argument
37 return defaultValue; in getInt()
41 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument
42 return defaultValue; in getBoolean()
46 public String getString(final String key, final String defaultValue) { in getString() argument
47 return defaultValue; in getString()
51 public float getFloat(String key, float defaultValue) { in getFloat() argument
52 return defaultValue; in getFloat()
/packages/apps/Messaging/src/com/android/messaging/util/
DBugleGservicesImpl.java40 public long getLong(final String key, final long defaultValue) { in getLong() argument
42 return defaultValue; in getLong()
46 public int getInt(final String key, final int defaultValue) { in getInt() argument
48 return defaultValue; in getInt()
52 public boolean getBoolean(final String key, final boolean defaultValue) { in getBoolean() argument
54 return defaultValue; in getBoolean()
58 public String getString(final String key, final String defaultValue) { in getString() argument
60 return defaultValue; in getString()
64 public float getFloat(final String key, final float defaultValue) { in getFloat() argument
66 return defaultValue; in getFloat()
/packages/modules/StatsD/statsd/src/flags/
DFlagProvider.cpp37 string FlagProvider::getFlagString(const string& flagName, const string& defaultValue) const { in getFlagString()
38 return getFlagStringInternal(flagName, defaultValue, /* isBootFlag= */ false); in getFlagString()
41 bool FlagProvider::getFlagBool(const string& flagName, const string& defaultValue) const { in getFlagBool()
42 return getFlagStringInternal(flagName, defaultValue, /* isBootFlag= */ false) == FLAG_TRUE; in getFlagBool()
45 string FlagProvider::getBootFlagString(const string& flagName, const string& defaultValue) const { in getBootFlagString()
46 return getFlagStringInternal(flagName, defaultValue, /* isBootFlag= */ true); in getBootFlagString()
49 bool FlagProvider::getBootFlagBool(const string& flagName, const string& defaultValue) const { in getBootFlagBool()
50 return getFlagStringInternal(flagName, defaultValue, /* isBootFlag= */ true) == FLAG_TRUE; in getBootFlagBool()
88 const std::string& defaultValue, in getFlagStringInternal() argument
92 return defaultValue; in getFlagStringInternal()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbSettingsStore.java202 private <T> T getObject(@NonNull String key, T defaultValue) { in getObject() argument
205 if (defaultValue instanceof Boolean) { in getObject()
206 value = mSettings.getBoolean(key, (Boolean) defaultValue); in getObject()
207 } else if (defaultValue instanceof Integer) { in getObject()
208 value = mSettings.getInt(key, (Integer) defaultValue); in getObject()
209 } else if (defaultValue instanceof Long) { in getObject()
210 value = mSettings.getLong(key, (Long) defaultValue); in getObject()
211 } else if (defaultValue instanceof Double) { in getObject()
212 value = mSettings.getDouble(key, (Double) defaultValue); in getObject()
213 } else if (defaultValue instanceof String) { in getObject()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hid/
DHidHostService.java360 boolean defaultValue = false; in connect()
363 defaultValue = service.connect(device); in connect()
365 receiver.send(defaultValue); in connect()
376 boolean defaultValue = false; in disconnect()
379 defaultValue = service.disconnect(device); in disconnect()
381 receiver.send(defaultValue); in disconnect()
392 int defaultValue = BluetoothHidHost.STATE_DISCONNECTED; in getConnectionState() local
394 defaultValue = service.getConnectionState(device); in getConnectionState()
396 receiver.send(defaultValue); in getConnectionState()
414 List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(0); in getDevicesMatchingConnectionStates() local
[all …]
DHidDeviceService.java328 boolean defaultValue = false; in registerApp()
330 defaultValue = service.registerApp(sdp, inQos, outQos, callback); in registerApp()
332 receiver.send(defaultValue); in registerApp()
342 boolean defaultValue = false; in unregisterApp()
347 defaultValue = service.unregisterApp(); in unregisterApp()
349 receiver.send(defaultValue); in unregisterApp()
360 boolean defaultValue = false ; in sendReport()
365 defaultValue = service.sendReport(device, id, data); in sendReport()
367 receiver.send(defaultValue); in sendReport()
379 boolean defaultValue = false; in replyReport()
[all …]
/packages/modules/Permission/framework-s/java/android/safetycenter/config/
DBuilderUtils.java40 @Nullable Object defaultValue) { in validateAttribute() argument
44 boolean nonDefaultValueProvided = !Objects.equals(attribute, defaultValue); in validateAttribute()
80 int defaultValue, in validateIntDef() argument
82 validateAttribute(value, name, required, prohibited, defaultValue); in validateIntDef()
84 return defaultValue; in validateIntDef()
102 int defaultValue) { in validateInteger() argument
103 validateAttribute(value, name, required, prohibited, defaultValue); in validateInteger()
105 return defaultValue; in validateInteger()
115 boolean defaultValue) { in validateBoolean() argument
116 validateAttribute(value, name, required, prohibited, defaultValue); in validateBoolean()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java513 boolean defaultValue = false; in connectWithAttribution()
515 defaultValue = service.connect(device); in connectWithAttribution()
517 receiver.send(defaultValue); in connectWithAttribution()
541 boolean defaultValue = false; in disconnectWithAttribution()
543 defaultValue = service.disconnect(device); in disconnectWithAttribution()
545 receiver.send(defaultValue); in disconnectWithAttribution()
569 List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(0); in getConnectedDevicesWithAttribution() local
571 defaultValue = service.getConnectedDevices(); in getConnectedDevicesWithAttribution()
573 receiver.send(defaultValue); in getConnectedDevicesWithAttribution()
584 List<BluetoothDevice> defaultValue = new ArrayList<BluetoothDevice>(0); in getDevicesMatchingConnectionStates() local
[all …]

123456789