Home
last modified time | relevance | path

Searched refs:OK (Results 1 – 25 of 31) sorted by relevance

12

/system/security/keystore/tests/
Dauth_token_table_test.cpp112 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(1), 0, &found)); in TEST()
116 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(2), 0, &found)); in TEST()
120 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(3), 0, &found)); in TEST()
124 ASSERT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(4), 0, &found)); in TEST()
143 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(1), 0, &found)); in TEST()
144 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(2), 0, &found)); in TEST()
145 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(3), 0, &found)); in TEST()
162 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(1), 0, &found)); in TEST()
163 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(2), 0, &found)); in TEST()
164 EXPECT_EQ(AuthTokenTable::OK, table.FindAuthorization(make_set(3), 0, &found)); in TEST()
[all …]
/system/media/camera/tests/
Dcamera_metadata_tests.cpp35 #define OK 0 macro
44 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); \
131 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST()
189 EXPECT_EQ(OK, validate_camera_metadata_structure(m, &buf_size)); in TEST()
217 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
229 EXPECT_EQ(OK, result); in TEST()
234 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
242 EXPECT_EQ(OK, result); in TEST()
247 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); in TEST()
255 EXPECT_EQ(OK, result); in TEST()
[all …]
/system/vold/
DVolumeBase.cpp59 return OK; in setDiskId()
69 return OK; in setPartGuid()
79 return OK; in setMountFlags()
89 return OK; in setMountUserId()
99 return OK; in setSilent()
109 return OK; in setId()
120 return OK; in setPath()
131 return OK; in setInternalPath()
175 return OK; in doCreate()
195 return OK; in doDestroy()
[all …]
DMoveTask.cpp78 return found ? OK : -1; in pushBackContents()
91 if (pushBackContents(path, cmd) != OK) { in execRm()
93 return OK; in execRm()
104 return (WEXITSTATUS(status) == 0) ? OK : -1; in execRm()
131 if (pushBackContents(fromPath, cmd) != OK) { in execCp()
133 return OK; in execCp()
145 return (WEXITSTATUS(status) == 0) ? OK : -1; in execCp()
192 if (execRm(toPath, 10, 10) != OK) { in run()
197 if (execCp(fromPath, toPath, 20, 60) != OK) { in run()
208 if (execRm(fromPath, 85, 15) != OK) { in run()
DUtils.cpp93 return OK; in DestroyDeviceNode()
115 return OK; in PrepareDir()
124 return OK; in ForceUnmount()
133 return OK; in ForceUnmount()
139 return OK; in ForceUnmount()
145 return OK; in ForceUnmount()
154 return OK; in KillProcessesUsingPath()
159 return OK; in KillProcessesUsingPath()
164 return OK; in KillProcessesUsingPath()
171 return OK; in KillProcessesUsingPath()
[all …]
DPublicVolume.cpp82 return OK; in initAsecStage()
146 return OK; in doMount()
189 return OK; in doMount()
216 return OK; in doUnmount()
221 if (WipeBlockDevice(mDevPath) != OK) { in doFormat()
233 return OK; in doFormat()
DPrivateVolume.cpp83 return OK; in doCreate()
177 return OK; in doMount()
187 return OK; in doUnmount()
219 return OK; in doFormat()
DDisk.cpp123 return OK; in create()
131 return OK; in destroy()
242 return OK; in readMetadata()
262 if (res != OK) { in readPartitions()
323 if (ReadMetadataUntrusted(mDevPath, fsType, unused, unused) == OK) { in readPartitions()
332 return OK; in readPartitions()
339 return OK; in unmountAll()
478 return OK; in partitionMixed()
DEmulatedVolume.cpp106 return OK; in doMount()
129 return OK; in doUnmount()
/system/extras/ext4_utils/
Dunencrypted_properties.cpp41 if (!OK()) return default_value; in Get()
65 if (!OK()) return false; in Set()
74 if (!OK()) return up; in GetChild()
87 if (!OK()) return false; in Remove()
96 bool UnencryptedProperties::OK() const in OK() function in UnencryptedProperties
Dunencrypted_properties.h43 bool OK() const;
54 if (!OK()) return default_value; in Get()
63 if (!OK()) return false; in Set()
/system/media/camera/src/
Dcamera_metadata.c28 #define OK 0 macro
188 if (validate_camera_metadata_structure(metadata, &src_size) != OK) { in allocate_copy_camera_metadata_checked()
231 assert(validate_camera_metadata_structure(metadata, NULL) == OK); in place_camera_metadata()
298 assert(validate_camera_metadata_structure(metadata, NULL) == OK); in copy_camera_metadata()
455 return OK; in validate_camera_metadata_structure()
490 assert(validate_camera_metadata_structure(dst, NULL) == OK); in append_camera_metadata()
491 return OK; in append_camera_metadata()
502 if (res != OK) { in clone_camera_metadata()
507 assert(validate_camera_metadata_structure(clone, NULL) == OK); in clone_camera_metadata()
552 assert(validate_camera_metadata_structure(dst, NULL) == OK); in add_camera_metadata_entry_raw()
[all …]
/system/core/libutils/tests/
DBlobCache_test.cpp276 ASSERT_EQ(OK, mBC->flatten(flat, size)); in roundTrip()
277 ASSERT_EQ(OK, mBC2->unflatten(flat, size)); in roundTrip()
324 ASSERT_EQ(OK, mBC->flatten(flat, size)); in TEST_F()
356 ASSERT_EQ(OK, mBC->flatten(flat, size)); in TEST_F()
373 ASSERT_EQ(OK, mBC->flatten(flat, size)); in TEST_F()
378 ASSERT_EQ(OK, mBC2->unflatten(flat, size)); in TEST_F()
392 ASSERT_EQ(OK, mBC->flatten(flat, size)); in TEST_F()
397 ASSERT_EQ(OK, mBC2->unflatten(flat, size)); in TEST_F()
411 ASSERT_EQ(OK, mBC->flatten(flat, size)); in TEST_F()
DLooper_test.cpp186 ASSERT_EQ(OK, pipe.writeSignal()); in TEST_F()
234 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
260 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
286 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
309 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
325 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
351 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
428 ASSERT_EQ(OK, pipe.readSignal()) in TEST_F()
/system/keymaster/
Dauthorization_set.cpp57 builder.set.error_ = OK; in AuthorizationSet()
65 if (is_valid() != OK) in reserve_elems()
83 if (is_valid() != OK) in reserve_indirect()
110 error_ = OK; in Reinitialize()
123 error_ = OK; in Reinitialize()
181 if (is_valid() != OK) in find()
195 if (is_valid() == OK && at < (int)elems_size_) { in operator []()
204 if (is_valid() == OK && at < (int)elems_size_) { in operator []()
212 if (is_valid() != OK) in push_back()
229 if (is_valid() != OK) in push_back()
[all …]
Dauthorization_set_test.cpp60 EXPECT_EQ(AuthorizationSet::OK, set1.is_valid()); in TEST()
64 EXPECT_EQ(AuthorizationSet::OK, set2.is_valid()); in TEST()
169 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
200 EXPECT_EQ(AuthorizationSet::OK, deserialized.is_valid()); in TEST()
305 EXPECT_EQ(AuthorizationSet::OK, deserialized1.is_valid()); in TEST()
309 EXPECT_EQ(AuthorizationSet::OK, deserialized1.is_valid()); in TEST()
333 EXPECT_EQ(AuthorizationSet::OK, deserialized4.is_valid()); in TEST()
364 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
369 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
378 EXPECT_EQ(AuthorizationSet::OK, growable.is_valid()); in TEST()
[all …]
Dkey.cpp33 if (authorizations_.is_valid() != AuthorizationSet::OK) in Key()
/system/extras/tests/bionic/libc/
Drun-test.sh137 $ADB_CMD shell $@ "&&" echo OK "||" echo KO | tee $ADB_CMD_LOG
139 $ADB_CMD shell $@ "&&" echo OK "||" echo KO > $ADB_CMD_LOG
/system/core/fingerprintd/
Dfingerprintd.cpp43 if (ret != android::OK) { in main()
/system/core/include/utils/
DErrors.h46 OK = 0, // Everything's swell. enumerator
/system/core/libutils/
DBlobCache.cpp230 return OK; in flatten()
254 return OK; in unflatten()
287 return OK; in unflatten()
DTokenizer.cpp107 return OK; in fromContents()
/system/security/keystore/
Dauth_token_table.cpp120 return OK; in FindAuthPerOpAuthorization()
143 return OK; in FindTimedAuthorization()
Dauth_token_table.h48 OK, enumerator
/system/core/healthd/
DBatteryPropertiesRegistrar.cpp89 return OK; in dump()

12