Home
last modified time | relevance | path

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

1234567

/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp81 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
87 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
93 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
99 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
105 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
111 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
125 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
133 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
135 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
147 IServiceManager::DUMP_FLAG_PRIORITY_DEFAULT).isOk()); in TEST()
[all …]
/frameworks/av/media/libaudiohal/impl/
DConversionHelperHidl.h45 if (ret.isOk()) { in processReturn()
55 if (!ret.isOk()) { in processReturn()
58 return ret.isOk() ? OK : FAILED_TRANSACTION; in processReturn()
62 if (!ret.isOk()) { in processReturn()
65 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in processReturn()
71 if (!ret.isOk()) { in processReturn()
74 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in processReturn()
DEffectHalHidl.cpp169 if (!ret.isOk() || retval != Result::OK) { in prepareForProcessing()
170 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in prepareForProcessing()
226 if (ret.isOk() && ret == Result::OK) { in setProcessBuffers()
230 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in setProcessBuffers()
262 return ret.isOk() ? status : FAILED_TRANSACTION; in command()
275 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in getDescriptor()
281 return ret.isOk() ? analyzeResult(ret) : FAILED_TRANSACTION; in close()
290 return ret.isOk() ? OK : FAILED_TRANSACTION; in dump()
315 if (!ret.isOk()) { in getConfigImpl()
340 if (ret.isOk()) { in setConfigImpl()
/frameworks/av/services/mediatranscoding/tests/
Dmediatranscodingservice_tests.cpp117 EXPECT_FALSE(status.isOk()); in TEST_F()
129 EXPECT_FALSE(status.isOk()); in TEST_F()
141 EXPECT_FALSE(status.isOk()); in TEST_F()
153 EXPECT_FALSE(status.isOk()); in TEST_F()
166 EXPECT_TRUE(status.isOk()); in TEST_F()
174 EXPECT_TRUE(status.isOk()); in TEST_F()
180 EXPECT_TRUE(status.isOk()); in TEST_F()
194 EXPECT_TRUE(status.isOk()); in TEST_F()
202 EXPECT_TRUE(status.isOk()); in TEST_F()
223 EXPECT_TRUE(status.isOk()); in TEST_F()
[all …]
/frameworks/native/libs/binder/tests/
DbinderStabilityTest.cpp155 EXPECT_TRUE(server->sendBinder(BadStableBinder::undef()).isOk()); in TEST()
156 EXPECT_TRUE(server->sendBinder(BadStableBinder::system()).isOk()); in TEST()
157 EXPECT_TRUE(server->sendBinder(BadStableBinder::vintf()).isOk()); in TEST()
158 EXPECT_TRUE(server->sendBinder(BadStableBinder::vendor()).isOk()); in TEST()
162 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
167 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
172 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
184 EXPECT_TRUE(server->returnNoStabilityBinder(&out).isOk()); in TEST()
189 EXPECT_TRUE(server->returnLocalStabilityBinder(&out).isOk()); in TEST()
194 EXPECT_TRUE(server->returnVintfStabilityBinder(&out).isOk()); in TEST()
[all …]
/frameworks/ml/nn/driver/sample/
DSampleDriverUtils.cpp31 if (!ret.isOk()) { in notify()
39 if (!ret.isOk()) { in notify()
48 if (!ret.isOk()) { in notify()
57 if (!ret.isOk()) { in notify()
65 if (!ret.isOk()) { in notify()
73 if (!ret.isOk()) { in notify()
/frameworks/hardware/interfaces/stats/1.0/vts/functional/
DVtsHalStatsV1_0TargetTest.cpp57 ASSERT_TRUE(ret.isOk()); in TEST_P()
68 ASSERT_TRUE(ret.isOk()); in TEST_P()
79 ASSERT_TRUE(ret.isOk()); in TEST_P()
94 ASSERT_TRUE(ret.isOk()); in TEST_P()
104 ASSERT_TRUE(ret.isOk()); in TEST_P()
113 ASSERT_TRUE(ret.isOk()); in TEST_P()
126 ASSERT_TRUE(ret.isOk()); in TEST_P()
147 ASSERT_TRUE(ret.isOk()); in TEST_P()
/frameworks/native/cmds/installd/tests/
Dbinder_test_utils.h26 ASSERT_TRUE(expect_status.isOk()) << expect_status.toString8().c_str(); \
32 ASSERT_FALSE(expect_status.isOk()); \
38 EXPECT_TRUE(expect_status.isOk()) << expect_status.toString8().c_str(); \
44 EXPECT_FALSE(expect_status.isOk()); \
/frameworks/native/libs/gui/bufferqueue/2.0/
DH2BGraphicBufferProducer.cpp99 if (!transResult.isOk()) { in requestBuffer()
115 if (!transResult.isOk()) { in setMaxDequeuedBufferCount()
129 if (!transResult.isOk()) { in setAsyncMode()
168 if (!transResult.isOk()) { in dequeueBuffer()
183 if (!transResult.isOk()) { in detachBuffer()
207 if (!transResult.isOk()) { in detachNextBuffer()
238 if (!transResult.isOk()) { in attachBuffer()
271 if (!transResult.isOk()) { in queueBuffer()
292 if (!transResult.isOk()) { in cancelBuffer()
311 if (!transResult.isOk()) { in query()
[all …]
/frameworks/av/camera/tests/
DCameraBinderTests.cpp338 EXPECT_TRUE(res.isOk()) << res; in TEST()
345 EXPECT_TRUE(res.isOk()) << res; in TEST()
357 EXPECT_TRUE(res.isOk()) << res; in TEST()
367 EXPECT_TRUE(res.isOk()) << res; in TEST()
383 EXPECT_TRUE(res.isOk()) << res; in TEST()
393 EXPECT_TRUE(res.isOk()) << res; in TEST()
398 EXPECT_TRUE(res.isOk()) << res; in TEST()
405 EXPECT_TRUE(res.isOk()) << res; in TEST()
426 EXPECT_TRUE(res.isOk()) << res; in openNewDevice()
437 EXPECT_TRUE(res.isOk()) << res; in closeDevice()
[all …]
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp129 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
152 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
164 ASSERT_TRUE(mBufferHub->ping().isOk()); in TEST_F()
181 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
193 ASSERT_TRUE(client->duplicate(dupCb).isOk()); in TEST_F()
212 ASSERT_TRUE(mBufferHub->allocateBuffer(desc, kUserMetadataSize, callback).isOk()); in TEST_F()
222 ASSERT_TRUE(client->duplicate(dupCb).isOk()); in TEST_F()
236 ASSERT_TRUE(mBufferHub->importBuffer(token, importCb).isOk()); in TEST_F()
264 ASSERT_TRUE(mBufferHub->importBuffer(nullToken, importCb).isOk()); in TEST_F()
287 ASSERT_TRUE(mBufferHub->importBuffer(invalidToken, importCb).isOk()); in TEST_F()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp188 if (ret.isOk()) { in call()
235 hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorInit()
237 halCall(&V1_0::IVibrator::ping).isOk(); in vibratorInit()
249 ok = hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorExists()
251 ok = halCall(&V1_0::IVibrator::ping).isOk(); in vibratorExists()
260 if (!status.isOk()) { in vibratorOn()
275 if (!status.isOk()) { in vibratorOff()
289 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsAmplitudeControl()
301 if (!status.isOk()) { in vibratorSetAmplitude()
317 if (!hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk()) { in vibratorSupportsExternalControl()
[all …]
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 …]
/frameworks/native/libs/binderthreadstate/
Dtest.cpp66 CHECK(stuff->call(idx).isOk()); in callHidl()
72 CHECK(stuff->call(idx).isOk()); in callAidl()
128 EXPECT_TRUE(server->callLocal().isOk()); in TEST()
133 EXPECT_TRUE(server->callLocal().isOk()); in TEST()
139 ASSERT_TRUE(stuff->call(0).isOk()); in TEST()
145 ASSERT_TRUE(stuff->call(0).isOk()); in TEST()
151 ASSERT_TRUE(stuff->call(100).isOk()); in TEST()
157 EXPECT_TRUE(stuff->call(100).isOk()); in TEST()
/frameworks/hardware/interfaces/cameraservice/vts/functional/
DVtsHalCameraServiceV2_0TargetTest.cpp293 if (castResult.isOk()) { in SetUp()
378 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
390 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
399 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
407 EXPECT_TRUE(remoteRet.isOk()); in TEST_P()
433 EXPECT_TRUE(ret.isOk() && ret == Status::NO_ERROR); in TEST_P()
439 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
443 EXPECT_TRUE(ret.isOk() && ret == Status::NO_ERROR); in TEST_P()
450 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
470 EXPECT_TRUE(remoteRet.isOk() && status == Status::NO_ERROR); in TEST_P()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHal.cpp379 if (!mPluginV1_2->setListener(NULL).isOk()) { in cleanup()
383 if (!mPlugin->setListener(NULL).isOk()) { in cleanup()
424 if (!hResult.isOk()) { in makeDrmPlugin()
635 if (!mPluginV1_2->setListener(this).isOk()) { in createPlugin()
638 } else if (!mPlugin->setListener(this).isOk()) { in createPlugin()
699 if (!hResult.isOk()) { in openSession()
733 if (status.isOk()) { in closeSession()
857 err = hResult.isOk() ? err : DEAD_OBJECT; in getKeyRequest()
881 err = hResult.isOk() ? err : DEAD_OBJECT; in provideKeyResponse()
891 return status.isOk() ? toStatusT(status) : DEAD_OBJECT; in removeKeys()
[all …]
/frameworks/av/media/codec2/hidl/client/
Dclient.cpp263 return transStatus.isOk() ? outName : ""; in __anon272953510402()
357 if (!transStatus.isOk()) { in query()
401 if (!transStatus.isOk()) { in config()
434 if (!transStatus.isOk()) { in querySupportedParams()
481 if (!transStatus.isOk()) { in querySupportedValues()
608 return transResult.isOk() ? in Codec2Client()
617 if (!transResult.isOk()) {
677 if (!transStatus.isOk()) { in createComponent()
722 if (!transStatus.isOk()) { in createInterface()
753 if (!transStatus.isOk()) { in createInputSurface()
[all …]
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp55 static inline ::testing::AssertionResult isOk(const Return<T> &ret) { in isOk() function
56 return (ret.isOk() in isOk()
63 inline ::testing::AssertionResult isOk(const Return<Result> &ret) { in isOk() function
64 return ((ret.isOk() && ret == Result::OK) in isOk()
68 << (ret.isOk() ? toString(static_cast<Result>(ret)) : ""); in isOk()
71 static inline ::testing::AssertionResult isOk(Result result) { in isOk() function
96 #define EXPECT_OK(__ret__) EXPECT_TRUE(isOk(__ret__))
97 #define ASSERT_OK(__ret__) ASSERT_TRUE(isOk(__ret__))
124 if (!ret.isOk()) { in GetSensorList()
/frameworks/av/media/codec2/vndk/platform/
DC2BqBuffer.cpp291 if (!transResult.isOk() || status != android::OK) { in getGenerationNumber()
296 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
318 if (!transResult.isOk()) { in getGenerationNumber()
321 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
324 (void)producer->detachBuffer(static_cast<int32_t>(slot)).isOk(); in getGenerationNumber()
369 if (!transResult.isOk() || status != android::OK) { in fetchFromIgbp_l()
370 if (transResult.isOk()) { in fetchFromIgbp_l()
398 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
403 (void)mProducer->cancelBuffer(slot, hFenceWrapper.getHandle()).isOk(); in fetchFromIgbp_l()
438 if (!transResult.isOk()) { in fetchFromIgbp_l()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp163 return ret.isOk(); in setExpensiveRendering()
180 if (!ret.isOk()) { in AidlPowerHalWrapper()
186 if (!ret.isOk()) { in AidlPowerHalWrapper()
212 return ret.isOk(); in setExpensiveRendering()
223 return ret.isOk(); in notifyDisplayUpdateImminent()
/frameworks/native/libs/ui/
DGralloc3.cpp129 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in createDescriptor()
143 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in importBuffer()
150 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer()
164 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize()
185 error = (ret.isOk()) ? error : kTransactionError; in getTransportSize()
228 error = (ret.isOk()) ? error : kTransactionError; in lock()
276 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in lock()
302 if (!ret.isOk()) { in unlock()
331 if (!ret.isOk()) { in isSupported()
418 return (ret.isOk()) ? error : static_cast<status_t>(kTransactionError); in allocate()
DGralloc2.cpp152 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in createDescriptor()
169 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in importBuffer()
176 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer()
199 return static_cast<status_t>((ret.isOk()) ? static_cast<Error>(ret) : kTransactionError); in validateBufferSize()
224 error = (ret.isOk()) ? error : kTransactionError; in getTransportSize()
268 error = (ret.isOk()) ? error : kTransactionError; in lock()
318 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in lock()
346 error = (ret.isOk()) ? error : kTransactionError; in unlock()
435 return (ret.isOk()) ? error : static_cast<status_t>(kTransactionError); in allocate()
/frameworks/ml/nn/runtime/
DVersionedInterfaces.cpp172 if (!ret.isOk()) { in makeVersionedIPreparedModel()
201 mPreparedModelV1_0->unlinkToDeath(mDeathHandler).isOk(); in ~VersionedIPreparedModel()
232 if (!ret.isOk()) { in executeAsynchronously()
258 if (!ret.isOk()) { in executeAsynchronously()
284 if (!ret.isOk()) { in executeAsynchronously()
323 if (!ret.isOk()) { in executeSynchronously()
350 if (!ret.isOk()) { in executeSynchronously()
408 if (!ret.isOk()) { in getCapabilitiesFunction()
437 if (!ret.isOk()) { in executeFenced()
486 if (!ret.isOk()) { in getCapabilitiesFunction()
[all …]
/frameworks/av/services/camera/libcameraservice/hidl/
DAidlCameraServiceListener.cpp37 if (!ret.isOk()) { in onStatusChanged()
49 if (cast2_1.isOk()) { in onPhysicalCameraStatusChanged()
58 if (!ret.isOk()) { in onPhysicalCameraStatusChanged()
DAidlCameraDeviceCallbacks.cpp67 if (!ret.isOk()) { in onDeviceError()
76 if (!ret.isOk()) { in onDeviceIdle()
88 if (!ret.isOk()) { in onCaptureStarted()
156 if (!ret.isOk()) { in processResultMessage()
188 if (!ret.isOk()) { in onRepeatingRequestError()

1234567