Home
last modified time | relevance | path

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

12345678910>>...30

/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 …]
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.h67 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers,
69 std::unordered_map<int, std::vector<int>>& trackerToMetricMap, int& logTrackerIndex);
78 const std::vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex,
79 std::unordered_map<int, std::vector<int>>& conditionToMetricMap);
90 std::unordered_map<int, std::vector<int>>& activationAtomTrackerToMetricMap,
91 std::unordered_map<int, std::vector<int>>& deactivationAtomTrackerToMetricMap,
92 std::vector<int>& metricsWithActivation,
94 std::unordered_map<int, std::vector<shared_ptr<Activation>>>& newEventDeactivationMap);
101 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers,
103 std::vector<sp<ConditionTracker>>& allConditionTrackers,
[all …]
Dconfig_update_utils.h51 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers,
53 std::vector<UpdateStatus>& matchersToUpdate, std::vector<bool>& cycleTracker);
67 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers,
70 std::vector<sp<AtomMatchingTracker>>& newAtomMatchingTrackers,
88 const std::vector<sp<ConditionTracker>>& oldConditionTrackers,
91 std::vector<UpdateStatus>& conditionsToUpdate,
92 std::vector<bool>& cycleTracker);
112 const std::vector<sp<ConditionTracker>>& oldConditionTrackers,
114 std::vector<sp<ConditionTracker>>& newConditionTrackers,
115 std::unordered_map<int, std::vector<int>>& trackerToConditionMap,
[all …]
Dmetrics_manager_util.cpp44 using std::vector;
135 const vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers, in handleMetricWithAtomMatchingTrackers()
137 unordered_map<int, vector<int>>& trackerToMetricMap, int& logTrackerIndex) { in handleMetricWithAtomMatchingTrackers()
161 const vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex, in handleMetricWithConditions()
162 unordered_map<int, vector<int>>& conditionToMetricMap) { in handleMetricWithConditions()
200 vector<int>& slicedStateAtoms, in handleMetricWithStates()
220 const vector<Matcher>& dimensionsInWhat) { in handleMetricWithStateLink()
221 vector<Matcher> stateMatchers; in handleMetricWithStateLink()
235 unordered_map<int, vector<int>>& activationAtomTrackerToMetricMap, in handleMetricActivation()
236 unordered_map<int, vector<int>>& deactivationAtomTrackerToMetricMap, in handleMetricActivation()
[all …]
Dconfig_update_utils.cpp37 const vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, in determineMatcherUpdateStatus()
39 vector<UpdateStatus>& matchersToUpdate, in determineMatcherUpdateStatus()
40 vector<bool>& cycleTracker) { in determineMatcherUpdateStatus()
112 const vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, in updateAtomMatchingTrackers()
115 vector<sp<AtomMatchingTracker>>& newAtomMatchingTrackers, in updateAtomMatchingTrackers()
118 vector<AtomMatcher> matcherProtos; in updateAtomMatchingTrackers()
134 vector<UpdateStatus> matchersToUpdate(atomMatcherCount, UPDATE_UNKNOWN); in updateAtomMatchingTrackers()
135 vector<bool> cycleTracker(atomMatcherCount, false); in updateAtomMatchingTrackers()
202 const vector<sp<ConditionTracker>>& oldConditionTrackers, in determineConditionUpdateStatus()
205 vector<UpdateStatus>& conditionsToUpdate, in determineConditionUpdateStatus()
[all …]
/packages/modules/NeuralNetworks/common/operations/
DQuantizedLSTMTest.cpp34 std::vector<uint32_t> shape;
38 OperandTypeParams(Type type, std::vector<uint32_t> shape, float scale, int32_t zeroPoint) in OperandTypeParams()
51 QuantizedLSTMOpModel(const std::vector<OperandTypeParams>& inputOperandTypeParams) { in QuantizedLSTMOpModel()
52 std::vector<uint32_t> inputs; in QuantizedLSTMOpModel()
66 std::vector<uint32_t> outputs; in QuantizedLSTMOpModel()
157 void setInput(const std::vector<uint8_t>& input) { input_ = input; } in setInput()
159 void setWeightsAndBiases(std::vector<uint8_t> inputToInputWeights, in setWeightsAndBiases()
160 std::vector<uint8_t> inputToForgetWeights, in setWeightsAndBiases()
161 std::vector<uint8_t> inputToCellWeights, in setWeightsAndBiases()
162 std::vector<uint8_t> inputToOutputWeights, in setWeightsAndBiases()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp44 using std::vector;
388 vector<sp<AtomMatchingTracker>> allAtomMatchingTrackers; in TEST()
390 vector<sp<ConditionTracker>> allConditionTrackers; in TEST()
392 vector<sp<MetricProducer>> allMetricProducers; in TEST()
394 std::vector<sp<AnomalyTracker>> allAnomalyTrackers; in TEST()
395 std::vector<sp<AlarmTracker>> allAlarmTrackers; in TEST()
396 unordered_map<int, std::vector<int>> conditionToMetricMap; in TEST()
397 unordered_map<int, std::vector<int>> trackerToMetricMap; in TEST()
398 unordered_map<int, std::vector<int>> trackerToConditionMap; in TEST()
399 unordered_map<int, std::vector<int>> activationAtomTrackerToMetricMap; in TEST()
[all …]
Dconfig_update_utils_test.cpp44 using std::vector;
65 vector<sp<AtomMatchingTracker>> oldAtomMatchingTrackers;
67 vector<sp<ConditionTracker>> oldConditionTrackers;
69 vector<sp<MetricProducer>> oldMetricProducers;
71 std::vector<sp<AnomalyTracker>> oldAnomalyTrackers;
73 std::vector<sp<AlarmTracker>> oldAlarmTrackers;
74 unordered_map<int, std::vector<int>> tmpConditionToMetricMap;
75 unordered_map<int, std::vector<int>> tmpTrackerToMetricMap;
76 unordered_map<int, std::vector<int>> tmpTrackerToConditionMap;
77 unordered_map<int, std::vector<int>> tmpActivationAtomTrackerToMetricMap;
[all …]
/packages/modules/NeuralNetworks/runtime/
DManager.cpp76 const std::vector<Extension>& getSupportedExtensions() const override { in getSupportedExtensions()
79 std::vector<bool> getSupportedOperations(const MetaModel& metaModel) const override;
125 GeneralResult<std::vector<bool>> getSupportedOperationsImpl(const MetaModel& metaModel) const;
150 std::tuple<int, std::vector<OutputShape>, Timing> execute(
151 const std::vector<ModelArgumentInfo>& inputs,
152 const std::vector<ModelArgumentInfo>& outputs,
153 const std::vector<const RuntimeMemory*>& memories, const SharedBurst& burstController,
158 const std::vector<ModelArgumentInfo>& inputs,
159 const std::vector<ModelArgumentInfo>& outputs,
160 const std::vector<const RuntimeMemory*>& memories, const std::vector<int>& waitFor,
[all …]
DManager.h56 virtual std::tuple<int, std::vector<OutputShape>, Timing> compute(
62 const std::vector<int>& waitFor, const OptionalTimePoint& deadline,
78 virtual std::tuple<int, std::vector<OutputShape>, Timing> execute(
79 const std::vector<ModelArgumentInfo>& inputs,
80 const std::vector<ModelArgumentInfo>& outputs,
81 const std::vector<const RuntimeMemory*>& memories, const SharedBurst& burstController,
89 const std::vector<ModelArgumentInfo>& inputs,
90 const std::vector<ModelArgumentInfo>& outputs,
91 const std::vector<const RuntimeMemory*>& memories, const std::vector<int>& waitFor,
98 const std::vector<ModelArgumentInfo>& inputs,
[all …]
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.h39 inline const std::vector<std::string> kDefaultServers = {"127.0.0.3"};
40 inline const std::vector<std::string> kDefaultSearchDomains = {"example.com"};
41 inline const std::vector<int> kDefaultParams = {
71 static void SetupMappings(unsigned num_hosts, const std::vector<std::string>& domains,
72 std::vector<Mapping>* mappings);
75 bool SetResolversForNetwork(const std::vector<std::string>& servers = kDefaultServers,
76 const std::vector<std::string>& domains = kDefaultSearchDomains,
77 const std::vector<int>& params = kDefaultParams);
80 bool SetResolversWithTls(const std::vector<std::string>& servers, in SetResolversWithTls()
81 const std::vector<std::string>& searchDomains, in SetResolversWithTls()
[all …]
Ddns_responder_client_ndk.cpp37 void DnsResponderClient::SetupMappings(unsigned numHosts, const std::vector<std::string>& domains, in SetupMappings()
38 std::vector<Mapping>* mappings) { in SetupMappings()
55 int netId, const std::vector<int>& params, const std::vector<std::string>& servers, in makeResolverParamsParcel()
56 const std::vector<std::string>& domains, const std::string& tlsHostname, in makeResolverParamsParcel()
57 const std::vector<std::string>& tlsServers, const std::string& caCert) { in makeResolverParamsParcel()
92 unsigned netId, std::vector<std::string>* servers, in GetResolverInfo()
93 std::vector<std::string>* domains, in GetResolverInfo()
94 std::vector<std::string>* tlsServers, res_params* params, in GetResolverInfo()
95 std::vector<ResolverStats>* stats, in GetResolverInfo()
98 std::vector<int32_t> params32; in GetResolverInfo()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/
DTestHarness.h39 inline void convertFloat16ToFloat32(const _Float16* input, std::vector<float>* output) { in convertFloat16ToFloat32()
60 typedef std::map<int, std::vector<uint32_t>> OperandDimensions;
61 typedef std::map<int, std::vector<float>> Float32Operands;
62 typedef std::map<int, std::vector<int32_t>> Int32Operands;
63 typedef std::map<int, std::vector<uint8_t>> Quant8AsymmOperands;
64 typedef std::map<int, std::vector<int16_t>> Quant16SymmOperands;
65 typedef std::map<int, std::vector<_Float16>> Float16Operands;
66 typedef std::map<int, std::vector<bool8>> Bool8Operands;
67 typedef std::map<int, std::vector<int8_t>> Quant8ChannelOperands;
68 typedef std::map<int, std::vector<uint16_t>> Quant16AsymmOperands;
[all …]
/packages/modules/StatsD/statsd/src/condition/
DCombinationConditionTracker.h33 bool init(const std::vector<Predicate>& allConditionConfig,
34 const std::vector<sp<ConditionTracker>>& allConditionTrackers,
35 const std::unordered_map<int64_t, int>& conditionIdIndexMap, std::vector<bool>& stack,
36 std::vector<ConditionState>& conditionCache) override;
38 bool onConfigUpdated(const std::vector<Predicate>& allConditionProtos, const int index,
39 const std::vector<sp<ConditionTracker>>& allConditionTrackers,
44 const std::vector<MatchingState>& eventMatcherValues,
45 const std::vector<sp<ConditionTracker>>& mAllConditions,
46 std::vector<ConditionState>& conditionCache,
47 std::vector<bool>& changedCache) override;
[all …]
DSimpleConditionTracker.h38 bool init(const std::vector<Predicate>& allConditionConfig,
39 const std::vector<sp<ConditionTracker>>& allConditionTrackers,
40 const std::unordered_map<int64_t, int>& conditionIdIndexMap, std::vector<bool>& stack,
41 std::vector<ConditionState>& conditionCache) override;
43 bool onConfigUpdated(const std::vector<Predicate>& allConditionProtos, const int index,
44 const std::vector<sp<ConditionTracker>>& allConditionTrackers,
49 const std::vector<MatchingState>& eventMatcherValues,
50 const std::vector<sp<ConditionTracker>>& mAllConditions,
51 std::vector<ConditionState>& conditionCache,
52 std::vector<bool>& changedCache) override;
[all …]
DConditionTracker.h57 virtual bool init(const std::vector<Predicate>& allConditionConfig,
58 const std::vector<sp<ConditionTracker>>& allConditionTrackers,
60 std::vector<bool>& stack, std::vector<ConditionState>& conditionCache) = 0;
74 virtual bool onConfigUpdated(const std::vector<Predicate>& allConditionProtos, const int index, in onConfigUpdated()
75 const std::vector<sp<ConditionTracker>>& allConditionTrackers, in onConfigUpdated()
93 const std::vector<MatchingState>& eventMatcherValues,
94 const std::vector<sp<ConditionTracker>>& mAllConditions,
95 std::vector<ConditionState>& conditionCache,
96 std::vector<bool>& conditionChanged) = 0;
108 const std::vector<sp<ConditionTracker>>& allConditions,
[all …]
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp51 [](const int&, const vector<int64_t>&) { return true; }); in TEST()
67 vector<int32_t> uids; in TEST()
68 vector<int64_t> versions; in TEST()
69 vector<String16> apps; in TEST()
70 vector<String16> versionStrings; in TEST()
71 vector<String16> installers; in TEST()
99 vector<int32_t> uids; in TEST()
100 vector<int64_t> versions; in TEST()
101 vector<String16> apps; in TEST()
102 vector<String16> versionStrings; in TEST()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/
Dstdout.txt.expect15 const std::vector<Operand> operands = {
99 const std::vector<Operation> operations = {
107 const std::vector<uint32_t> inputIndexes = {0};
108 const std::vector<uint32_t> outputIndexes = {8};
109 std::vector<uint8_t> operandValues = {
112 const std::vector<hidl_memory> pools = {};
129 std::vector<MixedTypedExample> examples_none = {
162 const std::vector<Operand> operands = {
246 const std::vector<Operation> operations = {
254 const std::vector<uint32_t> inputIndexes = {0};
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/
Dstdout.txt.expect15 const std::vector<Operand> operands = {
99 const std::vector<Operation> operations = {
107 const std::vector<uint32_t> inputIndexes = {0};
108 const std::vector<uint32_t> outputIndexes = {8};
109 std::vector<uint8_t> operandValues = {
112 const std::vector<hidl_memory> pools = {};
129 std::vector<MixedTypedExample> examples_model_name_example_name_nhwc_act_w_as_param_float = {
162 const std::vector<Operand> operands = {
246 const std::vector<Operation> operations = {
254 const std::vector<uint32_t> inputIndexes = {0};
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/
Dstdout.txt.expect15 const std::vector<Operand> operands = {
99 const std::vector<Operation> operations = {
107 const std::vector<uint32_t> inputIndexes = {0};
108 const std::vector<uint32_t> outputIndexes = {8};
109 std::vector<uint8_t> operandValues = {
112 const std::vector<hidl_memory> pools = {};
129 std::vector<MixedTypedExample> examples_relu = {
162 const std::vector<Operand> operands = {
246 const std::vector<Operation> operations = {
254 const std::vector<uint32_t> inputIndexes = {0};
[all …]
/packages/modules/StatsD/statsd/src/
DHashableDimensionKey.h43 std::vector<Matcher> metricFields;
44 std::vector<Matcher> conditionFields;
49 std::vector<Matcher> metricFields;
50 std::vector<Matcher> stateFields;
55 explicit HashableDimensionKey(const std::vector<FieldValue>& values) { in HashableDimensionKey()
67 inline const std::vector<FieldValue>& getValues() const { in getValues()
71 inline std::vector<FieldValue>* mutableValues() { in mutableValues()
95 std::vector<FieldValue> mValues;
149 bool filterValues(const Matcher& matcherField, const std::vector<FieldValue>& values,
162 bool filterValues(const std::vector<Matcher>& matcherFields, const std::vector<FieldValue>& values,
[all …]
/packages/modules/NeuralNetworks/common/include/nnapi/
DTypes.h202 using Dimensions = std::vector<Dimension>;
213 std::vector<uint32_t> dimensions;
225 std::vector<OutputShape> outputShapes = {};
274 std::vector<OperandPerformance> operandPerformances);
277 const std::vector<OperandPerformance>& asVector() const;
280 explicit OperandPerformanceTable(std::vector<OperandPerformance> operandPerformances);
281 std::vector<OperandPerformance> mSorted;
363 std::vector<OperandTypeInformation> operandTypes;
379 std::vector<uint32_t> inputs;
385 std::vector<uint32_t> outputs;
[all …]
/packages/modules/NeuralNetworks/common/
DValidation.cpp103 Result<Version> validateVector(const std::vector<Type>& objects, in validateVector()
345 std::vector<uint16_t> types; in validateExtension()
361 Result<Version> validateExtensions(const std::vector<Extension>& extensions) { in validateExtensions()
365 std::vector<std::reference_wrapper<const std::string>> names; in validateExtensions()
382 const std::vector<size_t>& poolSizes,
383 const std::vector<Model::Subgraph>& referenced,
384 std::vector<std::optional<Version>>* subgraphVersionCache);
387 const Operand& operand, size_t operandValuesSize, const std::vector<size_t>& poolSizes, in validateOperandDataLocation()
388 const std::vector<Model::Subgraph>& subgraphs, in validateOperandDataLocation()
389 std::vector<std::optional<Version>>* subgraphVersionCache) { in validateOperandDataLocation()
[all …]
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DConverter.cpp46 std::vector<float> convert(const android_nn_fuzz::Scales& scales) { in convert()
48 return std::vector<float>(repeatedScale.begin(), repeatedScale.end()); in convert()
52 std::vector<float> scales = convert(params.scales()); in convert()
57 std::vector<uint32_t> convert(const android_nn_fuzz::Dimensions& dimensions) { in convert()
59 return std::vector<uint32_t>(repeatedDimension.begin(), repeatedDimension.end()); in convert()
73 std::vector<uint32_t> dimensions = convert(operand.dimensions()); in convert()
98 std::vector<TestOperand> convert(const android_nn_fuzz::Operands& operands) { in convert()
99 std::vector<TestOperand> testOperands; in convert()
107 std::vector<uint32_t> convert(const android_nn_fuzz::Indexes& indexes) { in convert()
109 return std::vector<uint32_t>(repeatedIndex.begin(), repeatedIndex.end()); in convert()
[all …]

12345678910>>...30