Home
last modified time | relevance | path

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

123456

/system/update_engine/client_library/
Dclient_binder.cc59 .isOk(); in AttemptUpdate()
74 if (!service_->GetStatus(&status).isOk()) in GetStatus()
87 return service_->SetCohortHint(String16{in_cohort_hint.c_str()}).isOk(); in SetCohortHint()
93 if (!service_->GetCohortHint(&out_as_string16).isOk()) in GetCohortHint()
101 return service_->SetUpdateOverCellularPermission(allowed).isOk(); in SetUpdateOverCellularPermission()
106 return service_->GetUpdateOverCellularPermission(allowed).isOk(); in GetUpdateOverCellularPermission()
110 return service_->SetP2PUpdatePermission(enabled).isOk(); in SetP2PUpdatePermission()
114 return service_->GetP2PUpdatePermission(enabled).isOk(); in GetP2PUpdatePermission()
118 return service_->AttemptRollback(powerwash).isOk(); in Rollback()
125 if (!service_->GetRollbackPartition(&out_as_string16).isOk()) in GetRollbackPartition()
[all …]
/system/connectivity/wificond/tests/
Dserver_unittest.cpp127 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
134 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
139 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &second_ap_if).isOk()); in TEST_F()
147 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
151 EXPECT_TRUE(server_.tearDownInterfaces().isOk()); in TEST_F()
153 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
159 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
165 kFateInterfaceNameInvalid, &success).isOk()); in TEST_F()
168 EXPECT_TRUE(server_.tearDownApInterface(kFakeInterfaceName, &success).isOk()); in TEST_F()
176 kFakeInterfaceName, &client_if).isOk()); in TEST_F()
[all …]
Dscanner_unittest.cpp168 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
183 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
198 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
213 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
227 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
241 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
255 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
272 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
302 scanner_impl_->scan(SingleScanSettings(), &single_scan_success).isOk()); in TEST_F()
306 EXPECT_TRUE(scanner_impl_->abortScan().isOk()); in TEST_F()
[all …]
/system/netd/server/
DTrafficControllerTest.cpp47 using netdutils::isOk;
120 ASSERT_TRUE(isOk(mTc.mConfigurationMap.writeValue(CURRENT_STATS_MAP_CONFIGURATION_KEY, in SetUp()
145 EXPECT_TRUE(isOk(tagResult)); in expectUidTag()
150 void expectNoTag(uint64_t cookie) { EXPECT_FALSE(isOk(mFakeCookieTagMap.readValue(cookie))); } in expectNoTag()
154 EXPECT_TRUE(isOk(mFakeCookieTagMap.writeValue(cookie, cookieMapkey, BPF_ANY))); in populateFakeStats()
158 EXPECT_TRUE(isOk(mFakeUidCounterSetMap.writeValue(uid, counterSet, BPF_ANY))); in populateFakeStats()
159 EXPECT_TRUE(isOk(mFakeStatsMapA.writeValue(*key, statsMapValue, BPF_ANY))); in populateFakeStats()
161 EXPECT_TRUE(isOk(mFakeStatsMapA.writeValue(*key, statsMapValue, BPF_ANY))); in populateFakeStats()
162 EXPECT_TRUE(isOk(mFakeAppUidStatsMap.writeValue(uid, statsMapValue, BPF_ANY))); in populateFakeStats()
171 EXPECT_TRUE(isOk(value)); in checkUidOwnerRuleForChain()
[all …]
DNdcDispatcher.cpp177 if (!status.isOk()) { in runCommand()
201 if (!status.isOk()) { in runCommand()
241 if (!status.isOk()) { in runCommand()
256 if (!status.isOk()) { in runCommand()
267 if (!status.isOk()) { in runCommand()
309 if (status.isOk()) { in runCommand()
326 if (status.isOk()) { in runCommand()
343 if (status.isOk()) { in runCommand()
403 if (status.isOk()) { in runCommand()
496 if (status.isOk()) { in runCommand()
[all …]
DTrafficController.cpp312 if (!isOk(result)) { in start()
329 if (!isOk(s) && s.code() != ENOENT) { in start()
379 if (!isOk(configuration.status())) { in tagSocket()
392 if (!isOk(res)) { in tagSocket()
411 if (!isOk(res)) { in tagSocket()
428 if (!isOk(res)) { in untagSocket()
449 if (isOk(res) || (!isOk(res) && res.code() == ENOENT)) { in setCounterSet()
458 if (!isOk(res)) { in setCounterSet()
484 if (isOk(res) || (res.code() == ENOENT)) { in deleteTagData()
499 if (isOk(res) || (res.code() == ENOENT)) { in deleteTagData()
[all …]
DTetherControllerTest.cpp361 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
366 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
370 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
376 ASSERT_TRUE(isOk(result)); in TEST_F()
383 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
391 ASSERT_TRUE(isOk(result)); in TEST_F()
400 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
404 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
415 ASSERT_TRUE(isOk(result)); in TEST_F()
426 ASSERT_FALSE(isOk(result)); in TEST_F()
/system/security/keystore-engine/
Dkeystore_backend_binder.cpp83 if (algo.isOk()) return algo; in getKeyAlgoritmFromKeyCharacteristics()
87 if (algo.isOk()) return algo; in getKeyAlgoritmFromKeyCharacteristics()
113 if (!binder_result.isOk()) { in sign()
117 if (!KSReturn(error_code).isOk()) { in sign()
124 if (!KSReturn(km_response.response_code()).isOk()) { in sign()
130 if (!algorithm.isOk()) { in sign()
146 if (!binder_result.isOk()) { in sign()
152 if (!rc.isOk()) { in sign()
158 if (!result.resultCode.isOk()) { in sign()
170 if (!binder_result.isOk()) { in sign()
[all …]
/system/security/keystore/
Dkeystore_client_impl.cpp94 if (!init_vector_blob.isOk()) { in encryptWithAuthentication()
163 if (!result.isOk()) { in oneShotOperation()
172 if (!result.isOk()) { in oneShotOperation()
178 if (!result.isOk()) { in oneShotOperation()
194 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in addRandomNumberGeneratorEntropy()
197 if (!rc.isOk()) return rc; in addRandomNumberGeneratorEntropy()
216 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in generateKey()
219 if (!rc.isOk()) return rc; in generateKey()
242 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in getKeyCharacteristics()
245 if (!rc.isOk()) return rc; in getKeyCharacteristics()
[all …]
Dkeymaster_worker.cpp107 if (!error.isOk()) { in upgradeKeyBlob()
115 if (!error.isOk()) { in upgradeKeyBlob()
128 if (!error.isOk()) { in upgradeKeyBlob()
137 if (!error2.isOk()) { in upgradeKeyBlob()
181 if (!error.isOk()) { in createKeyCharacteristicsCache()
205 if (!error.isOk()) { in createKeyCharacteristicsCache()
217 if (!rc.isOk()) { in createKeyCharacteristicsCache()
230 if (!rc.isOk()) { in createKeyCharacteristicsCache()
238 if (!rc.isOk()) { in createKeyCharacteristicsCache()
365 if (!error.isOk()) { in begin()
[all …]
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp74 if (!ret.isOk()) { in getBlob()
99 if (!binder_result.isOk()) { in getPublicKey()
106 if (!rc.isOk()) { in getPublicKey()
113 if (!export_result.resultCode.isOk()) { in getPublicKey()
127 if (algo.isOk()) return algo; in getKeyAlgoritmFromKeyCharacteristics()
131 if (algo.isOk()) return algo; in getKeyAlgoritmFromKeyCharacteristics()
154 if (!binder_result.isOk()) { in sign()
160 if (!rc.isOk()) { in sign()
168 if (!KSReturn(km_response.response_code()).isOk()) { in sign()
175 if (!algorithm.isOk()) { in sign()
[all …]
/system/connectivity/wificond/tests/integration/
Dclient_interface_test.cpp49 kInterfaceName, &client_interface).isOk()); in TEST()
54 EXPECT_TRUE(client_interface->getInterfaceName(&if_name).isOk()); in TEST()
66 kInterfaceName, &client_interface2).isOk()); in TEST()
71 EXPECT_TRUE(service->tearDownClientInterface(kInterfaceName, &succes).isOk()); in TEST()
76 EXPECT_TRUE(service->tearDownInterfaces().isOk()); in TEST()
84 kInterfaceName, &client_interface).isOk()); in TEST()
87 EXPECT_TRUE(client_interface->getMacAddress(&mac_address).isOk()); in TEST()
Dap_interface_test.cpp49 EXPECT_TRUE(service->createApInterface(kInterfaceName, &ap_interface).isOk()); in TEST()
54 EXPECT_TRUE(ap_interface->getInterfaceName(&if_name).isOk()); in TEST()
66 kInterfaceName, &ap_interface2).isOk()); in TEST()
71 EXPECT_TRUE(service->tearDownApInterface(kInterfaceName, &success).isOk()); in TEST()
76 EXPECT_TRUE(service->tearDownInterfaces().isOk()); in TEST()
/system/netd/tests/
Dbinder_test.cpp324 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
332 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
336 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
351 EXPECT_TRUE(res.isOk()); in TEST_F()
395 EXPECT_TRUE(status.isOk()) in TEST_F()
404 EXPECT_TRUE(status.isOk()); in TEST_F()
419 EXPECT_TRUE(status.isOk()) in TEST_F()
428 EXPECT_TRUE(status.isOk()); in TEST_F()
583 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
587 EXPECT_TRUE(mNetd->networkCreateVpn(TEST_NETID2, true).isOk()); in TEST_F()
[all …]
Dbpf_base_test.cpp111 ASSERT_TRUE(isOk(tagResult)); in TEST_F()
116 ASSERT_FALSE(isOk(tagResult)); in TEST_F()
131 ASSERT_TRUE(isOk(tagResult)); in TEST_F()
139 if (!isOk(tagResult)) { in TEST_F()
155 ASSERT_TRUE(isOk(counterSetResult)); in TEST_F()
159 ASSERT_FALSE(isOk(counterSetResult)); in TEST_F()
176 EXPECT_TRUE(isOk(statsMapB.writeValue(key, statsMapValue, BPF_ANY))); in TEST_F()
178 EXPECT_TRUE(isOk(statsMapA.writeValue(key, statsMapValue, BPF_ANY))); in TEST_F()
179 EXPECT_TRUE(isOk(appUidStatsMap.writeValue(TEST_UID, statsMapValue, BPF_ANY))); in TEST_F()
182 ASSERT_FALSE(isOk(statsResult)); in TEST_F()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_nullables.cpp102 if (!status.isOk()) { in ConfirmNullableType()
121 if (!status.isOk()) { in ConfirmNullableType()
160 if (!s->TakesAnIBinder(binder).isOk()) { in CheckAppropriateIBinderHandling()
165 if (!s->TakesAnIBinderList(*list_without_nulls).isOk()) { in CheckAppropriateIBinderHandling()
172 if (!s->TakesANullableIBinder(null_binder).isOk()) { in CheckAppropriateIBinderHandling()
177 if (!s->TakesANullableIBinder(binder).isOk()) { in CheckAppropriateIBinderHandling()
182 if (!s->TakesANullableIBinderList(list_with_nulls).isOk()) { in CheckAppropriateIBinderHandling()
187 if (!s->TakesANullableIBinderList(list_without_nulls).isOk()) { in CheckAppropriateIBinderHandling()
199 if (!s->GetCallback(false, &callback).isOk()) { in CheckAppropriateIInterfaceHandling()
209 if (!s->GetCallback(true, &callback).isOk()) { in CheckAppropriateIInterfaceHandling()
Daidl_test_client_utf8_strings.cpp62 if (!status.isOk() || input != reply) { in ConfirmUtf8InCppStringRepeat()
73 if (!repeat_null_status.isOk() || ret) { in ConfirmUtf8InCppStringRepeat()
82 if (!status.isOk()) { in ConfirmUtf8InCppStringRepeat()
124 if (!status.isOk() || reversed || repeated) { in ConfirmUtf8InCppStringCollectionReverse()
135 if (!status.isOk() || !reversed || !repeated) { in ConfirmUtf8InCppStringCollectionReverse()
/system/netd/resolv/
Ddnsresolver_binder_test.cpp196 ASSERT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
291 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
303 EXPECT_TRUE(status.isOk()) << status.exceptionMessage(); in TEST_F()
333 EXPECT_TRUE(mDnsResolver->createNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
340 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
343 EXPECT_TRUE(mDnsResolver->createNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
346 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
349 EXPECT_TRUE(mDnsResolver->destroyNetworkCache(ANOTHER_TEST_NETID).isOk()); in TEST_F()
357 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_VERBOSE).isOk()); in TEST_F()
359 EXPECT_TRUE(mDnsResolver->setLogSeverity(IDnsResolver::DNS_RESOLVER_LOG_DEBUG).isOk()); in TEST_F()
[all …]
/system/gsid/
Dgsi_tool.cpp86 if (!status.isOk()) { in ErrorMessage()
136 if (!status.isOk()) { in UpdateProgress()
280 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
298 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
321 if (!status.isOk() || !ok) { in Wipe()
327 if (gsid->isGsiRunning(&running).isOk() && running) { in Wipe()
343 if (!status.isOk()) { in WipeData()
354 if (!status.isOk()) { in WipeData()
365 if (!status.isOk() || error) { in WipeData()
379 if (!status.isOk()) { in Status()
[all …]
/system/libhidl/base/include/hidl/
DStatus.h113 bool isOk() const { return mException == EX_NONE; } in isOk() function
161 return mStatus.isOk(); in isOkUnchecked()
164 bool isOk() const { in isOk() function
166 return mStatus.isOk(); in isOk()
232 return isOk() ? mVal : t; in withDefault()
261 return isOk() ? mVal : t; in withDefault()
289 if (other.mStatus.isOk() || !other.mCheckedStatus) { in StatusOf()
/system/libhidl/libhidlcache/
Dlibhidlcache_test.cpp29 #define EXPECT_OK(__ret__) EXPECT_TRUE(isOk(__ret__))
32 static inline ::testing::AssertionResult isOk(const ::android::hardware::Return<T>& ret) { in isOk() function
33 return ret.isOk() ? (::testing::AssertionSuccess() << ret.description()) in isOk()
143 EXPECT_TRUE(HidlMemoryDealer::isOk(blk)); in TEST_F()
145 EXPECT_TRUE(HidlMemoryDealer::isOk(blk2)); in TEST_F()
148 EXPECT_FALSE(HidlMemoryDealer::isOk(blk3)); in TEST_F()
151 EXPECT_TRUE(HidlMemoryDealer::isOk(blk3)); in TEST_F()
/system/apex/apexd/
Dapexd_checkpoint_vold.cpp47 if (!status.isOk()) { in VoldCheckpointInterface()
72 if (!status.isOk()) { in NeedsCheckpoint()
85 if (!status.isOk()) { in NeedsRollback()
96 if (!status.isOk()) { in StartCheckpoint()
/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp107 EXPECT_TRUE(isOk(tagResult)); in expectUidTag()
116 EXPECT_TRUE(isOk(map.writeValue(key, value, BPF_ANY))); in populateFakeStats()
122 EXPECT_TRUE(isOk(mFakeIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY))); in updateIfaceMap()
153 EXPECT_TRUE(isOk(mFakeCookieTagMap.writeValue(cookie, tag, BPF_ANY))); in TEST_F()
157 EXPECT_TRUE(isOk(nextCookie)); in TEST_F()
162 EXPECT_TRUE(isOk(nextCookie)); in TEST_F()
163 EXPECT_TRUE(isOk(mFakeCookieTagMap.deleteValue((nextCookie.value())))); in TEST_F()
166 EXPECT_TRUE(isOk(nextCookie)); in TEST_F()
167 EXPECT_TRUE(isOk(mFakeCookieTagMap.deleteValue((nextCookie.value())))); in TEST_F()
174 EXPECT_TRUE(isOk(nextCookie)); in TEST_F()
[all …]
/system/bpf/libbpf_android/
DBpfMapTest.cpp89 ASSERT_TRUE(isOk(map.writeValue(key, value, BPF_ANY))); in writeToMapAndCheck()
96 ASSERT_TRUE(isOk(value.status())); in checkValueAndStatus()
103 EXPECT_TRUE(isOk(map.writeValue(key, value, BPF_ANY))); in populateMap()
109 ASSERT_TRUE(isOk(isEmpty)); in expectMapEmpty()
138 ASSERT_TRUE(isOk(testMap.deleteValue(key))); in TEST_F()
239 ASSERT_TRUE(isOk(isEmpty)); in TEST_F()
241 ASSERT_TRUE(isOk(testMap.deleteValue(key))); in TEST_F()
268 ASSERT_TRUE(isOk(isEmpty)); in TEST_F()
270 ASSERT_TRUE(isOk(testMap.clear())); in TEST_F()
/system/security/keystore/tests/
Daaid_truncation_test.cpp95 ASSERT_TRUE(result.isOk()); in TEST()
104 ASSERT_TRUE(result.isOk()); in TEST()
121 ASSERT_TRUE(result.isOk()); in TEST()
142 ASSERT_TRUE(result.isOk()); in TEST()

123456