Home
last modified time | relevance | path

Searched refs:valid (Results 1 – 25 of 109) sorted by relevance

12345

/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DResponderLocationTest.java210 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsNull()
214 assertFalse(valid); in testIfLciOrLcrIsNull()
226 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsEmpty()
230 assertFalse(valid); in testIfLciOrLcrIsEmpty()
244 boolean valid = responderLocation.isValid(); in testIfLciShortBuffer()
248 assertFalse(valid); in testIfLciShortBuffer()
262 boolean valid = responderLocation.isValid(); in testLciValidSubelement()
267 assertTrue(valid); in testLciValidSubelement()
306 boolean valid = responderLocation.isValid(); in testLciInvalidElement()
310 assertFalse(valid); in testLciInvalidElement()
[all …]
DCivicLocationTest.java104 boolean valid = civicLocation.isValid(); in testCivicLocationNullCountryCode()
106 assertFalse(valid); in testCivicLocationNullCountryCode()
116 boolean valid = civicLocation.isValid(); in testCivicLocationCountryCodeTooShort()
118 assertFalse(valid); in testCivicLocationCountryCodeTooShort()
128 boolean valid = civicLocation.isValid(); in testCivicLocationCountryCodeTooLong()
130 assertFalse(valid); in testCivicLocationCountryCodeTooLong()
140 boolean valid = civicLocation.isValid(); in testCivicLocationNullBuffer()
142 assertFalse(valid); in testCivicLocationNullBuffer()
152 boolean valid = civicLocation.isValid(); in testCivicLocationEmptyBuffer()
154 assertFalse(valid); in testCivicLocationEmptyBuffer()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp203 if (!sCallbackEnv.valid()) return; in btgattc_register_app_cb()
215 if (!sCallbackEnv.valid()) return; in btgattc_scan_result_cb()
233 if (!sCallbackEnv.valid()) return; in btgattc_open_cb()
244 if (!sCallbackEnv.valid()) return; in btgattc_close_cb()
254 if (!sCallbackEnv.valid()) return; in btgattc_search_complete_cb()
263 if (!sCallbackEnv.valid()) return; in btgattc_register_for_notification_cb()
271 if (!sCallbackEnv.valid()) return; in btgattc_notify_cb()
288 if (!sCallbackEnv.valid()) return; in btgattc_read_characteristic_cb()
307 if (!sCallbackEnv.valid()) return; in btgattc_write_characteristic_cb()
315 if (!sCallbackEnv.valid()) return; in btgattc_execute_write_cb()
[all …]
Dcom_android_bluetooth_hfpclient.cpp55 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
72 if (!sCallbackEnv.valid()) return; in connection_state_cb()
86 if (!sCallbackEnv.valid()) return; in audio_state_cb()
97 if (!sCallbackEnv.valid()) return; in vr_cmd_cb()
109 if (!sCallbackEnv.valid()) return; in network_state_cb()
131 if (!sCallbackEnv.valid()) return; in network_signal_cb()
142 if (!sCallbackEnv.valid()) return; in battery_level_cb()
153 if (!sCallbackEnv.valid()) return; in current_operator_cb()
173 if (!sCallbackEnv.valid()) return; in call_cb()
185 if (!sCallbackEnv.valid()) return; in callsetup_cb()
[all …]
Dcom_android_bluetooth_hfp.cpp61 if (!sCallbackEnv.valid()) return nullptr; in marshall_bda()
87 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback()
102 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback()
115 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VoiceRecognitionCallback()
130 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AnswerCallCallback()
145 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in HangupCallCallback()
161 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VolumeControlCallback()
176 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in DialCallCallback()
200 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in DtmfCmdCallback()
217 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in NoiseReductionCallback()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp66 if (!sCallbackEnv.valid()) return; in btavrcp_passthrough_response_callback()
89 if (!sCallbackEnv.valid()) return; in btavrcp_groupnavigation_response_callback()
104 if (!sCallbackEnv.valid()) return; in btavrcp_connection_state_callback()
129 if (!sCallbackEnv.valid()) return; in btavrcp_get_rcfeatures_callback()
153 if (!sCallbackEnv.valid()) return; in btavrcp_setplayerapplicationsetting_rsp_callback()
179 if (!sCallbackEnv.valid()) return; in btavrcp_playerapplicationsetting_callback()
231 if (!sCallbackEnv.valid()) return; in btavrcp_playerapplicationsetting_changed_callback()
274 if (!sCallbackEnv.valid()) return; in btavrcp_set_abs_vol_cmd_callback()
298 if (!sCallbackEnv.valid()) return; in btavrcp_register_notification_absvol_callback()
328 if (!sCallbackEnv.valid()) return; in btavrcp_track_changed_callback()
[all …]
Dcom_android_bluetooth_avrcp_target.cpp334 if (!sCallbackEnv.valid() || !mJavaInterface) return; in sendMediaKeyEvent()
505 if (!sCallbackEnv.valid() || !mJavaInterface) return SongInfo(); in getSongInfo()
518 if (!sCallbackEnv.valid() || !mJavaInterface) return PlayStatus(); in getCurrentPlayStatus()
550 if (!sCallbackEnv.valid() || !mJavaInterface) return ""; in getCurrentMediaId()
570 if (!sCallbackEnv.valid() || !mJavaInterface) return std::vector<SongInfo>(); in getNowPlayingList()
605 if (!sCallbackEnv.valid() || !mJavaInterface) return 0u; in getCurrentPlayerId()
617 if (!sCallbackEnv.valid() || !mJavaInterface) in getMediaPlayerList()
683 if (!sCallbackEnv.valid() || !mJavaInterface) return; in setBrowsedPlayer()
787 if (!sCallbackEnv.valid() || !mJavaInterface) return; in getFolderItems()
803 if (!sCallbackEnv.valid() || !mJavaInterface) return; in playItem()
[all …]
Dcom_android_bluetooth_hid_host.cpp42 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
58 if (!sCallbackEnv.valid()) return; in connection_state_callback()
78 if (!sCallbackEnv.valid()) return; in get_protocol_mode_callback()
102 if (!sCallbackEnv.valid()) return; in get_report_callback()
134 if (!sCallbackEnv.valid()) return; in virtual_unplug_callback()
151 if (!sCallbackEnv.valid()) return; in handshake_callback()
170 if (!sCallbackEnv.valid()) return; in get_idle_time_callback()
Dcom_android_bluetooth_le_audio.cpp57 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
78 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupStatus()
92 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnAudioConf()
114 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnSetMemberAvailable()
Dcom_android_bluetooth_pan.cpp48 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
68 if (!sCallbackEnv.valid()) return; in control_state_callback()
87 if (!sCallbackEnv.valid()) return; in connection_state_callback()
Dcom_android_bluetooth_a2dp_sink.cpp39 if (!sCallbackEnv.valid()) return; in bta2dp_connection_state_callback()
58 if (!sCallbackEnv.valid()) return; in bta2dp_audio_state_callback()
78 if (!sCallbackEnv.valid()) return; in bta2dp_audio_config_callback()
Dcom_android_bluetooth_btservice_AdapterService.cpp104 if (!sCallbackEnv.valid()) return; in adapter_state_change_callback()
132 if (!sCallbackEnv.valid()) return; in adapter_properties_callback()
186 if (!sCallbackEnv.valid()) return; in remote_device_properties_callback()
248 if (!sCallbackEnv.valid()) return; in device_found_callback()
283 if (!sCallbackEnv.valid()) return; in bond_state_changed_callback()
311 if (!sCallbackEnv.valid()) return; in acl_state_changed_callback()
328 if (!sCallbackEnv.valid()) return; in discovery_state_changed_callback()
344 if (!sCallbackEnv.valid()) return; in pin_request_callback()
378 if (!sCallbackEnv.valid()) return; in ssp_request_callback()
524 if (!sCallbackEnv.valid()) return; in generate_local_oob_data_callback()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java93 public boolean valid = false; field in HandoverDataParser.BluetoothHandoverData
370 result.valid = false; in parseNokia()
377 result.valid = true; in parseNokia()
388 if (result.valid && result.name == null) result.name = ""; in parseNokia()
394 result.valid = false; in parseBtOob()
400 result.valid = true; in parseBtOob()
453 if (result.valid && result.name == null) result.name = ""; in parseBtOob()
459 result.valid = false; in parseBleOob()
483 result.valid = true; in parseBleOob()
490 result.valid = false; in parseBleOob()
[all …]
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs336 valid: SetattrValid, in setattr()
343 if valid.contains(SetattrValid::SIZE) { in setattr()
351 if valid.contains(SetattrValid::MODE) { in setattr()
355 if valid.contains(SetattrValid::UID) { in setattr()
359 if valid.contains(SetattrValid::GID) { in setattr()
363 if valid.contains(SetattrValid::CTIME) { in setattr()
366 if valid.intersects(SetattrValid::ATIME | SetattrValid::ATIME_NOW) { in setattr()
369 if valid.intersects(SetattrValid::MTIME | SetattrValid::MTIME_NOW) { in setattr()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DCachedLater.java81 boolean valid; in getLater()
84 valid = mValid; in getLater()
86 if (!valid) { in getLater()
93 if (valid) { in getLater()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java60 valid = parseEmail(emailString); in EmailAddress()
242 return valid; in isValid()
265 valid = isValidInternal(); in setHost()
268 protected boolean valid = false; field in EmailAddress
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp28 #define valid(l) ccw(orig(basel), dest(l), dest(basel)) macro
544 if (valid(t=onext(lcand))) {
547 if (valid(basel, t)) {
556 if (valid(t=(EdgePointer)oprev(rcand))) {
559 if (valid(basel, t)) {
569 lvalid = valid(lcand);
570 rvalid = valid(rcand);
572 lvalid = valid(basel, lcand);
573 rvalid = valid(basel, rcand);
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp93 if (!cdLoc.valid) { in ExtractMetadata()
102 if (sigLoc.valid) { in ExtractMetadata()
148 location.valid = true; in FindCDRecord()
167 if (!location.valid) { in GetCDLocation()
199 location.valid = true; in GetSignatureLocation()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java136 boolean valid = result.isValidForDvr(); in onReceive()
137 if (valid == mStorageValid) { in onReceive()
140 mStorageValid = valid; in onReceive()
142 l.onStorageMountChanged(valid); in onReceive()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DValidatedEditTextPreferenceDialogFragment.java102 boolean valid = mValidator.isTextValid(mEditText.getText().toString()); in allowDialogSubmissionOnlyIfValidInput()
103 dialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(valid); in allowDialogSubmissionOnlyIfValidInput()
104 setAllowEnterToSubmit(valid); in allowDialogSubmissionOnlyIfValidInput()
/packages/modules/Connectivity/tests/common/java/android/net/util/
DSocketUtilsTest.kt83 assertTrue(fd.valid()) in testCloseSocket()
85 assertFalse(fd.valid()) in testCloseSocket()
88 assertFalse(fd.valid()) in testCloseSocket()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DPacketReflector.java248 Log.i(TAG, "PacketReflector starting fd=" + mFd + " valid=" + mFd.valid()); in run()
249 while (!interrupted() && mFd.valid()) { in run()
252 Log.i(TAG, "PacketReflector exiting fd=" + mFd + " valid=" + mFd.valid()); in run()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java59 assertFalse(fd.valid()); in testBindSocketOfInvalidFdThrows()
74 assertTrue(fis.getFD().valid()); in testBindSocketOfNonSocketFdThrows()
99 assertTrue(mLocalClient.getFileDescriptor().valid()); in testBindSocketOfLocalSocketThrows()
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
Ddialer_phone_number.proto34 // -If a number is valid according to libphonenumber and can be parsed, this
43 // when the number is not valid and no country prefix was prepended. This may
55 // True if the number is valid according to libphonenumber.
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DLocalSocketTest.java91 assertTrue(fd.valid()); in testLocalConnections()
299 assertTrue(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor()
318 assertTrue(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor()
322 assertFalse(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor()

12345