Home
last modified time | relevance | path

Searched refs:isOk (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/av/media/libaudiohal/
DConversionHelperHidl.h41 if (ret.isOk()) { in processReturn()
51 if (!ret.isOk()) { in processReturn()
54 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn()
58 if (!ret.isOk()) { in processReturn()
61 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in processReturn()
67 if (!ret.isOk()) { in processReturn()
70 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in processReturn()
DEffectHalHidl.cpp157 if (!ret.isOk() || retval != Result::OK) { in prepareForProcessing()
158 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in prepareForProcessing()
214 if (ret.isOk() && ret == Result::OK) { in setProcessBuffers()
218 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in setProcessBuffers()
250 return ret.isOk() ? status : FAILED_TRANSACTION; in command()
263 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in getDescriptor()
269 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in close()
294 if (!ret.isOk()) { in getConfigImpl()
319 if (ret.isOk()) { in setConfigImpl()
DEffectsFactoryHalHidl.cpp65 if (ret.isOk()) { in queryAllDescriptors()
108 if (ret.isOk()) { in getDescriptor()
131 if (ret.isOk()) { in createEffect()
DEffectBufferHalHidl.cpp83 if (result.isOk() && retval == OK) { in init()
97 return result.isOk() ? retval : FAILED_TRANSACTION; in init()
/frameworks/av/camera/tests/
DCameraBinderTests.cpp308 EXPECT_TRUE(res.isOk()) << res; in TEST()
315 EXPECT_TRUE(res.isOk()) << res; in TEST()
324 EXPECT_TRUE(res.isOk()) << res; in TEST()
334 EXPECT_TRUE(res.isOk()) << res; in TEST()
349 EXPECT_TRUE(res.isOk()) << res; in TEST()
359 EXPECT_TRUE(res.isOk()) << res; in TEST()
364 EXPECT_TRUE(res.isOk()) << res; in TEST()
371 EXPECT_TRUE(res.isOk()) << res; in TEST()
391 EXPECT_TRUE(res.isOk()) << res; in openNewDevice()
402 EXPECT_TRUE(res.isOk()) << res; in closeDevice()
[all …]
DCameraZSLTests.cpp87 EXPECT_TRUE(rc.isOk()); in SetUp()
176 EXPECT_TRUE(rc.isOk()); in TEST_F()
185 if (!rc.isOk()) { in TEST_F()
211 EXPECT_TRUE(rc.isOk()); in TEST_F()
293 EXPECT_TRUE(rc.isOk()); in TEST_F()
/frameworks/native/libs/ui/
DGralloc2.cpp58 return (ret.isOk()) ? error : kTransactionError; in createDescriptor()
76 return (ret.isOk()) ? error : kTransactionError; in importBuffer()
84 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer()
121 return (ret.isOk()) ? error : kTransactionError; in lock()
157 return (ret.isOk()) ? error : kTransactionError; in lock()
186 if (!ret.isOk()) { in unlock()
248 return (ret.isOk()) ? error : kTransactionError; in allocate()
/frameworks/base/services/core/jni/
Dcom_android_server_hdmi_HdmiCecController.cpp188 if (!ret.isOk()) { in HdmiCecController()
195 if (!ret.isOk()) { in ~HdmiCecController()
203 if (!ret.isOk()) { in sendMessage()
212 if (!ret.isOk()) { in addLogicalAddress()
221 if (!ret.isOk()) { in clearLogicaladdress()
233 if (!ret.isOk()) { in getPhysicalAddress()
242 if (!ret.isOk()) { in getVersion()
250 if (!ret.isOk()) { in getVendorId()
270 if (!ret.isOk()) { in getPortInfos()
290 if (!ret.isOk()) { in setOption()
[all …]
Dcom_android_server_location_GnssLocationProvider.cpp1058 if (!linked.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1068 if (!gnssXtra.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1075 if (!gnssRil.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1082 if (!gnssAgnss.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1089 if (!gnssNavigationMessage.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1096 if (!gnssMeasurement.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1103 if (!gnssDebug.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1110 if (!gnssNi.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1117 if (!gnssConfiguration.isOk()) { in android_location_GnssLocationProvider_class_init_native()
1124 if (!gnssGeofencing.isOk()) { in android_location_GnssLocationProvider_class_init_native()
[all …]
Dcom_android_server_HardwarePropertiesManagerService.cpp97 if (!ret.isOk()) { in nativeGetFanSpeeds()
127 if (!ret.isOk()) { in nativeGetDeviceTemperatures()
172 if (!ret.isOk()) { in nativeGetCpuUsages()
Dcom_android_server_lights_LightsService.cpp56 (sLight != nullptr && !sLight->ping().isOk())) { in associate()
134 if (!ret.isOk()) { in processReturn()
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp48 static inline ::testing::AssertionResult isOk(const Return<T> &ret) { in isOk() function
49 return (ret.isOk() in isOk()
56 inline ::testing::AssertionResult isOk(const Return<Result> &ret) { in isOk() function
57 return ((ret.isOk() && ret == Result::OK) in isOk()
61 << (ret.isOk() ? toString(static_cast<Result>(ret)) : ""); in isOk()
64 static inline ::testing::AssertionResult isOk(Result result) { in isOk() function
89 #define EXPECT_OK(__ret__) EXPECT_TRUE(isOk(__ret__))
90 #define ASSERT_OK(__ret__) ASSERT_TRUE(isOk(__ret__))
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp445 if (!hResult.isOk()) { in openSession()
537 return hResult.isOk() ? err : DEAD_OBJECT; in getKeyRequest()
562 return hResult.isOk() ? err : DEAD_OBJECT; in provideKeyResponse()
612 return hResult.isOk() ? err : DEAD_OBJECT; in queryKeyStatus()
638 return hResult.isOk() ? err : DEAD_OBJECT; in getProvisionRequest()
662 return hResult.isOk() ? err : DEAD_OBJECT; in provideProvisionResponse()
683 return hResult.isOk() ? err : DEAD_OBJECT; in getSecureStops()
705 return hResult.isOk() ? err : DEAD_OBJECT; in getSecureStop()
746 return hResult.isOk() ? err : DEAD_OBJECT; in getPropertyString()
767 return hResult.isOk() ? err : DEAD_OBJECT; in getPropertyByteArray()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DCasManager.cpp143 if (!status.isOk()) { in initSession()
150 if (!status.isOk()) { in initSession()
157 if (!status.isOk() || descrambler == NULL) { in initSession()
164 if (!status.isOk()) { in initSession()
321 if (!status.isOk()) { in parsePID()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp134 if ( !(res = checkPidStatus(__FUNCTION__) ).isOk()) { in submitRequestList()
283 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in cancelRequest()
326 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in endConfigure()
386 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in deleteStream()
456 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createStream()
511 if (!res.isOk()) in createStream()
659 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createInputStream()
699 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in getInputSurface()
952 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createDefaultRequest()
988 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in getCameraInfo()
[all …]
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
DASensorEventQueue.cpp53 if (!ret.isOk()) { in registerSensor()
79 return ret.isOk() ? OK : BAD_VALUE; in disableSensor()
DASensorManager.cpp74 if (!linked.isOk()) { in ASensorManager()
105 (void)ret.isOk(); in getSensorList()
143 (void)ret.isOk(); in getDefaultSensor()
174 if (!ret.isOk() || result != Result::OK) { in createEventQueue()
/frameworks/av/camera/
DCameraBase.cpp154 if (ret.isOk() && c->mCamera != nullptr) { in connect()
242 if (!res.isOk()) { in getNumberOfCameras()
257 return res.isOk() ? OK : res.serviceSpecificErrorCode(); in getCameraInfo()
/frameworks/base/media/native/midi/
Dmidi.cpp86 if (!txResult.isOk()) { in AMIDI_getDeviceInfo()
110 if (!txResult.isOk()) { in AMIDI_openPort()
135 if (!txResult.isOk()) { in AMIDI_closePort()
/frameworks/av/services/soundtrigger/
DSoundTriggerHalHidl.cpp57 if (hidlReturn.isOk()) { in getProperties()
127 if (hidlReturn.isOk()) { in loadSoundModel()
161 if (!hidlReturn.isOk()) { in unloadSoundModel()
199 if (!hidlReturn.isOk()) { in startRecognition()
225 if (!hidlReturn.isOk()) { in stopRecognition()
245 if (!hidlReturn.isOk()) { in stopAllRecognitions()
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp133 if (ret.isOk()) { in getCameraService()
150 } else if (res.isOk()) { in getCameraService()
237 if (!serviceRet.isOk() || !camera2Support) { in getCameraIdList()
412 if (!serviceRet.isOk()) { in getCameraCharacteristics()
465 if (!serviceRet.isOk()) { in openCamera()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp239 if (!ret.isOk()) { in setUpVendorTags()
289 if (!ret.isOk()) { in openSession()
311 if (!status.isOk()) { in openSession()
477 if (!status.isOk()) { in initialize()
489 if (!linked.isOk()) { in initialize()
509 if (!ret.isOk()) { in initialize()
771 if (!ret.isOk()) { in getDeviceInterface()
796 if (!ret.isOk()) { in getDeviceInterface()
829 if (!status.isOk()) {
843 if (!ret.isOk()) {
[all …]
/frameworks/base/cmds/incident/
Dmain.cpp210 if (!status.isOk()) { in main()
228 if (!status.isOk()) { in main()
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp201 if (!status.isOk()) { in reportIncident()
217 if (!status.isOk()) { in reportIncidentToStream()
/frameworks/base/core/jni/
Dandroid_os_HwBinder.cpp267 bool ok = ret.isOk() && ret; in JHwBinder_native_registerService()
329 if (!transportRet.isOk()) { in JHwBinder_native_getService()
357 if (!ret.isOk()) { in JHwBinder_native_getService()

123