/system/chre/util/tests/ |
D | dynamic_vector_test.cc | 61 DynamicVector<int> vector; in TEST() local 62 EXPECT_EQ(vector.data(), nullptr); in TEST() 63 EXPECT_TRUE(vector.empty()); in TEST() 64 EXPECT_EQ(vector.size(), 0); in TEST() 65 EXPECT_EQ(vector.capacity(), 0); in TEST() 66 vector.clear(); in TEST() 70 DynamicVector<int> vector; in TEST() local 71 ASSERT_TRUE(vector.push_back(0x1337)); in TEST() 72 EXPECT_EQ(vector.size(), 1); in TEST() 73 EXPECT_EQ(vector.capacity(), 1); in TEST() [all …]
|
D | fixed_size_vector_test.cc | 86 FixedSizeVector<int, 8> vector; in TEST() local 87 vector.push_back(0x1337); in TEST() 88 vector.push_back(0xcafe); in TEST() 89 vector.push_back(0xbeef); in TEST() 90 vector.push_back(0xface); in TEST() 92 vector.erase(1); in TEST() 93 ASSERT_EQ(vector[0], 0x1337); in TEST() 94 ASSERT_EQ(vector.data()[0], 0x1337); in TEST() 95 ASSERT_EQ(vector[1], 0xbeef); in TEST() 96 ASSERT_EQ(vector.data()[1], 0xbeef); in TEST() [all …]
|
/system/core/libutils/binder/ |
D | Vector_fuzz.cpp | 41 Vector<T> vector; member 42 const std::vector<std::function<void(FuzzedDataProvider&, Vector<T>&)>> funcs = { 43 [&](FuzzedDataProvider& provider, Vector<T>& vector) { in __anon8d74170b0102() 47 vector = testVector(provider); in __anon8d74170b0102() 49 [&](FuzzedDataProvider& provider, Vector<T>& vector) { in __anon8d74170b0202() 52 vector.clear(); in __anon8d74170b0202() 54 [&](FuzzedDataProvider& provider, Vector<T>& vector) { in __anon8d74170b0302() 57 vector.size(); in __anon8d74170b0302() 59 [&](FuzzedDataProvider& provider, Vector<T>& vector) { in __anon8d74170b0402() 62 vector.isEmpty(); in __anon8d74170b0402() [all …]
|
D | Vector_test.cpp | 42 Vector<int> vector; in TEST_F() local 44 vector.setCapacity(8); in TEST_F() 46 vector.add(1); in TEST_F() 47 vector.add(2); in TEST_F() 48 vector.add(3); in TEST_F() 50 EXPECT_EQ(3U, vector.size()); in TEST_F() 53 other = vector; in TEST_F() 58 vector.add(4); in TEST_F() 61 EXPECT_EQ(4U, vector.size()); in TEST_F() 68 EXPECT_EQ(4U, vector.size()); in TEST_F() [all …]
|
/system/core/init/ |
D | service_parser.h | 39 Result<void> ParseSection(std::vector<std::string>&& args, const std::string& filename, 41 Result<void> ParseLineSection(std::vector<std::string>&& args, int line) override; 46 using OptionParser = Result<void> (ServiceParser::*)(std::vector<std::string>&& args); 49 Result<void> ParseCapabilities(std::vector<std::string>&& args); 50 Result<void> ParseClass(std::vector<std::string>&& args); 51 Result<void> ParseConsole(std::vector<std::string>&& args); 52 Result<void> ParseCritical(std::vector<std::string>&& args); 53 Result<void> ParseDisabled(std::vector<std::string>&& args); 54 Result<void> ParseEnterNamespace(std::vector<std::string>&& args); 55 Result<void> ParseGroup(std::vector<std::string>&& args); [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/ |
D | BpTestService.h | 34 …::ScopedAStatus ReverseBoolean(const std::vector<bool>& in_input, std::vector<bool>* out_repeated,… 35 …::ScopedAStatus ReverseByte(const std::vector<uint8_t>& in_input, std::vector<uint8_t>* out_repeat… 36 …:ScopedAStatus ReverseChar(const std::vector<char16_t>& in_input, std::vector<char16_t>* out_repea… 37 …k::ScopedAStatus ReverseInt(const std::vector<int32_t>& in_input, std::vector<int32_t>* out_repeat… 38 …::ScopedAStatus ReverseLong(const std::vector<int64_t>& in_input, std::vector<int64_t>* out_repeat… 39 …k::ScopedAStatus ReverseFloat(const std::vector<float>& in_input, std::vector<float>* out_repeated… 40 …:ScopedAStatus ReverseDouble(const std::vector<double>& in_input, std::vector<double>* out_repeate… 41 …edAStatus ReverseString(const std::vector<std::string>& in_input, std::vector<std::string>* out_re… 42 …st std::vector<::aidl::android::aidl::tests::ByteEnum>& in_input, std::vector<::aidl::android::aid… 43 …nst std::vector<::aidl::android::aidl::tests::IntEnum>& in_input, std::vector<::aidl::android::aid… [all …]
|
D | BnTestService.h | 77 …::ScopedAStatus ReverseBoolean(const std::vector<bool>& in_input, std::vector<bool>* out_repeated,… in ReverseBoolean() 80 …::ScopedAStatus ReverseByte(const std::vector<uint8_t>& in_input, std::vector<uint8_t>* out_repeat… in ReverseByte() 83 …:ScopedAStatus ReverseChar(const std::vector<char16_t>& in_input, std::vector<char16_t>* out_repea… in ReverseChar() 86 …k::ScopedAStatus ReverseInt(const std::vector<int32_t>& in_input, std::vector<int32_t>* out_repeat… in ReverseInt() 89 …::ScopedAStatus ReverseLong(const std::vector<int64_t>& in_input, std::vector<int64_t>* out_repeat… in ReverseLong() 92 …k::ScopedAStatus ReverseFloat(const std::vector<float>& in_input, std::vector<float>* out_repeated… in ReverseFloat() 95 …:ScopedAStatus ReverseDouble(const std::vector<double>& in_input, std::vector<double>* out_repeate… in ReverseDouble() 98 …edAStatus ReverseString(const std::vector<std::string>& in_input, std::vector<std::string>* out_re… in ReverseString() 101 …st std::vector<::aidl::android::aidl::tests::ByteEnum>& in_input, std::vector<::aidl::android::aid… in ReverseByteEnum() 104 …nst std::vector<::aidl::android::aidl::tests::IntEnum>& in_input, std::vector<::aidl::android::aid… in ReverseIntEnum() [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/ |
D | BpTestService.h | 34 …::ScopedAStatus ReverseBoolean(const std::vector<bool>& in_input, std::vector<bool>* out_repeated,… 35 …::ScopedAStatus ReverseByte(const std::vector<uint8_t>& in_input, std::vector<uint8_t>* out_repeat… 36 …:ScopedAStatus ReverseChar(const std::vector<char16_t>& in_input, std::vector<char16_t>* out_repea… 37 …k::ScopedAStatus ReverseInt(const std::vector<int32_t>& in_input, std::vector<int32_t>* out_repeat… 38 …::ScopedAStatus ReverseLong(const std::vector<int64_t>& in_input, std::vector<int64_t>* out_repeat… 39 …k::ScopedAStatus ReverseFloat(const std::vector<float>& in_input, std::vector<float>* out_repeated… 40 …:ScopedAStatus ReverseDouble(const std::vector<double>& in_input, std::vector<double>* out_repeate… 41 …edAStatus ReverseString(const std::vector<std::string>& in_input, std::vector<std::string>* out_re… 42 …st std::vector<::aidl::android::aidl::tests::ByteEnum>& in_input, std::vector<::aidl::android::aid… 43 …nst std::vector<::aidl::android::aidl::tests::IntEnum>& in_input, std::vector<::aidl::android::aid… [all …]
|
D | BnTestService.h | 77 …::ScopedAStatus ReverseBoolean(const std::vector<bool>& in_input, std::vector<bool>* out_repeated,… in ReverseBoolean() 80 …::ScopedAStatus ReverseByte(const std::vector<uint8_t>& in_input, std::vector<uint8_t>* out_repeat… in ReverseByte() 83 …:ScopedAStatus ReverseChar(const std::vector<char16_t>& in_input, std::vector<char16_t>* out_repea… in ReverseChar() 86 …k::ScopedAStatus ReverseInt(const std::vector<int32_t>& in_input, std::vector<int32_t>* out_repeat… in ReverseInt() 89 …::ScopedAStatus ReverseLong(const std::vector<int64_t>& in_input, std::vector<int64_t>* out_repeat… in ReverseLong() 92 …k::ScopedAStatus ReverseFloat(const std::vector<float>& in_input, std::vector<float>* out_repeated… in ReverseFloat() 95 …:ScopedAStatus ReverseDouble(const std::vector<double>& in_input, std::vector<double>* out_repeate… in ReverseDouble() 98 …edAStatus ReverseString(const std::vector<std::string>& in_input, std::vector<std::string>* out_re… in ReverseString() 101 …st std::vector<::aidl::android::aidl::tests::ByteEnum>& in_input, std::vector<::aidl::android::aid… in ReverseByteEnum() 104 …nst std::vector<::aidl::android::aidl::tests::IntEnum>& in_input, std::vector<::aidl::android::aid… in ReverseIntEnum() [all …]
|
/system/core/fastboot/device/ |
D | variables.h | 24 bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 25 bool GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args, 27 bool GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args, 29 bool GetOsVersion(FastbootDevice* device, const std::vector<std::string>& args, 31 bool GetVndkVersion(FastbootDevice* device, const std::vector<std::string>& args, 33 bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 34 bool GetSerial(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 35 bool GetSecure(FastbootDevice* device, const std::vector<std::string>& args, std::string* message); 36 bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args, 38 bool GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args, [all …]
|
D | commands.h | 35 using CommandHandler = std::function<bool(FastbootDevice*, const std::vector<std::string>&)>; 37 bool DownloadHandler(FastbootDevice* device, const std::vector<std::string>& args); 38 bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& args); 39 bool ShutDownHandler(FastbootDevice* device, const std::vector<std::string>& args); 40 bool RebootHandler(FastbootDevice* device, const std::vector<std::string>& args); 41 bool RebootBootloaderHandler(FastbootDevice* device, const std::vector<std::string>& args); 42 bool RebootFastbootHandler(FastbootDevice* device, const std::vector<std::string>& args); 43 bool RebootRecoveryHandler(FastbootDevice* device, const std::vector<std::string>& args); 44 bool GetVarHandler(FastbootDevice* device, const std::vector<std::string>& args); 45 bool EraseHandler(FastbootDevice* device, const std::vector<std::string>& args); [all …]
|
/system/update_engine/payload_generator/ |
D | deflate_utils_unittest.cc | 34 using std::vector; 40 vector<BitExtent> ByteToBitExtent(const vector<ByteExtent>& byte_extents) { in ByteToBitExtent() 41 vector<BitExtent> bit_extents; in ByteToBitExtent() 50 vector<Extent> base_extents = {ExtentForRange(10, 10), in TEST() 55 vector<Extent> over_extents = {ExtentForRange(2, 2), in TEST() 61 vector<Extent> out_over_extents = {ExtentForRange(12, 2), in TEST() 80 vector<Extent> base_extents = {ExtentForRange(3, 1), in TEST() 85 vector<BitExtent> over_extents = in TEST() 87 vector<BitExtent> out_over_extents = in TEST() 94 vector<Extent> base_extents = {ExtentForRange(1, 1)}; in TEST() [all …]
|
D | deflate_utils.h | 36 std::vector<FilesystemInterface::File>* result, 49 bool ShiftExtentsOverExtents(const std::vector<Extent>& base_extents, 50 std::vector<Extent>* over_extents); 64 bool ShiftBitExtentsOverExtents(const std::vector<Extent>& base_extents, 65 std::vector<puffin::BitExtent>* over_extents); 69 std::vector<puffin::BitExtent> FindDeflates( 70 const std::vector<Extent>& extents, 71 const std::vector<puffin::BitExtent>& deflates); 86 bool CompactDeflates(const std::vector<Extent>& extents, 87 const std::vector<puffin::BitExtent>& in_deflates, [all …]
|
/system/keymaster/ng/include/ |
D | AndroidKeyMintDevice.h | 32 using std::vector; 43 ScopedAStatus addRngEntropy(const vector<uint8_t>& data) override; 45 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 49 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 50 const vector<uint8_t>& keyData, 54 ScopedAStatus importWrappedKey(const vector<uint8_t>& wrappedKeyData, 55 const vector<uint8_t>& wrappingKeyBlob, 56 const vector<uint8_t>& maskingKey, 57 const vector<KeyParameter>& unwrappingParams, 61 ScopedAStatus upgradeKey(const vector<uint8_t>& keyBlobToUpgrade, [all …]
|
/system/security/identity/ |
D | CredentialData.h | 42 using ::std::vector; 48 vector<int32_t> accessControlProfileIds; 49 vector<vector<uint8_t>> encryptedChunks; 55 vector<uint8_t> certificate; 56 vector<uint8_t> keyBlob; 58 vector<uint8_t> staticAuthenticationData; 59 vector<uint8_t> pendingCertificate; 60 vector<uint8_t> pendingKeyBlob; 76 void setCredentialData(const vector<uint8_t>& credentialData); 78 void setAttestationCertificate(const vector<uint8_t>& attestationCertificate); [all …]
|
D | Credential.h | 36 using ::std::vector; 58 Status createEphemeralKeyPair(vector<uint8_t>* _aidl_return) override; 60 Status setReaderEphemeralPublicKey(const vector<uint8_t>& publicKey) override; 62 Status deleteCredential(vector<uint8_t>* _aidl_return) override; 64 Status deleteWithChallenge(const vector<uint8_t>& challenge, 65 vector<uint8_t>* _aidl_return) override; 67 Status proveOwnership(const vector<uint8_t>& challenge, vector<uint8_t>* _aidl_return) override; 69 Status getCredentialKeyCertificateChain(vector<uint8_t>* _aidl_return) override; 74 Status getEntries(const vector<uint8_t>& requestMessage, 75 const vector<RequestNamespaceParcel>& requestNamespaces, [all …]
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeyMintDevice.h | 33 using ::std::vector; 42 ScopedAStatus addRngEntropy(const vector<uint8_t>& data) override; 44 ScopedAStatus generateKey(const vector<KeyParameter>& keyParams, 48 ScopedAStatus getKeyCharacteristics(const vector<uint8_t>& keyBlob, 49 const vector<uint8_t>& clientId, 50 const vector<uint8_t>& appData, 51 vector<KeyCharacteristics>* characteristics) override; 53 ScopedAStatus importKey(const vector<KeyParameter>& keyParams, KeyFormat keyFormat, 54 const vector<uint8_t>& keyData, 58 ScopedAStatus importWrappedKey(const vector<uint8_t>& wrappedKeyData, [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | BpTestService.h | 33 …:binder::Status ReverseBoolean(const ::std::vector<bool>& input, ::std::vector<bool>* repeated, ::… 34 …:binder::Status ReverseByte(const ::std::vector<uint8_t>& input, ::std::vector<uint8_t>* repeated,… 35 …binder::Status ReverseChar(const ::std::vector<char16_t>& input, ::std::vector<char16_t>* repeated… 36 …::binder::Status ReverseInt(const ::std::vector<int32_t>& input, ::std::vector<int32_t>* repeated,… 37 …:binder::Status ReverseLong(const ::std::vector<int64_t>& input, ::std::vector<int64_t>* repeated,… 38 …::binder::Status ReverseFloat(const ::std::vector<float>& input, ::std::vector<float>* repeated, :… 39 …binder::Status ReverseDouble(const ::std::vector<double>& input, ::std::vector<double>* repeated, … 40 …s ReverseString(const ::std::vector<::android::String16>& input, ::std::vector<::android::String16… 41 …um(const ::std::vector<::android::aidl::tests::ByteEnum>& input, ::std::vector<::android::aidl::te… 42 …num(const ::std::vector<::android::aidl::tests::IntEnum>& input, ::std::vector<::android::aidl::te… [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | BpTestService.h | 33 …:binder::Status ReverseBoolean(const ::std::vector<bool>& input, ::std::vector<bool>* repeated, ::… 34 …:binder::Status ReverseByte(const ::std::vector<uint8_t>& input, ::std::vector<uint8_t>* repeated,… 35 …binder::Status ReverseChar(const ::std::vector<char16_t>& input, ::std::vector<char16_t>* repeated… 36 …::binder::Status ReverseInt(const ::std::vector<int32_t>& input, ::std::vector<int32_t>* repeated,… 37 …:binder::Status ReverseLong(const ::std::vector<int64_t>& input, ::std::vector<int64_t>* repeated,… 38 …::binder::Status ReverseFloat(const ::std::vector<float>& input, ::std::vector<float>* repeated, :… 39 …binder::Status ReverseDouble(const ::std::vector<double>& input, ::std::vector<double>* repeated, … 40 …s ReverseString(const ::std::vector<::android::String16>& input, ::std::vector<::android::String16… 41 …um(const ::std::vector<::android::aidl::tests::ByteEnum>& input, ::std::vector<::android::aidl::te… 42 …num(const ::std::vector<::android::aidl::tests::IntEnum>& input, ::std::vector<::android::aidl::te… [all …]
|
/system/extras/verity/include/verity/ |
D | hash_tree_builder.h | 45 const std::vector<unsigned char>& salt); 54 bool CheckHashTree(const std::vector<unsigned char>& hash_tree) const; 61 const std::vector<unsigned char>& root_hash() const { return root_hash_; } in root_hash() 64 const std::vector<unsigned char>& bytes); 68 std::vector<unsigned char>* bytes); 74 bool CalculateRootDigest(const std::vector<unsigned char>& root_verity, 75 std::vector<unsigned char>* root_digest); 85 std::vector<unsigned char>* output_vector); 87 void AppendPaddings(std::vector<unsigned char>* data); 93 std::vector<unsigned char> salt_; [all …]
|
/system/linkerconfig/modules/include/linkerconfig/ |
D | basecontext.h | 37 void SetApexModules(std::vector<ApexInfo>&& apex_modules); 38 const std::vector<ApexInfo>& GetApexModules() const; 52 const std::vector<std::string>& GetSystemProvideLibs() const; 53 const std::vector<std::string>& GetSystemRequireLibs() const; 56 const std::vector<std::string>& GetVendorProvideLibs() const; 57 const std::vector<std::string>& GetVendorRequireLibs() const; 60 const std::vector<std::string>& GetProductProvideLibs() const; 61 const std::vector<std::string>& GetProductRequireLibs() const; 68 std::vector<ApexInfo> apex_modules_; 74 std::vector<std::string> system_provide_libs_; [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl_test_loggable_interface-cpp-source/gen/include/android/aidl/loggable/ |
D | ILoggableInterface.h | 63 std::vector<std::pair<std::string, std::string>> input_args; 64 std::vector<std::pair<std::string, std::string>> output_args; 84 std::vector<std::pair<std::string, std::string>> input_args; 85 std::vector<std::pair<std::string, std::string>> output_args; 106 …vector<bool>* boolArray, int8_t byteValue, ::std::vector<uint8_t>* byteArray, char16_t charValue, … 114 …vector<bool>* /*boolArray*/, int8_t /*byteValue*/, ::std::vector<uint8_t>* /*byteArray*/, char16_t… in LogThis()
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-cpp-source/gen/include/android/aidl/loggable/ |
D | ILoggableInterface.h | 63 std::vector<std::pair<std::string, std::string>> input_args; 64 std::vector<std::pair<std::string, std::string>> output_args; 84 std::vector<std::pair<std::string, std::string>> input_args; 85 std::vector<std::pair<std::string, std::string>> output_args; 106 …vector<bool>* boolArray, int8_t byteValue, ::std::vector<uint8_t>* byteArray, char16_t charValue, … 114 …vector<bool>* /*boolArray*/, int8_t /*byteValue*/, ::std::vector<uint8_t>* /*byteArray*/, char16_t… in LogThis()
|
/system/core/libmodprobe/include/modprobe/ |
D | modprobe.h | 30 Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load", 38 std::vector<std::string> ListModules(const std::string& pattern); 39 bool GetAllDependencies(const std::string& module, std::vector<std::string>* pre_dependencies, 40 std::vector<std::string>* dependencies, 41 std::vector<std::string>* post_dependencies); 51 std::vector<std::string> GetDependencies(const std::string& module); 57 bool ParseDepCallback(const std::string& base_path, const std::vector<std::string>& args); 58 bool ParseAliasCallback(const std::vector<std::string>& args); 59 bool ParseSoftdepCallback(const std::vector<std::string>& args); 60 bool ParseLoadCallback(const std::vector<std::string>& args); [all …]
|
/system/tools/aidl/tests/ |
D | aidl_test_service_ndk.cpp | 75 using std::vector; 134 ScopedAStatus ReverseArray(const vector<T>& input, vector<T>* repeated, vector<T>* _aidl_return) { in ReverseArray() 230 ScopedAStatus ReverseBoolean(const vector<bool>& input, vector<bool>* repeated, in ReverseBoolean() 231 vector<bool>* _aidl_return) override { in ReverseBoolean() 234 ScopedAStatus ReverseByte(const vector<uint8_t>& input, vector<uint8_t>* repeated, in ReverseByte() 235 vector<uint8_t>* _aidl_return) override { in ReverseByte() 238 ScopedAStatus ReverseChar(const vector<char16_t>& input, vector<char16_t>* repeated, in ReverseChar() 239 vector<char16_t>* _aidl_return) override { in ReverseChar() 242 ScopedAStatus ReverseInt(const vector<int32_t>& input, vector<int32_t>* repeated, in ReverseInt() 243 vector<int32_t>* _aidl_return) override { in ReverseInt() [all …]
|