/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.h | 35 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 …]
|
D | proximity_info_state_utils.cpp | 34 /* 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 …]
|
D | proximity_info_state.h | 41 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/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder_client_ndk.h | 31 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 …]
|
D | dns_responder_client_ndk.cpp | 40 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 …]
|
D | dns_responder.h | 66 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); 186 std::vector<QueryInfo> queries() const; [all …]
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
D | int_array_view_test.cpp | 28 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/ |
D | resolv_integration_test.cpp | 222 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() 253 const std::vector<std::string>& ipAddresses) { in ExpectDnsEvent() 268 bool expectStatsNotGreaterThan(const std::vector<NameserverStats>& nameserversStats) { in expectStatsNotGreaterThan() 272 bool expectStatsEqualTo(const std::vector<NameserverStats>& nameserversStats) { in expectStatsEqualTo() 276 bool expectStatsFromGetResolverInfo(const std::vector<NameserverStats>& nameserversStats, in expectStatsFromGetResolverInfo() 278 std::vector<std::string> res_servers; in expectStatsFromGetResolverInfo() 279 std::vector<std::string> res_domains; in expectStatsFromGetResolverInfo() 280 std::vector<std::string> res_tls_servers; in expectStatsFromGetResolverInfo() 282 std::vector<ResolverStats> res_stats; in expectStatsFromGetResolverInfo() 398 const std::vector<DnsRecord> records = { in TEST_F() [all …]
|
D | dnsresolver_binder_test.cpp | 127 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 …]
|
D | resolv_stress_test.cpp | 44 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()
|
D | resolv_test_utils.cpp | 59 std::vector<std::string> ToStrings(const hostent* he) { in ToStrings() 60 std::vector<std::string> hosts; in ToStrings() 80 std::vector<std::string> ToStrings(const addrinfo* ai) { in ToStrings() 81 std::vector<std::string> hosts; in ToStrings() 102 std::vector<std::string> ToStrings(const ScopedAddrinfo& ai) { in ToStrings() 107 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueries() 119 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForProtocol() 130 std::vector<test::DNSResponder::QueryInfo> queries = dns.queries(); in GetNumQueriesForType()
|
/packages/apps/Nfc/nci/jni/ |
D | HciEventManager.cpp | 49 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/ |
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); 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()
|
D | resolv_cache.h | 54 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);
|
D | resolv_cache_unit_test.cpp | 54 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 …]
|
D | ResolverController.cpp | 95 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 …]
|
D | DnsStatsTest.cpp | 97 void verifyDumpOutput(const std::vector<StatsData>& tcpData, in verifyDumpOutput() 98 const std::vector<StatsData>& udpData, in verifyDumpOutput() 99 const std::vector<StatsData>& dotData) { in verifyDumpOutput() 105 const auto check = [&](const std::vector<StatsData>& statsData, const std::string& protocol, in verifyDumpOutput() 146 std::vector<std::string> servers; in TEST_F() 147 std::vector<std::string> expectation; in TEST_F() 179 std::vector<IPSockAddr> ipSockAddrs; in TEST_F() 189 std::vector<StatsData> expectedStats; in TEST_F() 204 const std::vector<IPSockAddr> servers = { in TEST_F() 221 EXPECT_TRUE(mDnsStats.setServers(std::vector(servers.begin() + 2, servers.end()), PROTO_TCP)); in TEST_F() [all …]
|
D | res_cache.cpp | 899 std::vector<std::string> subsampling_vector = in resolv_get_dns_event_subsampling_map() 904 std::vector<std::string> rate_denom = Split(pair, ":"); in resolv_get_dns_event_subsampling_map() 976 std::vector<Entry> entries; 994 std::vector<std::string> nameservers; 995 std::vector<IPSockAddr> nameserverSockAddrs; 999 std::vector<std::string> search_domains; 1009 std::vector<int32_t> transportTypes; 1440 static bool resolv_is_nameservers_equal(const std::vector<std::string>& oldServers, 1441 const std::vector<std::string>& newServers); 1482 std::vector<unsigned> resolv_list_caches() { in resolv_list_caches() [all …]
|
D | DnsResolverService.h | 47 int32_t netId, std::vector<std::string>* servers, std::vector<std::string>* domains, 48 std::vector<std::string>* tlsServers, std::vector<int32_t>* params, 49 std::vector<int32_t>* stats, 50 std::vector<int32_t>* wait_for_pending_req_timeout_count) override; 69 ::ndk::ScopedAStatus checkAnyPermission(const std::vector<const char*>& permissions);
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/ |
D | header_read_write_utils_test.cpp | 30 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/ |
D | int_array_view.h | 58 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/ |
D | format_utils_test.cpp | 32 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/modules/DnsResolver/tests/dns_metrics_listener/ |
D | base_metrics_listener.cpp | 25 const std::string& /*hostname*/, const std::vector<std::string>& /*ipAddresses*/, in onDnsEvent() 48 int32_t /*ipNextHeader*/, const std::vector<uint8_t>& /*dstHw*/, in onWakeupEvent() 56 const std::vector<int32_t>& /*networkIds*/, const std::vector<int32_t>& /*sentPackets*/, in onTcpSocketStatsEvent() 57 const std::vector<int32_t>& /*lostPackets*/, const std::vector<int32_t>& /*rttUs*/, in onTcpSocketStatsEvent() 58 const std::vector<int32_t>& /*sentAckDiffMs*/) { in onTcpSocketStatsEvent()
|
D | base_metrics_listener.h | 36 const std::vector<std::string>& /*ipAddresses*/, 48 const std::vector<uint8_t>& /*dstHw*/, 54 const std::vector<int32_t>& /*networkIds*/, const std::vector<int32_t>& /*sentPackets*/, 55 const std::vector<int32_t>& /*lostPackets*/, const std::vector<int32_t>& /*rttUs*/, 56 const std::vector<int32_t>& /*sentAckDiffMs*/) override;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | unigram_property.h | 31 ShortcutProperty(const std::vector<int> &&targetCodePoints, const int probability) in ShortcutProperty() 35 const std::vector<int> *getTargetCodePoints() const { in getTargetCodePoints() 47 const std::vector<int> mTargetCodePoints; 59 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() 77 const HistoricalInfo historicalInfo, const std::vector<ShortcutProperty> &&shortcuts) in UnigramProperty() 120 const std::vector<ShortcutProperty> &getShortcuts() const { in getShortcuts() 134 const std::vector<ShortcutProperty> mShortcuts;
|