Home
last modified time | relevance | path

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

123456

/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/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp204 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_register_app_cb()
218 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_scan_result_cb()
240 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_open_cb()
252 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_close_cb()
263 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_search_complete_cb()
273 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_register_for_notification_cb()
282 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_notify_cb()
300 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_read_characteristic_cb()
321 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_write_characteristic_cb()
333 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_execute_write_cb()
[all …]
Dcom_android_bluetooth_hfpclient.cpp59 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
77 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in connection_state_cb()
92 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in audio_state_cb()
104 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in vr_cmd_cb()
117 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in network_state_cb()
130 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in network_roaming_cb()
142 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in network_signal_cb()
154 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in battery_level_cb()
166 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in current_operator_cb()
186 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in call_cb()
[all …]
Dcom_android_bluetooth_hfp.cpp59 if (!sCallbackEnv.valid()) return nullptr; in marshall_bda()
85 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback()
100 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback()
113 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VoiceRecognitionCallback()
128 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AnswerCallCallback()
143 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in HangupCallCallback()
159 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VolumeControlCallback()
174 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in DialCallCallback()
197 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in DtmfCmdCallback()
214 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in NoiseReductionCallback()
[all …]
Dcom_android_bluetooth_avrcp_controller.cpp64 if (!sCallbackEnv.valid()) return; in btavrcp_passthrough_response_callback()
87 if (!sCallbackEnv.valid()) return; in btavrcp_groupnavigation_response_callback()
102 if (!sCallbackEnv.valid()) return; in btavrcp_connection_state_callback()
127 if (!sCallbackEnv.valid()) return; in btavrcp_get_rcfeatures_callback()
151 if (!sCallbackEnv.valid()) return; in btavrcp_setplayerapplicationsetting_rsp_callback()
177 if (!sCallbackEnv.valid()) return; in btavrcp_playerapplicationsetting_callback()
229 if (!sCallbackEnv.valid()) return; in btavrcp_playerapplicationsetting_changed_callback()
272 if (!sCallbackEnv.valid()) return; in btavrcp_set_abs_vol_cmd_callback()
296 if (!sCallbackEnv.valid()) return; in btavrcp_register_notification_absvol_callback()
326 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.cpp40 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
56 if (!sCallbackEnv.valid()) return; in connection_state_callback()
76 if (!sCallbackEnv.valid()) return; in get_protocol_mode_callback()
100 if (!sCallbackEnv.valid()) return; in get_report_callback()
132 if (!sCallbackEnv.valid()) return; in virtual_unplug_callback()
149 if (!sCallbackEnv.valid()) return; in handshake_callback()
168 if (!sCallbackEnv.valid()) return; in get_idle_time_callback()
Dcom_android_bluetooth_hap_client.cpp80 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
98 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable()
116 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnFeaturesUpdate()
135 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnActivePresetSelected()
161 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnActivePresetSelectError()
190 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnPresetInfo()
247 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnPresetInfoError()
276 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnSetPresetNameError()
Dcom_android_bluetooth_vc.cpp55 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
76 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnVolumeStateChanged()
97 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupVolumeStateChanged()
110 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable()
132 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnExtAudioOutVolumeOffsetChanged()
156 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnExtAudioOutLocationChanged()
180 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnExtAudioOutDescriptionChanged()
Dcom_android_bluetooth_le_audio.cpp132 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnInitialized()
142 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
162 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupStatus()
174 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupNodeStatus()
196 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnAudioConf()
210 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnSinkAudioLocationAvailable()
234 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnAudioLocalCodecCapabilities()
257 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnAudioGroupCodecConf()
890 if (!sCallbackEnv.valid() || sBroadcasterCallbacksObj == nullptr) return; in OnBroadcastCreated()
902 if (!sCallbackEnv.valid() || sBroadcasterCallbacksObj == nullptr) return; in OnBroadcastDestroyed()
[all …]
Dcom_android_bluetooth_csip_set_coordinator.cpp82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
102 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable()
123 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnSetMemberAvailable()
145 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupLockChanged()
Dcom_android_bluetooth_pan.cpp46 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
66 if (!sCallbackEnv.valid()) return; in control_state_callback()
85 if (!sCallbackEnv.valid()) return; in connection_state_callback()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java92 public boolean valid = false; field in HandoverDataParser.BluetoothHandoverData
369 result.valid = false; in parseNokia()
376 result.valid = true; in parseNokia()
387 if (result.valid && result.name == null) result.name = ""; in parseNokia()
393 result.valid = false; in parseBtOob()
399 result.valid = true; in parseBtOob()
452 if (result.valid && result.name == null) result.name = ""; in parseBtOob()
458 result.valid = false; in parseBleOob()
482 result.valid = true; in parseBleOob()
489 result.valid = false; in parseBleOob()
[all …]
/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/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/Bluetooth/system/gd/l2cap/
Dsignal_id_test.cc26 int valid = 0; in TEST() local
31 valid++; in TEST()
34 ASSERT_TRUE(valid == 255); in TEST()
/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/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/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/modules/Virtualization/authfs/src/
Dfusefs.rs767 valid: SetattrValid, in setattr()
772 check_unsupported_setattr_request(valid)?; in setattr()
778 if valid.contains(SetattrValid::SIZE) { in setattr()
785 if valid.contains(SetattrValid::MODE) { in setattr()
792 check_unsupported_setattr_request(valid)?; in setattr()
793 if valid.contains(SetattrValid::SIZE) { in setattr()
803 if valid.contains(SetattrValid::MODE) { in setattr()
1049 fn check_unsupported_setattr_request(valid: SetattrValid) -> io::Result<()> { in check_unsupported_setattr_request()
1050 if valid.contains(SetattrValid::UID) { in check_unsupported_setattr_request()
1054 if valid.contains(SetattrValid::GID) { in check_unsupported_setattr_request()
[all …]
/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/services/Car/car-lib/src/android/car/app/
DCarActivityManager.java258 boolean valid = mTaskMonitorToken != null; in hasValidToken()
259 if (!valid) { in hasValidToken()
263 return valid; in hasValidToken()

123456