/system/core/libutils/tests/ |
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/bt/vendor_libs/test_vendor_lib/include/ |
D | dual_mode_controller.h | 57 const std::vector<uint8_t> GetBdAddress(); 64 const std::vector<uint8_t> GetBufferSize(); 69 const std::vector<uint8_t> GetLocalExtendedFeatures(uint8_t page_number); 74 const std::vector<uint8_t> GetLocalName(); 79 const std::vector<uint8_t> GetLocalSupportedCommands(); 85 const std::vector<uint8_t> GetLocalVersionInformation(); 103 std::vector<uint8_t> bd_address_; 119 const std::vector<std::string>& args); 146 void HciReset(const std::vector<uint8_t>& args); 151 void HciReadBufferSize(const std::vector<uint8_t>& args); [all …]
|
D | event_packet.h | 67 const std::vector<uint8_t>& event_return_parameters); 110 uint8_t num_responses, const std::vector<uint8_t>& bd_addresses, 111 const std::vector<uint8_t>& page_scan_repetition_mode, 112 const std::vector<uint8_t>& page_scan_period_mode, 113 const std::vector<uint8_t>& page_scan_mode, 114 const std::vector<uint8_t>& class_of_device, 115 const std::vector<uint8_t>& clock_offset); 143 const std::vector<uint8_t>& bd_address, 144 const std::vector<uint8_t>& page_scan_repetition_mode, 145 const std::vector<uint8_t>& page_scan_period_mode, [all …]
|
/system/tools/aidl/tests/ |
D | aidl_test_service.cpp | 72 using std::vector; 175 Status ReverseArray(const vector<T>& input, vector<T>* repeated, in ReverseArray() 176 vector<T>* _aidl_return) { in ReverseArray() 197 Status ReverseBoolean(const vector<bool>& input, in ReverseBoolean() 198 vector<bool>* repeated, in ReverseBoolean() 199 vector<bool>* _aidl_return) override { in ReverseBoolean() 202 Status ReverseByte(const vector<uint8_t>& input, in ReverseByte() 203 vector<uint8_t>* repeated, in ReverseByte() 204 vector<uint8_t>* _aidl_return) override { in ReverseByte() 207 Status ReverseChar(const vector<char16_t>& input, in ReverseChar() [all …]
|
/system/update_engine/payload_generator/ |
D | inplace_generator.h | 49 std::vector<Extent> tmp_extents; 83 const std::vector<Extent>& remove_extents, 84 const std::vector<Extent>& replace_extents); 95 std::vector<CutEdgeVertexes>* out_cuts); 101 const std::vector<Block>& blocks); 107 const std::vector<Vertex::Index>& op_indexes, 108 std::vector<std::vector<Vertex::Index>::size_type>* reverse_op_indexes); 113 const std::vector<Vertex::Index>& op_indexes, 114 std::vector<CutEdgeVertexes>* cuts); 120 std::vector<Vertex::Index>* op_indexes); [all …]
|
D | extent_utils_unittest.cc | 28 using std::vector; 35 vector<Extent> extents; in TEST() 56 vector<Extent> extents; in TEST() 87 vector<Extent> first_op_vec; in TEST() 89 EXPECT_EQ((vector<Extent>{ in TEST() 97 vector<Extent> extents; in TEST() 108 vector<Extent> extents = { in TEST() 124 vector<Extent> extents = { in TEST() 131 EXPECT_EQ(vector<Extent>(), in TEST() 133 EXPECT_EQ(vector<Extent>(), in TEST() [all …]
|
D | inplace_generator.cc | 42 using std::vector; 60 vector<Extent> Allocate(const uint64_t block_count) { in Allocate() 61 vector<Extent> ret(1); in Allocate() 74 vector<Extent> CompressExtents(const vector<uint64_t>& blocks) { in CompressExtents() 75 vector<Extent> new_extents; in CompressExtents() 109 const vector<Extent>& remove_extents, in SubstituteBlocks() 110 const vector<Extent>& replace_extents) { in SubstituteBlocks() 112 vector<uint64_t> read_blocks = in SubstituteBlocks() 116 vector<uint64_t> remove_extents_expanded = ExpandExtents(remove_extents); in SubstituteBlocks() 117 vector<uint64_t> replace_extents_expanded = ExpandExtents(replace_extents); in SubstituteBlocks() [all …]
|
D | graph_types.h | 41 std::vector<Extent> extents; 46 std::vector<Extent> write_extents; 60 typedef std::map<std::vector<Vertex>::size_type, EdgeProperties> EdgeMap; 67 typedef std::set<std::vector<Vertex>::size_type> SubgraphEdgeMap; 71 std::vector<Vertex>::size_type index; 72 std::vector<Vertex>::size_type lowlink; 77 typedef std::vector<Vertex>::size_type Index; 81 typedef std::vector<Vertex> Graph;
|
/system/core/init/ |
D | service.h | 72 const std::vector<std::string>& args); 75 unsigned flags, uid_t uid, gid_t gid, const std::vector<gid_t>& supp_gids, 76 const std::string& seclabel, const std::vector<std::string>& args); 78 bool HandleLine(const std::vector<std::string>& args, std::string* err); 96 const std::vector<gid_t>& supp_gids() const { return supp_gids_; } in supp_gids() 98 const std::vector<int>& keycodes() const { return keycodes_; } in keycodes() 101 const std::vector<std::string>& args() const { return args_; } in args() 104 using OptionHandler = bool (Service::*) (const std::vector<std::string>& args, 114 bool HandleClass(const std::vector<std::string>& args, std::string* err); 115 bool HandleConsole(const std::vector<std::string>& args, std::string* err); [all …]
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
D | dual_mode_controller.cc | 53 const std::vector<uint8_t> kOtherDeviceBdAddress = {6, 5, 4, 3, 2, 1}; 56 const std::vector<uint8_t> kPageScanRepetitionMode = {0}; 57 const std::vector<uint8_t> kPageScanPeriodMode = {0}; 58 const std::vector<uint8_t> kPageScanMode = {0}; 59 const std::vector<uint8_t> kClassOfDevice = {1, 2, 3}; 60 const std::vector<uint8_t> kClockOffset = {1, 2}; 79 std::vector<uint8_t>* field) { in ParseUint8tVector() 91 const std::vector<uint8_t>& return_parameters) const { in SendCommandComplete() 126 std::vector<uint8_t> rssi = {0}; in SendExtendedInquiryResult() 127 std::vector<uint8_t> extended_inquiry_data = {name.length() + 1, 0x09}; in SendExtendedInquiryResult() [all …]
|
D | event_packet.cc | 32 const std::vector<uint8_t>& payload) in EventPacket() 44 const std::vector<uint8_t>& event_return_parameters) { in CreateCommandCompleteEvent() 48 std::vector<uint8_t> payload; in CreateCommandCompleteEvent() 65 std::vector<uint8_t> payload; in CreateCommandStatusEvent() 78 uint8_t num_responses, const std::vector<uint8_t>& bd_addresses, in CreateInquiryResultEvent() 79 const std::vector<uint8_t>& page_scan_repetition_mode, in CreateInquiryResultEvent() 80 const std::vector<uint8_t>& page_scan_period_mode, in CreateInquiryResultEvent() 81 const std::vector<uint8_t>& page_scan_mode, in CreateInquiryResultEvent() 82 const std::vector<uint8_t>& class_of_device, in CreateInquiryResultEvent() 83 const std::vector<uint8_t>& clock_offset) { in CreateInquiryResultEvent() [all …]
|
/system/connectivity/shill/vpn/ |
D | openvpn_driver.h | 87 std::vector<std::vector<std::string>>* options); 91 std::vector<std::vector<std::string>>* options); 96 std::vector<std::vector<std::string>>* options); 101 std::vector<std::vector<std::string>>* options); 110 std::vector<std::vector<std::string>>* options); 115 std::vector<std::vector<std::string>>* options); 188 std::vector<std::string>* domain_search, 189 std::vector<std::string>* dns_servers); 206 std::vector<std::vector<std::string>>* options, Error* error); 208 std::vector<std::vector<std::string>>* options, Error* error); [all …]
|
/system/update_engine/include/power_manager/ |
D | dbus-proxy-mocks.h | 101 bool(std::vector<uint8_t>* /*out_serialized_proto*/, 105 …void(const base::Callback<void(const std::vector<uint8_t>& /*serialized_proto*/)>& /*success_callb… 136 bool(const std::vector<uint8_t>& /*in_serialized_proto*/, 140 void(const std::vector<uint8_t>& /*in_serialized_proto*/, 163 bool(const std::vector<uint8_t>& /*in_serialized_request_proto*/, 164 std::vector<uint8_t>* /*out_serialized_reply_proto*/, 168 void(const std::vector<uint8_t>& /*in_serialized_request_proto*/, 169 …const base::Callback<void(const std::vector<uint8_t>& /*serialized_reply_proto*/)>& /*success_call… 173 bool(const std::vector<uint8_t>& /*in_serialized_proto*/, 177 void(const std::vector<uint8_t>& /*in_serialized_proto*/, [all …]
|
/system/netd/tests/dns_responder/ |
D | dns_responder_client.h | 28 void SetupMappings(unsigned num_hosts, const std::vector<std::string>& domains, 29 std::vector<Mapping>* mappings); 31 bool SetResolversForNetwork(const std::vector<std::string>& servers, 32 const std::vector<std::string>& domains, const std::vector<int>& params); 34 bool SetResolversForNetwork(const std::vector<std::string>& searchDomains, 35 const std::vector<std::string>& servers, const std::string& params); 37 static void SetupDNSServers(unsigned num_servers, const std::vector<Mapping>& mappings, 38 std::vector<std::unique_ptr<test::DNSResponder>>* dns, 39 std::vector<std::string>* servers); 41 static void ShutdownDNSServers(std::vector<std::unique_ptr<test::DNSResponder>>* dns);
|
/system/extras/simpleperf/ |
D | record_file.h | 36 std::vector<uint64_t> ids; 46 bool WriteAttrSection(const std::vector<AttrWithId>& attr_ids); 49 bool WriteData(const std::vector<char>& data) { in WriteData() 54 bool WriteBuildIdFeature(const std::vector<BuildIdRecord>& build_id_records); 56 bool WriteCmdlineFeature(const std::vector<std::string>& cmdline); 67 std::vector<std::string>* hit_kernel_modules, 68 std::vector<std::string>* hit_user_files); 84 std::vector<int> features_; 102 const std::vector<PerfFileFormat::FileAttr>& AttrSection() const { in AttrSection() 110 bool ReadIdsForAttr(const PerfFileFormat::FileAttr& attr, std::vector<uint64_t>* ids); [all …]
|
D | event_selection_set.h | 37 std::vector<CounterInfo> counters; 72 bool OpenEventFilesForCpus(const std::vector<int>& cpus); 73 bool OpenEventFilesForThreadsOnCpus(const std::vector<pid_t>& threads, std::vector<int> cpus); 74 bool ReadCounters(std::vector<CountersInfo>* counters); 75 void PreparePollForEventFiles(std::vector<pollfd>* pollfds); 80 const std::vector<std::unique_ptr<EventFd>>* FindEventFdsByType( 85 bool OpenEventFiles(const std::vector<pid_t>& threads, const std::vector<int>& cpus); 90 std::vector<std::unique_ptr<EventFd>> event_fds; 94 std::vector<EventSelection> selections_;
|
/system/netd/server/ |
D | ResolverController.h | 47 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, 48 std::vector<std::string>* domains, __res_params* params, 49 std::vector<android::net::ResolverStats>* stats); 53 int setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers, 54 const std::vector<std::string>& domains, const std::vector<int32_t>& params); 56 int getResolverInfo(int32_t netId, std::vector<std::string>* servers, 57 std::vector<std::string>* domains, std::vector<int32_t>* params, 58 std::vector<int32_t>* stats);
|
D | ResolverStats.h | 50 void encode(std::vector<int32_t>* out) const; 53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs); 58 static void encodeAll(const std::vector<ResolverStats>& stats, std::vector<int32_t>* out); 61 static bool decodeAll(const std::vector<int32_t>& in, std::vector<ResolverStats>* stats); 65 inline void ResolverStats::encode(std::vector<int32_t>* out) const { in encode() 79 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode() 94 inline void ResolverStats::encodeAll(const std::vector<ResolverStats>& stats, in encodeAll() 95 std::vector<int32_t>* out) { in encodeAll() 102 inline bool ResolverStats::decodeAll(const std::vector<int32_t>& in, in decodeAll() 103 std::vector<ResolverStats>* stats) { in decodeAll()
|
D | NetdNativeService.h | 39 const std::vector<int32_t>& uids, bool *ret) override; 41 binder::Status networkRejectNonSecureVpn(bool enable, const std::vector<UidRange>& uids) 43 binder::Status socketDestroy(const std::vector<UidRange>& uids, 44 const std::vector<int32_t>& skipUids) override; 45 binder::Status setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers, 46 const std::vector<std::string>& domains, const std::vector<int32_t>& params) override; 47 binder::Status getResolverInfo(int32_t netId, std::vector<std::string>* servers, 48 std::vector<std::string>* domains, std::vector<int32_t>* params, 49 std::vector<int32_t>* stats) override;
|
/system/bt/service/test/ |
D | advertise_data_unittest.cpp | 26 const std::vector<uint8_t> data0; in TEST() 31 const std::vector<uint8_t> data1{ 0x00 }; in TEST() 38 const std::vector<uint8_t> data0{ 0x01 }; in TEST() 43 const std::vector<uint8_t> data1{ 0x05, 0x02, 0x00, 0x00, 0x00 }; in TEST() 48 const std::vector<uint8_t> data2{ 0x02, 0x02, 0x00, 0x02, 0x00 }; in TEST() 53 const std::vector<uint8_t> data3{ 0x02, 0x02, 0x00, 0x01 }; in TEST() 60 const std::vector<uint8_t> data0{ 0x03, 0x02, 0x01, 0x02 }; in TEST() 65 const std::vector<uint8_t> data1{ 0x03, 0x02, 0x01, 0x02, 0x02, 0x03, 0x01 }; in TEST() 72 const std::vector<uint8_t> data0{ 0x02, HCI_EIR_FLAGS_TYPE, 0x00 }; in TEST() 77 const std::vector<uint8_t> data1{ in TEST() [all …]
|
/system/extras/perfprofd/quipper/ |
D | perf_reader.h | 26 std::vector<u64> ids; 43 std::vector<CStringWithLength> data; 48 std::vector<uint32_t> data; 53 std::vector<uint64_t> data; 59 std::vector<CStringWithLength> core_siblings; 60 std::vector<CStringWithLength> thread_siblings; 91 bool ReadFromVector(const std::vector<char>& data); 105 bool WriteToVector(std::vector<char>* data); 129 void GetFilenames(std::vector<string>* filenames) const; 156 const std::vector<PerfFileAttr>& attrs() const { in attrs() [all …]
|
/system/webservd/libwebserv/ |
D | request.cc | 59 std::vector<PairOfStrings> Request::GetFormData() const { in GetFormData() 66 std::vector<PairOfStrings> Request::GetFormDataGet() const { in GetFormDataGet() 67 return std::vector<PairOfStrings>{get_data_.begin(), get_data_.end()}; in GetFormDataGet() 70 std::vector<PairOfStrings> Request::GetFormDataPost() const { in GetFormDataPost() 71 return std::vector<PairOfStrings>{post_data_.begin(), post_data_.end()}; in GetFormDataPost() 74 std::vector<std::pair<std::string, const FileInfo*>> Request::GetFiles() const { in GetFiles() 75 std::vector<std::pair<std::string, const FileInfo*>> data; in GetFiles() 83 std::vector<std::string> Request::GetFormField(const std::string& name) const { in GetFormField() 84 std::vector<std::string> data; in GetFormField() 98 std::vector<std::string> Request::GetFormFieldPost( in GetFormFieldPost() [all …]
|
/system/connectivity/shill/wifi/ |
D | scan_session_unittest.cc | 37 using std::vector; 109 virtual std::vector<uint16_t> GetScanFrequencies(float scan_fraction, in GetScanFrequencies() 140 vector<uint16_t> result; in TEST_F() 144 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600, in TEST_F() 153 vector<uint16_t> expected{kExpectedFreq5560, kExpectedFreq5620, in TEST_F() 162 vector<uint16_t> expected{kExpectedFreq2422, kExpectedFreq2427, in TEST_F() 174 vector<uint16_t> result; in TEST_F() 178 vector<uint16_t> expected{kExpectedFreq5640, kExpectedFreq5600}; in TEST_F() 186 vector<uint16_t> expected{kExpectedFreq5580, kExpectedFreq5560}; in TEST_F() 194 vector<uint16_t> expected{kExpectedFreq5620, kExpectedFreq2412, in TEST_F() [all …]
|
/system/update_engine/include/session_manager/ |
D | dbus-proxy-mocks.h | 35 const std::vector<std::string>& /*in_extra_arguments*/, 41 const std::vector<std::string>& /*in_extra_arguments*/, 68 bool(const std::vector<uint8_t>& /*in_policy_blob*/, 73 void(const std::vector<uint8_t>& /*in_policy_blob*/, 78 bool(std::vector<uint8_t>* /*out_policy_blob*/, 82 …void(const base::Callback<void(const std::vector<uint8_t>& /*policy_blob*/)>& /*success_callback*/, 87 const std::vector<uint8_t>& /*in_policy_blob*/, 93 const std::vector<uint8_t>& /*in_policy_blob*/, 99 std::vector<uint8_t>* /*out_policy_blob*/, 104 … const base::Callback<void(const std::vector<uint8_t>& /*policy_blob*/)>& /*success_callback*/, [all …]
|
/system/update_engine/ |
D | fake_p2p_manager_configuration.h | 55 std::vector<std::string> GetInitctlArgs(bool is_start) override { in GetInitctlArgs() 60 std::vector<std::string> GetP2PClientArgs(const std::string &file_id, in GetP2PClientArgs() 62 std::vector<std::string> formatted_command = p2p_client_cmd_format_; in GetP2PClientArgs() 75 void SetInitctlStartCommand(const std::vector<std::string>& command) { in SetInitctlStartCommand() 81 void SetInitctlStopCommand(const std::vector<std::string>& command) { in SetInitctlStopCommand() 92 void SetP2PClientCommand(const std::vector<std::string>& command_format) { in SetP2PClientCommand() 101 std::vector<std::string> initctl_start_args_{"initctl", "start", "p2p"}; 104 std::vector<std::string> initctl_stop_args_{"initctl", "stop", "p2p"}; 108 std::vector<std::string> p2p_client_cmd_format_{
|