Home
last modified time | relevance | path

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

1234567

/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/connectivity/wificond/tests/
Dserver_unittest.cpp149 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
156 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
161 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &second_ap_if).isOk()); in TEST_F()
169 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
173 EXPECT_TRUE(server_.tearDownInterfaces().isOk()); in TEST_F()
175 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
181 EXPECT_TRUE(server_.createApInterface(kFakeInterfaceName, &ap_if).isOk()); in TEST_F()
187 kFateInterfaceNameInvalid, &success).isOk()); in TEST_F()
190 EXPECT_TRUE(server_.tearDownApInterface(kFakeInterfaceName, &success).isOk()); in TEST_F()
198 kFakeInterfaceName, &client_if).isOk()); in TEST_F()
[all …]
Dscanner_unittest.cpp129 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
145 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
160 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
175 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
189 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
203 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
217 EXPECT_TRUE(scanner_impl.scan(settings, &success).isOk()); in TEST_F()
234 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &success).isOk()); in TEST_F()
251 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &single_scan_failure).isOk()); in TEST_F()
253 EXPECT_TRUE(scanner_impl_->scan(SingleScanSettings(), &single_scan_failure).isOk()); in TEST_F()
[all …]
/system/netd/tests/
Dbinder_test.cpp286 EXPECT_FALSE(netd->networkCreate(config).isOk()); in testNetworkExistsButCannotConnect()
291 if (status.isOk()) { // clean up in testNetworkExistsButCannotConnect()
292 EXPECT_TRUE(netd->networkRemoveInterface(netId, ifc.name()).isOk()); in testNetworkExistsButCannotConnect()
345 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
353 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
357 EXPECT_TRUE(status.isOk()) << td.family << status.exceptionMessage(); in TEST_F()
372 EXPECT_TRUE(res.isOk()); in TEST_F()
416 EXPECT_TRUE(status.isOk()) in TEST_F()
425 EXPECT_TRUE(status.isOk()); in TEST_F()
440 EXPECT_TRUE(status.isOk()) in TEST_F()
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendAidlTest.cpp64 ASSERT_TRUE(ret.isOk()); in TEST_F()
72 ASSERT_TRUE(ret.isOk()); in TEST_F()
77 ASSERT_TRUE(ret.isOk()); in TEST_F()
86 ASSERT_TRUE(ret.isOk()); in TEST_F()
96 ASSERT_TRUE(ret.isOk()); in TEST_F()
102 ASSERT_TRUE(ret.isOk()); in TEST_F()
112 ASSERT_TRUE(ret.isOk()); in TEST_F()
118 ASSERT_TRUE(ret.isOk()); in TEST_F()
129 ASSERT_TRUE(ret.isOk()); in TEST_F()
135 ASSERT_TRUE(ret.isOk()); in TEST_F()
/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/tools/aidl/tests/
Daidl_test_client_nullables.cpp51 ASSERT_TRUE(status.isOk()); in DoTest()
57 ASSERT_TRUE(status.isOk()); in DoTest()
103 ASSERT_TRUE(status.isOk()); in TEST_F()
109 ASSERT_TRUE(status.isOk()); in TEST_F()
117 ASSERT_TRUE(status.isOk()) << status; in TEST_F()
130 ASSERT_TRUE(status.isOk()) << status; in TEST_F()
139 ASSERT_TRUE(status.isOk()); in TEST_F()
147 ASSERT_TRUE(status.isOk()); in TEST_F()
152 ASSERT_TRUE(status.isOk()); in TEST_F()
160 ASSERT_TRUE(status.isOk()); in TEST_F()
[all …]
Daidl_test_client_renamed_interface.cpp34 ASSERT_TRUE(service->GetOldNameInterface(&oldName).isOk()); in SetUp()
35 ASSERT_TRUE(service->GetNewNameInterface(&newName).isOk()); in SetUp()
45 ASSERT_TRUE(oldName->RealName(&realName).isOk()); in TEST_F()
52 ASSERT_TRUE(newName->RealName(&realName).isOk()); in TEST_F()
60 ASSERT_TRUE(oldAsNew->RealName(&realName).isOk()); in TEST_F()
68 ASSERT_TRUE(newAsOld->RealName(&realName).isOk()); in TEST_F()
Daidl_test_client_ndk_versioned_interface.cpp46 EXPECT_TRUE(status.isOk()) << status.getDescription(); in TEST_F()
53 EXPECT_TRUE(status.isOk()) << status.getDescription(); in TEST_F()
61 EXPECT_TRUE(status.isOk()) << status.getDescription(); in TEST_F()
69 EXPECT_TRUE(status.isOk()) << status.getDescription(); in TEST_F()
Daidl_test_client_versioned_interface.cpp55 EXPECT_TRUE(status.isOk()); in TEST_F()
63 EXPECT_FALSE(status.isOk()); in TEST_F()
76 EXPECT_TRUE(status.isOk()); in TEST_F()
84 EXPECT_TRUE(status.isOk()); in TEST_F()
Daidl_test_client_utf8_strings.cpp51 ASSERT_TRUE(status.isOk()); in TEST_F()
57 ASSERT_TRUE(status.isOk()); in TEST_F()
63 ASSERT_TRUE(status.isOk()); in TEST_F()
78 ASSERT_TRUE(status.isOk()) << status; in TEST_F()
96 ASSERT_TRUE(status.isOk()) << status; in DoTest()
117 ASSERT_TRUE(status.isOk()) << status; in DoTest()
/system/gsid/
Dgsi_tool.cpp74 if (!status.isOk()) { in ErrorMessage()
124 if (!status.isOk()) { in UpdateProgress()
270 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
276 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
282 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
290 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
305 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
312 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
319 if (!status.isOk()) { in Install()
324 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
[all …]
/system/keymaster/include/keymaster/
Dremote_provisioning_utils.h41 bool isOk() { return status_code_ == 0; } in isOk() function
44 assert(isOk());
48 assert(isOk());
52 assert(isOk());
57 assert(!isOk()); in moveError()
/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 …]
DTetherControllerTest.cpp364 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
369 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
373 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
379 ASSERT_TRUE(isOk(result)); in TEST_F()
386 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
394 ASSERT_TRUE(isOk(result)); in TEST_F()
403 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
407 ASSERT_FALSE(isOk(mTetherCtrl.getTetherStats())); in TEST_F()
418 ASSERT_TRUE(isOk(result)); in TEST_F()
429 ASSERT_FALSE(isOk(result)); in TEST_F()
/system/security/keystore2/src/km_compat/
Dslot_test.cpp50 if (!status.isOk()) { in generateAESKey()
66 if (!status.isOk()) { in begin()
106 ASSERT_TRUE(status.isOk()); in TEST()
115 ASSERT_TRUE(!status.isOk()); in TEST()
117 ASSERT_TRUE(!status.isOk()); in TEST()
127 ASSERT_TRUE(status.isOk()); in TEST()
136 ASSERT_TRUE(!status.isOk()); in TEST()
138 ASSERT_TRUE(!status.isOk()); in TEST()
157 ASSERT_TRUE(status.isOk()); in TEST()
161 ASSERT_TRUE(status.isOk()); in TEST()
/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/security/identity/
DWritableCredential.cpp61 if (!asn1AttestationId.isOk()) { in ensureAttestationCertificateExists()
70 if (!status.isOk()) { in ensureAttestationCertificateExists()
92 if (!ensureStatus.isOk()) { in getCredentialKeyCertificateChain()
172 if (!ensureStatus.isOk()) { in personalize()
201 if (!status.isOk()) { in personalize()
207 if (!status.isOk()) { in personalize()
218 if (!status.isOk()) { in personalize()
234 if (!status.isOk()) { in personalize()
242 if (!status.isOk()) { in personalize()
258 if (!status.isOk()) { in personalize()
DCredential.cpp91 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in ensureOrReplaceHalBinder()
97 if (!status.isOk()) { in ensureOrReplaceHalBinder()
152 if (!status.isOk()) { in ensureChallenge()
181 if (result.isOk()) { in getTokensFromKeystore2()
409 if (!status.isOk()) { in getEntries()
416 if (!status.isOk()) { in getEntries()
424 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
436 if (!status.isOk()) { in getEntries()
458 if (!status.isOk() && status.exceptionCode() == binder::Status::EX_SERVICE_SPECIFIC) { in getEntries()
478 if (!status.isOk()) { in getEntries()
[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()
98 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/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/update_engine/aosp/
Dboot_control_android.cc106 if (!ret.isOk()) { in IsSlotBootable()
121 if (!ret.isOk()) { in MarkSlotUnbootable()
136 if (!ret.isOk()) { in SetActiveBootSlot()
152 if (!ret.isOk()) { in MarkBootSuccessfulAsync()
168 if (!ret.isOk()) { in IsSlotMarkedSuccessful()

1234567