Home
last modified time | relevance | path

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

12345

/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DEvsEnumeratorUnitTest.cpp151 EXPECT_FALSE(mEnumerator->getCameraList(&cameras).isOk()); in TEST_F()
156 .isOk()); in TEST_F()
158 EXPECT_FALSE(mEnumerator->closeCamera(invalidCamera).isOk()); in TEST_F()
161 EXPECT_FALSE(mEnumerator->openDisplay(/* displayId= */ 0xFF, &invalidDisplay).isOk()); in TEST_F()
164 EXPECT_FALSE(mEnumerator->getDisplayState(&emptyState).isOk()); in TEST_F()
168 EXPECT_TRUE(mEnumerator->getCameraList(&cameras).isOk()); in TEST_F()
177 EXPECT_TRUE(mEnumerator->isHardware(&isHardware).isOk()); in TEST_F()
185 EXPECT_TRUE(mEnumerator->getDisplayIdList(&displays).isOk()); in TEST_F()
190 EXPECT_TRUE(mEnumerator->openDisplay(id, &h0).isOk()); in TEST_F()
193 EXPECT_TRUE(mEnumerator->openDisplay(id, &h1).isOk()); in TEST_F()
[all …]
DEvsEnumeratorHidlUnitTest.cpp189 mEnumerator->getCameraList_1_1([&list](auto received) { list = received; }).isOk()); in TEST_F()
195 EXPECT_TRUE(mEnumerator->closeCamera(invalidCamera).isOk()); in TEST_F()
217 .isOk()); in TEST_F()
236 }).isOk()); in TEST_F()
241 EXPECT_TRUE(mEnumerator->closeDisplay(h1).isOk()); in TEST_F()
244 EXPECT_TRUE(mEnumerator->closeDisplay(h0).isOk()); in TEST_F()
266 EXPECT_TRUE(mEnumerator->closeDisplay(d).isOk()); in TEST_F()
274 .isOk()); in TEST_F()
278 EXPECT_TRUE(mAidlEnumerator->getCameraList(&aidlCameras).isOk()); in TEST_F()
286 EXPECT_TRUE(mAidlEnumerator->getStreamList(aidlCamera, &configs).isOk()); in TEST_F()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogInternalHandlerTest.cpp211 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
219 ASSERT_FALSE(mWatchdogInternalHandler->registerCarWatchdogService(service).isOk()) in TEST_F()
233 ASSERT_FALSE(mWatchdogInternalHandler->registerCarWatchdogService(service).isOk()) in TEST_F()
247 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
256 ASSERT_FALSE(mWatchdogInternalHandler->unregisterCarWatchdogService(service).isOk()) in TEST_F()
270 ASSERT_FALSE(mWatchdogInternalHandler->unregisterCarWatchdogService(service).isOk()) in TEST_F()
284 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
292 ASSERT_FALSE(mWatchdogInternalHandler->registerMonitor(monitor).isOk()) in TEST_F()
306 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
314 ASSERT_FALSE(mWatchdogInternalHandler->unregisterMonitor(monitor).isOk()) in TEST_F()
[all …]
DWatchdogServiceHelperTest.cpp130 ASSERT_TRUE(status.isOk()) << status.getMessage(); in registerCarWatchdogService()
206 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
213 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
227 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
241 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
256 ASSERT_FALSE(mWatchdogServiceHelper->registerService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
270 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
276 ASSERT_FALSE(mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
292 ASSERT_FALSE(mWatchdogServiceHelper->unregisterService(mMockCarWatchdogServiceForSystem).isOk()) in TEST_F()
306 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
[all …]
DWatchdogProcessServiceTest.cpp410 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
414 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
424 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
430 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
431 ASSERT_FALSE(mWatchdogProcessService->unregisterClient(client).isOk()) in TEST_F()
441 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL).isOk()) in TEST_F()
452 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
458 ASSERT_FALSE(mWatchdogProcessService->unregisterClient(client).isOk()) in TEST_F()
473 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
484 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
[all …]
DWatchdogBinderMediatorTest.cpp200 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
211 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
222 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
234 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
242 ASSERT_FALSE(mWatchdogBinderMediator->addResourceOveruseListener({}, listener).isOk()) in TEST_F()
246 mWatchdogBinderMediator->addResourceOveruseListener({ResourceType::IO}, nullptr).isOk()) in TEST_F()
259 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
279 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
288 ASSERT_FALSE(mWatchdogBinderMediator->getResourceOveruseStats({}, &actual).isOk()) in TEST_F()
292 mWatchdogBinderMediator->getResourceOveruseStats({ResourceType::IO}, nullptr).isOk()) in TEST_F()
/packages/modules/DnsResolver/tests/
Ddnsresolver_binder_test.cpp222 ASSERT_FALSE(status.isOk()); in TEST_F()
235 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
240 ASSERT_FALSE(status.isOk()); in TEST_F()
249 ASSERT_FALSE(status.isOk()); in TEST_F()
262 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
268 ASSERT_FALSE(status.isOk()); in TEST_F()
318 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
414 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
431 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
445 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
[all …]
/packages/services/Car/cpp/watchdog/vts/
DVtsAidlWatchdogTargetTest.cpp127 ASSERT_TRUE(status.isOk()) << "Failed to register client: " << status.getMessage(); in TEST_P()
132 ASSERT_TRUE(status.isOk()) << "Failed to tell client alive: " << status.getMessage(); in TEST_P()
134 ASSERT_TRUE(status.isOk()) << "Failed to unregister client: " << status.getMessage(); in TEST_P()
138 ASSERT_FALSE(watchdogServer->registerClient(nullptr, TimeoutLength::TIMEOUT_CRITICAL).isOk()) in TEST_P()
145 ASSERT_FALSE(watchdogServer->tellClientAlive(mockClient, 0).isOk()) in TEST_P()
152 ASSERT_FALSE(watchdogServer->unregisterClient(mockClient).isOk()) in TEST_P()
161 ASSERT_TRUE(status.isOk()) << "Failed to add resource overuse listener: " in TEST_P()
164 ASSERT_TRUE(status.isOk()) << "Failed to remove resource overuse listener: " in TEST_P()
171 ASSERT_FALSE(watchdogServer->addResourceOveruseListener({}, mockListener).isOk()) in TEST_P()
176 ASSERT_FALSE(watchdogServer->addResourceOveruseListener({ResourceType::IO}, nullptr).isOk()) in TEST_P()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/wrappers/src/
DHidlCamera.cpp57 if (auto status = mAidlCamera->getCameraInfo(&aidlDesc); !status.isOk()) { in getCameraInfo()
75 if (!status.isOk()) { in setMaxFramesInFlight()
97 if (auto status = mAidlCamera->startVideoStream(mAidlStream); !status.isOk()) { in startVideoStream()
119 if (auto status = mAidlCamera->doneWithFrame(std::move(buffersToReturn)); !status.isOk()) { in doneWithFrame()
146 if (!mAidlCamera->getExtendedInfo(static_cast<int32_t>(opaqueIdentifier), &value).isOk() || in getExtendedInfo()
164 if (!status.isOk()) { in setExtendedInfo()
179 if (auto status = mAidlCamera->getCameraInfo(&aidlDesc); !status.isOk()) { in getCameraInfo_1_1()
199 if (auto status = mAidlCamera->getPhysicalCameraInfo(deviceId, &aidlDesc); !status.isOk()) { in getPhysicalCameraInfo()
228 if (auto status = mAidlCamera->doneWithFrame(std::move(buffersToReturn)); !status.isOk()) { in doneWithFrame_1_1()
242 if (auto status = mAidlCamera->setPrimaryClient(); !status.isOk()) { in setMaster()
[all …]
DHidlEnumerator.cpp57 if (auto status = mEnumerator->getCameraList(&aidlCameras); !status.isOk()) { in getCameraList()
83 if (!status.isOk()) { in openCamera()
123 !status.isOk() || mAidlDisplayIds.empty()) { in openDisplay()
131 if (auto status = mEnumerator->openDisplay(displayId, &aidlDisplay); !status.isOk()) { in openDisplay()
170 if (auto status = mEnumerator->getDisplayState(&aidlState); !status.isOk()) { in getDisplayState()
186 if (auto status = mEnumerator->getCameraList(&aidlCameras); !status.isOk()) { in getCameraList_1_1()
212 if (auto status = mEnumerator->openCamera(cameraId, cfg, &aidlCamera); !status.isOk()) { in openCamera_1_1()
234 if (auto status = mEnumerator->getDisplayIdList(&mAidlDisplayIds); !status.isOk()) { in getDisplayIdList()
252 if (!status.isOk()) { in openDisplay_1_1()
DHidlDisplay.cpp52 if (auto status = mAidlDisplay->getDisplayInfo(&aidlDesc); !status.isOk()) { in getDisplayInfo()
72 if (auto status = mAidlDisplay->setDisplayState(Utils::makeFromHidl(state)); !status.isOk()) { in setDisplayState()
85 if (auto status = mAidlDisplay->getDisplayState(&aidlState); !status.isOk()) { in getDisplayState()
101 if (!status.isOk()) { in getTargetBuffer()
127 if (!status.isOk()) { in returnTargetBufferForDisplay()
146 if (auto status = mAidlDisplay->getDisplayInfo(&aidlDesc); !status.isOk()) { in getDisplayInfo_1_1()
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DClientInterfaceTest.cc125 ASSERT_TRUE(queryService->getPipeRunner(graphName, clientInfo, &mPipeRunner).isOk()); in SetUp()
144 EXPECT_TRUE(mPipeRunner->init(stateCallback).isOk()); in TEST_F()
147 EXPECT_TRUE(mPipeRunner->setPipeInputSource(1).isOk()); in TEST_F()
152 EXPECT_TRUE(mPipeRunner->setPipeOffloadOptions(5).isOk()); in TEST_F()
157 EXPECT_TRUE(mPipeRunner->setPipeTermination(3).isOk()); in TEST_F()
163 EXPECT_TRUE(mPipeRunner->setPipeOutputConfig(0, 10, streamCb).isOk()); in TEST_F()
185 EXPECT_TRUE(mPipeRunner->init(stateCallback).isOk()); in TEST_F()
227 EXPECT_TRUE(mPipeRunner->init(stateCallback).isOk()); in TEST_F()
230 EXPECT_TRUE(mPipeRunner->applyPipeConfigs().isOk()); in TEST_F()
234 EXPECT_TRUE(mPipeRunner->resetPipeConfigs().isOk()); in TEST_F()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogInternalHandler.cpp209 !status.isOk()) { in registerCarWatchdogService()
222 if (status.isOk()) { in registerCarWatchdogService()
231 !status.isOk()) { in unregisterCarWatchdogService()
242 if (auto status = checkSystemUser(/*methodName=*/"registerMonitor"); !status.isOk()) { in registerMonitor()
253 if (auto status = checkSystemUser(/*methodName=*/"unregisterMonitor"); !status.isOk()) { in unregisterMonitor()
266 !status.isOk()) { in tellCarWatchdogServiceAlive()
279 if (auto status = checkSystemUser(/*methodName=*/"tellDumpFinished"); !status.isOk()) { in tellDumpFinished()
290 if (auto status = checkSystemUser(/*methodName=*/"notifySystemStateChange"); !status.isOk()) { in notifySystemStateChange()
390 !status.isOk()) { in updateResourceOveruseConfigurations()
405 !status.isOk()) { in getResourceOveruseConfigurations()
[all …]
/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp377 ASSERT_TRUE(status.isOk()) << "applyPowerPolicyPerPowerStateChangeAsync should return OK"; in testApplyPowerPolicyPerPowerStateChangeAsyncInternal()
401 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
403 ASSERT_FALSE(status.isOk()) << "Duplicated registration is not allowed"; in TEST_F()
406 ASSERT_FALSE(status.isOk()) << "Duplicated registration is not allowed"; in TEST_F()
412 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
421 ASSERT_FALSE(server->registerPowerPolicyChangeCallback(callback, filter).isOk()) in TEST_F()
432 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
453 ASSERT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
454 ASSERT_FALSE(server->unregisterPowerPolicyChangeCallback(callback).isOk()) in TEST_F()
463 ASSERT_FALSE(status.isOk()) << "The current policy at creation should be null"; in TEST_F()
[all …]
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverUtils.cpp49 if (!ret.isOk()) { in notify()
57 if (!ret.isOk()) { in notify()
66 if (!ret.isOk()) { in notify()
75 if (!ret.isOk()) { in notify()
83 if (!ret.isOk()) { in notify()
91 if (!ret.isOk()) { in notify()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiChipHidlImpl.java611 return isOk(status, methodStr); in configureChipInternal()
622 if (isOk(status, methodStr)) { in createApIfaceInternal()
638 if (isOk(status, methodStr)) { in createBridgedApIfaceInternal()
652 if (isOk(status, methodStr)) { in createNanIfaceInternal()
666 if (isOk(status, methodStr)) { in createP2pIfaceInternal()
683 if (isOk(status, methodStr)) { in createRttControllerInternal()
689 if (isOk(status, methodStr)) { in createRttControllerInternal()
695 if (isOk(status, methodStr)) { in createRttControllerInternal()
710 if (isOk(status, methodStr)) { in createStaIfaceInternal()
723 return isOk(status, methodStr); in enableDebugErrorAlertsInternal()
[all …]
DWifiApIfaceHidlImpl.java116 if (isOk(status, methodStr)) { in getNameInternal()
133 if (isOk(status, methodStr)) { in getBridgedInstancesInternal()
149 if (isOk(status, methodStr)) { in getFactoryMacAddressInternal()
162 return isOk(status, methodStr); in setCountryCodeInternal()
177 return isOk(status, methodStr); in resetToFactoryMacAddressInternal()
189 return isOk(status, methodStr); in setMacAddressInternal()
207 private boolean isOk(WifiStatus status, String methodStr) { in isOk() method in WifiApIfaceHidlImpl
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dclient_interface_aidl.cc96 if (!aidl_retval.isOk()) { in GetAudioCapabilities()
128 if (!aidl_retval.isOk()) { in GetProviderInfo()
155 if (!aidl_retval.isOk()) { in GetA2dpConfiguration()
177 if (!aidl_retval.isOk()) { in ParseA2dpConfiguration()
206 if (!aidl_retval.isOk()) { in FetchAudioProvider()
221 if (!aidl_retval.isOk()) { in FetchAudioProvider()
342 if (!aidl_retval.isOk()) { in UpdateAudioConfig()
387 if (!aidl_retval.isOk()) { in SetAllowedLatencyModes()
416 if (!aidl_retval.isOk()) { in StartSession()
476 if (!aidl_retval.isOk()) { in StreamStarted()
[all …]
/packages/services/Car/cpp/computepipe/example/
DFaceTracker.cpp86 if (!status.isOk()) { in init()
97 if (!status.isOk()) { in setupConfig()
102 if (!status.isOk()) { in setupConfig()
107 if (!status.isOk()) { in setupConfig()
112 if (!status.isOk()) { in setupConfig()
125 CHECK(status.isOk()); in start()
132 CHECK(status.isOk()); in stop()
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl.cc81 if (!hidl_retval.isOk()) { in startStream()
94 if (!hidl_retval.isOk()) { in suspendStream()
243 if (!hidl_retval.isOk()) { in GetAudioCapabilities()
274 if (!hidl_retval.isOk()) { in GetAudioCapabilities_2_1()
301 if (!hidl_retval.isOk()) { in FetchAudioProvider()
332 if (!hidl_retval.isOk()) { in FetchAudioProvider()
338 if (!provider_->linkToDeath(death_recipient_, 0).isOk()) { in FetchAudioProvider()
368 if (!hidl_retval.isOk()) { in FetchAudioProvider_2_1()
400 if (!hidl_retval.isOk()) { in FetchAudioProvider_2_1()
407 if (!provider_2_1_->linkToDeath(death_recipient_, 0).isOk()) { in FetchAudioProvider_2_1()
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp82 if (!rv.isOk()) { in getResolverInfo()
128 return rv.isOk(); in SetResolversForNetwork()
133 if (!rv.isOk()) LOG(ERROR) << "SetResolversFromParcel() -> " << rv.getMessage(); in SetResolversFromParcel()
134 return rv.isOk(); in SetResolversFromParcel()
176 if (!ret.isOk()) { in SetupOemNetwork()
181 if (!ret.isOk()) { in SetupOemNetwork()
193 if (auto status = mNetdSrv->networkDestroy(oemNetId); !status.isOk()) { in TearDownOemNetwork()
197 if (auto status = mDnsResolvSrv->destroyNetworkCache(oemNetId); !status.isOk()) { in TearDownOemNetwork()
/packages/modules/Virtualization/demo_native/
Dmain.cpp153 if (!ret.isOk()) { in create_or_update_idsig_file()
175 if (!ret.isOk()) { in create_instance_image_file_if_needed()
231 if (!ret.isOk()) { in create_virtual_machine()
298 if (!ret.isOk()) { in get_vm_state()
310 if (!ret.isOk()) { in start_virtual_machine()
314 if (!ret.isOk()) { in start_virtual_machine()
337 if (!ret.isOk()) { in connect_to_vm_payload()
353 if (!ret.isOk()) { in do_something()
387 if (!ret.isOk()) { in inner_main()
/packages/services/Car/cpp/telemetry/cartelemetryd/tests/
DTelemetryServerTest.cpp145 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
151 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
178 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
202 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
210 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
219 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
236 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
244 EXPECT_FALSE(status.isOk()) << status.getMessage(); in TEST_F()
263 EXPECT_TRUE(status.isOk()) << status.getMessage(); in TEST_F()
271 EXPECT_FALSE(status.isOk()) << status.getMessage(); in TEST_F()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DStatus.h81 inline bool isOk(const Status& status) { in isOk() function
86 #define EXPECT_OK(status) EXPECT_TRUE(isOk(status))
87 #define ASSERT_OK(status) ASSERT_TRUE(isOk(status))
116 if (!isOk(tmp)) { \
/packages/services/Car/cpp/evs/manager/aidl/src/
DHalCamera.cpp132 if (!mHwCamera->setMaxFramesInFlight(bufferCount).isOk()) { in changeFramesInFlight()
174 if (!mHwCamera->importExternalBuffers(buffers, delta).isOk()) { in changeFramesInFlight()
225 if (status.isOk()) { in clientStreamStarting()
269 if (!status.isOk()) { in clientStreamEnding()
310 if (!status.isOk()) { in doneWithFrame()
378 if (!mHwCamera->doneWithFrame(buffers).isOk()) { in deliverFrame()
491 if (!notify(event).isOk()) { in unsetPrimaryClient()
510 if (result.isOk()) { in setParameter()
516 if (!notify(event).isOk()) { in setParameter()
529 if (result.isOk()) { in getParameter()

12345