Home
last modified time | relevance | path

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

1234

/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.cpp160 if (!ret.isOk() || retval != Result::OK) { in prepareForProcessing()
161 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in prepareForProcessing()
217 if (ret.isOk() && ret == Result::OK) { in setProcessBuffers()
221 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in setProcessBuffers()
253 return ret.isOk() ? status : FAILED_TRANSACTION; in command()
266 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in getDescriptor()
272 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in close()
297 if (!ret.isOk()) { in getConfigImpl()
322 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.cpp310 EXPECT_TRUE(res.isOk()) << res; in TEST()
317 EXPECT_TRUE(res.isOk()) << res; in TEST()
326 EXPECT_TRUE(res.isOk()) << res; in TEST()
336 EXPECT_TRUE(res.isOk()) << res; in TEST()
351 EXPECT_TRUE(res.isOk()) << res; in TEST()
361 EXPECT_TRUE(res.isOk()) << res; in TEST()
366 EXPECT_TRUE(res.isOk()) << res; in TEST()
373 EXPECT_TRUE(res.isOk()) << res; in TEST()
393 EXPECT_TRUE(res.isOk()) << res; in openNewDevice()
404 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.cpp63 return (ret.isOk()) ? error : kTransactionError; in createDescriptor()
81 return (ret.isOk()) ? error : kTransactionError; in importBuffer()
89 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer()
126 return (ret.isOk()) ? error : kTransactionError; in lock()
162 return (ret.isOk()) ? error : kTransactionError; in lock()
191 if (!ret.isOk()) { in unlock()
253 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_VibratorService.cpp76 if (ret.isOk()) { in halCall()
89 halCall(&IVibrator::ping).isOk(); in vibratorInit()
94 return halCall(&IVibrator::ping).isOk() ? JNI_TRUE : JNI_FALSE; in vibratorExists()
141 if (!ret.isOk()) { in vibratorPerformEffect()
148 if (!ret.isOk()) { in vibratorPerformEffect()
Dcom_android_server_HardwarePropertiesManagerService.cpp102 if (!linked.isOk()) { in getThermalHalLocked()
139 if (!ret.isOk()) { in nativeGetFanSpeeds()
171 if (!ret.isOk()) { in nativeGetDeviceTemperatures()
218 if (!ret.isOk()) { in nativeGetCpuUsages()
Dcom_android_server_lights_LightsService.cpp57 (sLight != nullptr && !sLight->ping().isOk())) { in associate()
135 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.cpp261 if (!hResult.isOk()) { in makeDrmPlugin()
416 if (!mPlugin->setListener(this).isOk()) { in createPlugin()
438 if (!mPlugin->setListener(NULL).isOk()) { in destroyPlugin()
468 if (!hResult.isOk()) { in openSession()
500 if (status.isOk()) { in closeSession()
571 return hResult.isOk() ? err : DEAD_OBJECT; in getKeyRequest()
596 return hResult.isOk() ? err : DEAD_OBJECT; in provideKeyResponse()
646 return hResult.isOk() ? err : DEAD_OBJECT; in queryKeyStatus()
672 return hResult.isOk() ? err : DEAD_OBJECT; in getProvisionRequest()
696 return hResult.isOk() ? err : DEAD_OBJECT; in provideProvisionResponse()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DCasManager.cpp151 if (!returnVoid.isOk() || status != Status::OK) { in initSession()
158 if (!returnStatus.isOk() || returnStatus != Status::OK) { in initSession()
165 if (!returnDescrambler.isOk()) { in initSession()
177 if (!returnStatus.isOk() || (Status) returnStatus != Status::OK) { in initSession()
341 if (!returnStatus.isOk() || (Status) returnStatus != Status::OK) { 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()
328 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in endConfigure()
388 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in deleteStream()
458 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createStream()
513 if (!res.isOk()) in createStream()
661 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createInputStream()
701 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in getInputSurface()
953 if (!(res = checkPidStatus(__FUNCTION__)).isOk()) return res; in createDefaultRequest()
989 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/media/libstagefright/omx/1.0/
DWGraphicBufferSource.cpp70 if (!mOmxNode->dispatchMessage(tMsg).isOk()) { in dispatchDataSpaceChanged()
157 if (!transStatus.isOk()) { in configure()
174 if (!transStatus.isOk()) { in configure()
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp211 if (!ret.isOk()) { in supportSetTorchMode()
244 if (!ret.isOk()) { in setUpVendorTags()
294 if (!ret.isOk()) { in openSession()
316 if (!status.isOk()) { in openSession()
482 if (!status.isOk()) { in initialize()
494 if (!linked.isOk()) { in initialize()
514 if (!ret.isOk()) { in initialize()
776 if (!ret.isOk()) { in getDeviceInterface()
801 if (!ret.isOk()) { in getDeviceInterface()
834 if (!status.isOk()) {
[all …]
/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/ml/nn/runtime/
DManager.cpp55 if (!ret.isOk()) { in initialize()
75 if (!ret.isOk()) { in getSupportedOperations()

1234