Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 246) sorted by relevance

12345678910

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.h35 static int trimLastTwoTouchPoints(std::vector<int> *sampledInputXs,
36 std::vector<int> *sampledInputYs, std::vector<int> *sampledInputTimes,
37 std::vector<int> *sampledLengthCache, std::vector<int> *sampledInputIndice);
43 std::vector<int> *sampledInputXs, std::vector<int> *sampledInputYs,
44 std::vector<int> *sampledInputTimes, std::vector<int> *sampledLengthCache,
45 std::vector<int> *sampledInputIndice);
48 static void popInputData(std::vector<int> *sampledInputXs, std::vector<int> *sampledInputYs,
49 std::vector<int> *sampledInputTimes, std::vector<int> *sampledLengthCache,
50 std::vector<int> *sampledInputIndice);
53 const int sampledInputSize, const std::vector<int> *const sampledInputXs,
[all …]
Dproximity_info_state_utils.cpp34 /* static */ int ProximityInfoStateUtils::trimLastTwoTouchPoints(std::vector<int> *sampledInputXs, in trimLastTwoTouchPoints()
35 std::vector<int> *sampledInputYs, std::vector<int> *sampledInputTimes, in trimLastTwoTouchPoints()
36 std::vector<int> *sampledLengthCache, std::vector<int> *sampledInputIndice) { in trimLastTwoTouchPoints()
50 const int pushTouchPointStartIndex, std::vector<int> *sampledInputXs, in updateTouchPoints()
51 std::vector<int> *sampledInputYs, std::vector<int> *sampledInputTimes, in updateTouchPoints()
52 std::vector<int> *sampledLengthCache, std::vector<int> *sampledInputIndice) { in updateTouchPoints()
158 const ProximityInfo *const proximityInfo, const std::vector<int> *const sampledInputXs, in calculateSquaredDistanceFromSweetSpotCenter()
159 const std::vector<int> *const sampledInputYs, const int keyIndex, const int inputIndex) { in calculateSquaredDistanceFromSweetSpotCenter()
169 const ProximityInfo *const proximityInfo, const std::vector<int> *const sampledInputXs, in calculateNormalizedSquaredDistance()
170 const std::vector<int> *const sampledInputYs, const int keyIndex, const int inputIndex) { in calculateNormalizedSquaredDistance()
[all …]
Dproximity_info_state.h41 const std::vector<int> *locale);
209 std::vector<int> mSampledInputXs;
210 std::vector<int> mSampledInputYs;
211 std::vector<int> mSampledTimes;
212 std::vector<int> mSampledInputIndice;
213 std::vector<int> mSampledLengthCache;
214 std::vector<int> mBeelineSpeedPercentiles;
215 std::vector<float> mSampledNormalizedSquaredLengthCache;
216 std::vector<float> mSpeedRates;
217 std::vector<float> mDirections;
[all …]
/packages/services/Car/surround_view/service-impl/
DAnimationModuleTests.cpp35 std::vector<std::string> carFrameChildPartIds{"front_left_door", "front_right_door", in getSampleCarPartsMap()
39 android_auto::surround_view::CarPart frame(std::vector<CarVertex>(), in getSampleCarPartsMap()
43 android_auto::surround_view::CarPart frameChild(std::vector<CarVertex>(), in getSampleCarPartsMap()
46 std::vector<std::string>()); in getSampleCarPartsMap()
58 std::vector<AnimationInfo> getSampleAnimations() { in getSampleAnimations()
87 std::map<uint64_t, std::vector<RotationOp>> frontLeftDoorRotationOpsMap; in getSampleAnimations()
91 std::vector<RotationOp>{frontLeftDoorRotationOp})); in getSampleAnimations()
122 std::map<uint64_t, std::vector<RotationOp>> frontRightDoorRotationOpsMap; in getSampleAnimations()
126 std::vector<RotationOp>{frontRightDoorRotationOp})); in getSampleAnimations()
154 std::map<uint64_t, std::vector<GammaOp>> frontLeftBlinkerGammaOpsMap; in getSampleAnimations()
[all …]
DIOModuleCommon.h38 std::vector<std::string> evsCameraIds;
41 std::vector<std::string> maskFilenames;
225 std::vector<std::pair<float, std::string>> textureIds;
265 std::vector<std::string> childIds;
272 std::vector<uint64_t> vhalPriority;
276 std::map<uint64_t, std::vector<GammaOp>> gammaOpsMap;
279 std::map<uint64_t, std::vector<TextureOp>> textureOpsMap;
285 std::map<uint64_t, std::vector<RotationOp>> rotationOpsMap;
288 std::map<uint64_t, std::vector<TranslationOp>> translationOpsMap;
295 std::vector<AnimationInfo> animations;
Dcore_lib.h402 std::vector<OverlayVertex> vertices;
405 Overlay(uint16_t id_, const std::vector<OverlayVertex>& vertices_) { in Overlay()
413 vertices = std::vector<OverlayVertex>(); in Overlay()
521 std::vector<CarVertex> vertices;
540 std::vector<std::string> child_part_ids;
542 CarPart(const std::vector<CarVertex>& car_vertices, const CarMaterial& car_material, in CarPart()
544 const std::vector<std::string>& car_child_part_ids) : in CarPart()
624 std::vector<SurroundViewCameraParams> cameras_params;
633 std::vector<float> undistortion_focal_length_scales;
646 SurroundViewStaticDataParams(const std::vector<SurroundViewCameraParams>& sv_cameras_params, in SurroundViewStaticDataParams()
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.h31 inline const std::vector<std::string> kDefaultServers = {"127.0.0.3"};
32 inline const std::vector<std::string> kDefaultSearchDomains = {"example.com"};
33 inline const std::vector<int> kDefaultParams = {
63 static void SetupMappings(unsigned num_hosts, const std::vector<std::string>& domains,
64 std::vector<Mapping>* mappings);
67 bool SetResolversForNetwork(const std::vector<std::string>& servers = kDefaultServers,
68 const std::vector<std::string>& domains = kDefaultSearchDomains,
69 const std::vector<int>& params = kDefaultParams);
72 bool SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls()
73 const std::vector<std::string>& searchDomains, in SetResolversWithTls()
[all …]
Ddns_responder_client_ndk.cpp40 void DnsResponderClient::SetupMappings(unsigned numHosts, const std::vector<std::string>& domains, in SetupMappings()
41 std::vector<Mapping>* mappings) { in SetupMappings()
58 int netId, const std::vector<int>& params, const std::vector<std::string>& servers, in makeResolverParamsParcel()
59 const std::vector<std::string>& domains, const std::string& tlsHostname, in makeResolverParamsParcel()
60 const std::vector<std::string>& tlsServers, const std::string& caCert) { in makeResolverParamsParcel()
94 unsigned netId, std::vector<std::string>* servers, in GetResolverInfo()
95 std::vector<std::string>* domains, in GetResolverInfo()
96 std::vector<std::string>* tlsServers, res_params* params, in GetResolverInfo()
97 std::vector<ResolverStats>* stats, in GetResolverInfo()
100 std::vector<int32_t> params32; in GetResolverInfo()
[all …]
Ddns_responder.h66 std::vector<char> rdata;
95 std::vector<DNSQuestion> questions;
96 std::vector<DNSRecord> answers;
97 std::vector<DNSRecord> authorities;
98 std::vector<DNSRecord> additionals;
101 bool write(std::vector<uint8_t>* out) const;
169 void addMappingBinaryPacket(const std::vector<uint8_t>& query,
170 const std::vector<uint8_t>& response);
173 void removeMappingBinaryPacket(const std::vector<uint8_t>& query);
185 std::vector<QueryInfo> queries() const;
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dint_array_view_test.cpp28 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
37 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
65 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
75 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
90 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
109 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
128 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
138 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
148 const std::vector<int> intVector = {3, 2, 1, 0, -1, -2}; in TEST()
151 EXPECT_EQ(std::vector<int>(), CodePointArrayView().toVector()); in TEST()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp203 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns()
233 bool expectStatsFromGetResolverInfo(const std::vector<NameserverStats>& nameserversStats) { in expectStatsFromGetResolverInfo()
234 std::vector<std::string> res_servers; in expectStatsFromGetResolverInfo()
235 std::vector<std::string> res_domains; in expectStatsFromGetResolverInfo()
236 std::vector<std::string> res_tls_servers; in expectStatsFromGetResolverInfo()
238 std::vector<ResolverStats> res_stats; in expectStatsFromGetResolverInfo()
341 const std::vector<DnsRecord> records = { in TEST_F()
394 const std::vector<DnsRecord> records = { in TEST_F()
509 std::vector<int> params_offsets = { in TEST_F()
526 std::vector<std::string> domains = {"example.com"}; in TEST_F()
[all …]
Ddnsresolver_binder_test.cpp127 static const std::vector<TestOnDnsEvent::TestResult> expectedResults = { in TEST_F()
151 const std::vector<std::string> test_servers = {listen_addr}; in TEST_F()
152 std::vector<std::string> test_domains = {"example.com"}; in TEST_F()
153 std::vector<int> test_params = {300 /*sample_validity*/, 25 /*success_threshold*/, in TEST_F()
196 const std::vector<std::string> LOCALLY_ASSIGNED_DNS{"8.8.8.8", "2001:4860:4860::8888"}; in TEST_F()
197 static const std::vector<std::string> valid_v4_addr = {"192.0.2.1"}; in TEST_F()
198 static const std::vector<std::string> valid_v6_addr = {"2001:db8::2"}; in TEST_F()
199 static const std::vector<std::string> invalid_v4_addr = {"192.0.*.5"}; in TEST_F()
200 static const std::vector<std::string> invalid_v6_addr = {"2001:dg8::6"}; in TEST_F()
202 std::vector<int> test_params = {300, 25, 8, 8}; in TEST_F()
[all …]
Dresolv_stress_test.cpp44 std::vector<std::string> domains = {"example.com"}; in RunGetAddrInfoStressTest()
45 std::vector<std::unique_ptr<test::DNSResponder>> dns; in RunGetAddrInfoStressTest()
46 std::vector<std::string> servers; in RunGetAddrInfoStressTest()
47 std::vector<DnsResponderClient::DnsResponderClient::Mapping> mappings; in RunGetAddrInfoStressTest()
54 std::vector<std::thread> threads(num_threads); in RunGetAddrInfoStressTest()
84 std::vector<std::string> res_servers; in RunGetAddrInfoStressTest()
85 std::vector<std::string> res_domains; in RunGetAddrInfoStressTest()
86 std::vector<std::string> res_tls_servers; in RunGetAddrInfoStressTest()
88 std::vector<ResolverStats> res_stats; in RunGetAddrInfoStressTest()
/packages/apps/Nfc/nci/jni/
DHciEventManager.cpp49 void HciEventManager::notifyTransactionListenersOfAid(std::vector<uint8_t> aid, in notifyTransactionListenersOfAid()
50 std::vector<uint8_t> data, in notifyTransactionListenersOfAid()
96 std::vector<uint8_t> HciEventManager::getDataFromBerTlv( in getDataFromBerTlv()
97 std::vector<uint8_t> berTlv) { in getDataFromBerTlv()
99 return std::vector<uint8_t>(); in getDataFromBerTlv()
108 return std::vector<uint8_t>(berTlv.begin() + 1, berTlv.end()); in getDataFromBerTlv()
112 return std::vector<uint8_t>(berTlv.begin() + 2, berTlv.end()); in getDataFromBerTlv()
117 return std::vector<uint8_t>(berTlv.begin() + 3, berTlv.end()); in getDataFromBerTlv()
122 return std::vector<uint8_t>(berTlv.begin() + 4, berTlv.end()); in getDataFromBerTlv()
128 return std::vector<uint8_t>(berTlv.begin() + 5, berTlv.end()); in getDataFromBerTlv()
[all …]
/packages/modules/DnsResolver/
DResolverStats.h50 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);
64 inline void ResolverStats::encode(std::vector<int32_t>* out) const { in encode()
78 inline ssize_t ResolverStats::decode(const std::vector<int32_t>& in, ssize_t ofs) { in decode()
93 inline void ResolverStats::encodeAll(const std::vector<ResolverStats>& stats, in encodeAll()
94 std::vector<int32_t>* out) { in encodeAll()
101 inline bool ResolverStats::decodeAll(const std::vector<int32_t>& in, in decodeAll()
102 std::vector<ResolverStats>* stats) { in decodeAll()
DDnsStatsTest.cpp95 void verifyDumpOutput(const std::vector<StatsData>& tcpData, in verifyDumpOutput()
96 const std::vector<StatsData>& udpData, in verifyDumpOutput()
97 const std::vector<StatsData>& dotData) { in verifyDumpOutput()
103 const auto check = [&](const std::vector<StatsData>& statsData, const std::string& protocol, in verifyDumpOutput()
142 std::vector<std::string> servers; in TEST_F()
143 std::vector<std::string> expectation; in TEST_F()
175 std::vector<IPSockAddr> ipSockAddrs; in TEST_F()
185 std::vector<StatsData> expectedStats; in TEST_F()
200 const std::vector<IPSockAddr> servers = { in TEST_F()
217 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_TCP)); in TEST_F()
[all …]
Dresolv_cache.h54 std::vector<unsigned> resolv_list_caches();
56 std::vector<std::string> resolv_cache_dump_subsampling_map(unsigned netid);
79 std::vector<std::string> getCustomizedTableByName(const size_t netid, const char* hostname);
83 int resolv_set_nameservers(unsigned netid, const std::vector<std::string>& servers,
84 const std::vector<std::string>& domains, const res_params& params,
89 const std::vector<int32_t>& transportTypes = {});
110 int resolv_cache_get_expiration(unsigned netid, const std::vector<char>& query, time_t* expiration);
113 int resolv_stats_set_servers_for_dot(unsigned netid, const std::vector<std::string>& servers);
124 const std::vector<android::netdutils::IPSockAddr>& serverSockAddrs);
134 android::net::NetworkType convert_network_type(const std::vector<int32_t>& transportTypes);
Dresolv_cache_unit_test.cpp54 std::vector<char> query;
55 std::vector<char> answer;
59 std::vector<std::string> servers;
60 std::vector<std::string> domains;
63 std::vector<int32_t> transportTypes;
68 std::vector<res_stats> stats;
72 std::vector<char> makeQuery(int op, const char* qname, int qclass, int qtype) { in makeQuery()
77 return std::vector<char>(buf, buf + len); in makeQuery()
80 std::vector<char> makeAnswer(const std::vector<char>& query, const char* rdata_str, in makeAnswer()
99 return std::vector<char>(answer, answer_end); in makeAnswer()
[all …]
DResolverController.cpp95 int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<std::string>* domains, in getDnsInfo()
96 res_params* params, std::vector<android::net::ResolverStats>* stats, in getDnsInfo()
97 std::vector<int32_t>* wait_for_pending_req_timeout_count) { in getDnsInfo()
209 std::vector<std::string> tlsServers = resolverParams.tlsServers; in setResolverConfiguration()
239 int ResolverController::getResolverInfo(int32_t netId, std::vector<std::string>* servers, in getResolverInfo()
240 std::vector<std::string>* domains, in getResolverInfo()
241 std::vector<std::string>* tlsServers, in getResolverInfo()
242 std::vector<int32_t>* params, std::vector<int32_t>* stats, in getResolverInfo()
243 std::vector<int32_t>* wait_for_pending_req_timeout_count) { in getResolverInfo()
247 std::vector<ResolverStats> res_stats; in getResolverInfo()
[all …]
Dres_cache.cpp897 std::vector<std::string> subsampling_vector = in resolv_get_dns_event_subsampling_map()
902 std::vector<std::string> rate_denom = Split(pair, ":"); in resolv_get_dns_event_subsampling_map()
974 std::vector<Entry> entries;
992 std::vector<std::string> nameservers;
993 std::vector<IPSockAddr> nameserverSockAddrs;
997 std::vector<std::string> search_domains;
1007 std::vector<int32_t> transportTypes;
1438 static bool resolv_is_nameservers_equal(const std::vector<std::string>& oldServers,
1439 const std::vector<std::string>& newServers);
1480 std::vector<unsigned> resolv_list_caches() { in resolv_list_caches()
[all …]
/packages/services/Car/watchdog/server/src/
DWatchdogProcessService.cpp43 const std::vector<TimeoutLength> kTimeouts = {TimeoutLength::TIMEOUT_CRITICAL,
58 std::string pidArrayToString(const std::vector<int32_t>& pids) { in pidArrayToString()
86 mClients.insert(std::make_pair(timeout, std::vector<ClientInfo>())); in WatchdogProcessService()
112 std::vector<TimeoutLength> timeouts = {TimeoutLength::TIMEOUT_CRITICAL}; in unregisterMediator()
159 const std::vector<int32_t>& clientsNotResponding, in tellMediatorAlive()
261 std::vector<ClientInfo>& clients = mClients[timeout]; in dump()
300 std::vector<ClientInfo> clientsToCheck; in doHealthCheck()
338 std::vector<ClientInfo>& clients = mClients[timeout]; in terminate()
358 [&](std::vector<ClientInfo>& clients, in binderDied()
359 std::vector<ClientInfo>::const_iterator it) { in binderDied()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/
Dheader_read_write_utils_test.cpp30 DictionaryHeaderStructurePolicy::AttributeMap::key_type vector; in TEST() local
32 HeaderReadWriteUtils::insertCharactersIntoVector("", &vector); in TEST()
33 EXPECT_TRUE(vector.empty()); in TEST()
36 HeaderReadWriteUtils::insertCharactersIntoVector(str, &vector); in TEST()
37 EXPECT_EQ(strlen(str) , vector.size()); in TEST()
38 for (size_t i = 0; i < vector.size(); ++i) { in TEST()
39 EXPECT_EQ(str[i], vector[i]); in TEST()
71 const std::vector<int> codePoints = { 0x0, 0x20, 0x1F, 0x100000 }; in TEST()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h58 explicit IntArrayView(const std::vector<int> &vector) in IntArrayView() argument
59 : mPtr(vector.data()), mSize(vector.size()) {} in IntArrayView()
132 AK_FORCE_INLINE std::vector<int> toVector() const { in toVector()
133 return std::vector<int>(begin(), end()); in toVector()
136 std::vector<IntArrayView> split(const int separator, const int limit = S_INT_MAX) const {
138 return std::vector<IntArrayView>();
140 std::vector<IntArrayView> result;
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dformat_utils_test.cpp32 const std::vector<uint8_t> getBuffer(const int magicNumber, const int version, const uint16_t flags, in getBuffer()
34 std::vector<uint8_t> buffer; in getBuffer()
58 const std::vector<uint8_t> buffer = in TEST()
64 const std::vector<uint8_t> buffer = in TEST()
70 const std::vector<uint8_t> buffer = in TEST()
77 const std::vector<uint8_t> buffer = in TEST()
83 const std::vector<uint8_t> buffer = in TEST()
89 const std::vector<uint8_t> buffer = in TEST()
/packages/services/Car/watchdog/server/tests/
DProcPidStatTest.cpp59 std::string toString(const std::vector<ProcessStats>& stats) { in toString()
74 bool isEqual(std::vector<ProcessStats>* lhs, std::vector<ProcessStats>* rhs) { in isEqual()
107 std::unordered_map<uint32_t, std::vector<uint32_t>> pidToTids = { in TEST()
129 std::vector<ProcessStats> expected = { in TEST()
228 std::unordered_map<uint32_t, std::vector<uint32_t>> pidToTids = { in TEST()
258 std::vector<ProcessStats> expected = { in TEST()
306 std::unordered_map<uint32_t, std::vector<uint32_t>> pidToTids = { in TEST()
333 std::vector<ProcessStats> expected = { in TEST()
456 std::unordered_map<uint32_t, std::vector<uint32_t>> pidToTids = { in TEST()
486 std::unordered_map<uint32_t, std::vector<uint32_t>> pidToTids = { in TEST()
[all …]

12345678910