Home
last modified time | relevance | path

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

123456

/system/vold/tests/
DVoldNativeServiceValidation_test.cpp30 EXPECT_TRUE(CheckArgumentPath("/").isOk()); in TEST_F()
31 EXPECT_TRUE(CheckArgumentPath("/1/2").isOk()); in TEST_F()
32 EXPECT_TRUE(CheckArgumentPath("/1/2/").isOk()); in TEST_F()
33 EXPECT_TRUE(CheckArgumentPath("/1/2/./3").isOk()); in TEST_F()
34 EXPECT_TRUE(CheckArgumentPath("/1/2/./3/.").isOk()); in TEST_F()
37 .isOk()); in TEST_F()
39 EXPECT_FALSE(CheckArgumentPath("").isOk()); in TEST_F()
40 EXPECT_FALSE(CheckArgumentPath("relative/path").isOk()); in TEST_F()
41 EXPECT_FALSE(CheckArgumentPath("../data/..").isOk()); in TEST_F()
42 EXPECT_FALSE(CheckArgumentPath("/../data/..").isOk()); in TEST_F()
[all …]
/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.cpp128 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
143 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
158 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
173 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
187 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
201 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
215 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
232 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
249 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &single_scan_failure).isOk()); in TEST_F()
251 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &single_scan_failure).isOk()); in TEST_F()
[all …]
/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.cpp95 if (!init_vector_blob.isOk()) { in encryptWithAuthentication()
164 if (!result.isOk()) { in oneShotOperation()
172 if (!result.isOk()) { in oneShotOperation()
188 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in addRandomNumberGeneratorEntropy()
191 if (!rc.isOk()) return rc; in addRandomNumberGeneratorEntropy()
210 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in generateKey()
213 if (!rc.isOk()) return rc; in generateKey()
236 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in getKeyCharacteristics()
239 if (!rc.isOk()) return rc; in getKeyCharacteristics()
265 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in importKey()
[all …]
Dkeymaster_worker.cpp146 if (!error.isOk()) { in upgradeKeyBlob()
161 if (!error.isOk()) { in upgradeKeyBlob()
172 if (!error2.isOk()) { in upgradeKeyBlob()
216 if (!error.isOk()) { in createKeyCharacteristicsCache()
240 if (!error.isOk()) { in createKeyCharacteristicsCache()
252 if (!rc.isOk()) { in createKeyCharacteristicsCache()
265 if (!rc.isOk()) { in createKeyCharacteristicsCache()
273 if (!rc.isOk()) { in createKeyCharacteristicsCache()
403 if (!error.isOk()) { in begin()
417 if (!authRc.isOk() && authRc != ResponseCode::OP_AUTH_NEEDED) { in begin()
[all …]
Dkey_operation_log_handler.cpp29 if (tagValue.isOk()) { in getOptionalEnumTagValue()
40 if (tagValue.isOk()) { in generateBitMapForPaddingModeValue()
66 if (tagValue.isOk()) { in generateBitMapForDigestValue()
94 if (tagValue.isOk()) { in generateBitMapForBlockModeValue()
/system/netd/tests/
Dbinder_test.cpp288 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
296 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
300 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
315 EXPECT_TRUE(res.isOk()); in TEST_F()
359 EXPECT_TRUE(status.isOk()) in TEST_F()
368 EXPECT_TRUE(status.isOk()); in TEST_F()
383 EXPECT_TRUE(status.isOk()) in TEST_F()
392 EXPECT_TRUE(status.isOk()); in TEST_F()
547 EXPECT_TRUE(mNetd->networkCreatePhysical(TEST_NETID1, INetd::PERMISSION_NONE).isOk()); in TEST_F()
551 EXPECT_TRUE(mNetd->networkCreateVpn(TEST_NETID2, true).isOk()); in TEST_F()
[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/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp67 if (algo.isOk()) return algo; in getKeyAlgorithmFromKeyCharacteristics()
71 if (algo.isOk()) return algo; in getKeyAlgorithmFromKeyCharacteristics()
128 if (!ret.isOk()) { in getBlob()
155 if (!binder_result.isOk()) { in getPublicKey()
162 if (!rc.isOk()) { in getPublicKey()
169 if (!export_result.resultCode.isOk()) { in getPublicKey()
197 if (!binder_result.isOk()) { in sign()
203 if (!rc.isOk()) { in sign()
211 if (!KSReturn(km_response.response_code()).isOk()) { in sign()
218 if (!algorithm.isOk()) { in sign()
[all …]
/system/gsid/
Dgsi_tool.cpp73 if (!status.isOk()) { in ErrorMessage()
123 if (!status.isOk()) { in UpdateProgress()
269 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
275 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
283 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
298 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
305 if (!status.isOk()) { in Install()
310 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
333 if (!status.isOk() || !ok) { in Wipe()
339 if (gsid->isGsiRunning(&running).isOk() && running) { in Wipe()
[all …]
/system/netd/server/
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()
303 if (status.isOk()) { in runCommand()
320 if (status.isOk()) { in runCommand()
337 if (status.isOk()) { in runCommand()
397 if (status.isOk()) { in runCommand()
490 if (status.isOk()) { in runCommand()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_nullables.cpp105 if (!status.isOk()) { in ConfirmNullableType()
124 if (!status.isOk()) { in ConfirmNullableType()
163 if (!s->TakesAnIBinder(binder).isOk()) { in CheckAppropriateIBinderHandling()
168 if (!s->TakesAnIBinderList(*list_without_nulls).isOk()) { in CheckAppropriateIBinderHandling()
175 if (!s->TakesANullableIBinder(null_binder).isOk()) { in CheckAppropriateIBinderHandling()
180 if (!s->TakesANullableIBinder(binder).isOk()) { in CheckAppropriateIBinderHandling()
185 if (!s->TakesANullableIBinderList(list_with_nulls).isOk()) { in CheckAppropriateIBinderHandling()
190 if (!s->TakesANullableIBinderList(list_without_nulls).isOk()) { in CheckAppropriateIBinderHandling()
202 if (!s->GetCallback(false, &callback).isOk()) { in CheckAppropriateIInterfaceHandling()
212 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/security/identity/
DWritableCredential.cpp56 if (!asn1AttestationId.isOk()) { in ensureAttestationCertificateExists()
65 if (!status.isOk()) { in ensureAttestationCertificateExists()
84 if (!ensureStatus.isOk()) { in getCredentialKeyCertificateChain()
153 if (!ensureStatus.isOk()) { in personalize()
181 if (!status.isOk()) { in personalize()
187 if (!status.isOk()) { in personalize()
198 if (!status.isOk()) { in personalize()
214 if (!status.isOk()) { in personalize()
222 if (!status.isOk()) { in personalize()
238 if (!status.isOk()) { in personalize()
DCredential.cpp80 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in loadCredential()
86 if (!status.isOk()) { in loadCredential()
113 if (!status.isOk()) { in selectAuthKey()
154 if (!status.isOk()) { in getTokensFromKeystore()
370 if (!status.isOk()) { in getEntries()
377 if (!status.isOk()) { in getEntries()
385 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
397 if (!status.isOk()) { in getEntries()
419 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
439 if (!status.isOk()) { in getEntries()
[all …]
/system/core/fs_mgr/libfiemap/
Dbinder.cpp78 if (!status.isOk()) { in ToFiemapStatus()
106 if (!status.isOk()) { in DeleteBackingImage()
122 if (!status.isOk()) { in MapImageDevice()
133 if (!status.isOk()) { in UnmapImageDevice()
144 if (!status.isOk()) { in BackingImageExists()
155 if (!status.isOk()) { in IsImageMapped()
175 if (!status.isOk()) { in GetAllBackingImages()
189 if (!status.isOk()) { in RemoveAllImages()
204 if (!status.isOk()) { in RemoveDisabledImages()
214 if (!status.isOk()) { in GetMappedImageDevice()
[all …]
/system/apex/apexd/
Dapexd_checkpoint_vold.cpp48 if (!status.isOk()) { in VoldCheckpointInterface()
73 if (!status.isOk()) { in NeedsCheckpoint()
86 if (!status.isOk()) { in NeedsRollback()
97 if (!status.isOk()) { in StartCheckpoint()
/system/netd/libnetdutils/include/netdutils/
DStatus.h78 inline bool isOk(const Status& status) { in isOk() function
83 #define EXPECT_OK(status) EXPECT_TRUE(isOk(status))
84 #define ASSERT_OK(status) ASSERT_TRUE(isOk(status))
113 if (!isOk(tmp)) { \
/system/libhidl/base/include/hidl/
DStatus.h113 bool isOk() const { return mException == EX_NONE; } in isOk() function
168 return mStatus.isOk(); in isOkUnchecked()
171 bool isOk() const { in isOk() function
173 return mStatus.isOk(); in isOk()
239 return isOk() ? mVal : t; in withDefault()
268 return isOk() ? mVal : t; in withDefault()
296 if (other.mStatus.isOk() || !other.mCheckedStatus) { in StatusOf()
/system/update_engine/
Dboot_control_android.cc95 if (!ret.isOk()) { in IsSlotBootable()
110 if (!ret.isOk()) { in MarkSlotUnbootable()
125 if (!ret.isOk()) { in SetActiveBootSlot()
141 if (!ret.isOk()) { in MarkBootSuccessfulAsync()
157 if (!ret.isOk()) { in IsSlotMarkedSuccessful()
/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()
/system/bt/audio_hal_interface/
Dclient_interface.cc81 if (!hidl_retval.isOk()) { in startStream()
93 if (!hidl_retval.isOk()) { in suspendStream()
204 if (!hidl_retval.isOk()) { in ~BluetoothAudioClientInterface()
228 if (!hidl_retval.isOk()) { in IsSupported()
257 if (!hidl_retval.isOk()) { in GetAudioCapabilities()
287 if (!hidl_retval.isOk()) { in FetchAudioProvider()
317 if (!hidl_retval.isOk()) { in FetchAudioProvider()
322 if (!provider_->linkToDeath(death_recipient_, 0).isOk()) { in FetchAudioProvider()
388 if (!hidl_retval.isOk()) { in StartSession()
426 if (!hidl_retval.isOk()) { in StreamStarted()
[all …]

123456