/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | metrics_manager_util.h | 59 const std::unordered_map<int64_t, int>& metricToActivationMap, 67 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers, 68 const std::unordered_map<int64_t, int>& atomMatchingTrackerMap, 69 std::unordered_map<int, std::vector<int>>& trackerToMetricMap, int& logTrackerIndex); 75 const std::unordered_map<int64_t, int>& conditionTrackerMap, 78 const std::vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex, 79 std::unordered_map<int, std::vector<int>>& conditionToMetricMap); 86 const std::unordered_map<int64_t, int>& metricToActivationMap, 87 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, 88 const std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, [all …]
|
D | config_update_utils.h | 50 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, 51 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, 52 const std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, 53 std::vector<UpdateStatus>& matchersToUpdate, std::vector<bool>& cycleTracker); 66 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, 67 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, 68 std::set<int>& allTagIds, 69 std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, 70 std::vector<sp<AtomMatchingTracker>>& newAtomMatchingTrackers, 71 std::set<int64_t>& replacedMatchers); [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.h | 32 typedef std::unordered_map<int, float> NearKeysDistanceMap; 33 typedef std::bitset<MAX_KEY_COUNT_IN_A_KEYBOARD> NearKeycodesSet; 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, [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | Manager.cpp | 66 static std::shared_ptr<DriverDevice> create(SharedDevice device, bool isUpdatable = false); 71 const std::string& getName() const override { return kInterface->getName(); } in getName() 72 const std::string& getVersionString() const override { return kInterface->getVersionString(); } in getVersionString() 76 const std::vector<Extension>& getSupportedExtensions() const override { in getSupportedExtensions() 79 std::vector<bool> getSupportedOperations(const MetaModel& metaModel) const override; 96 std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override { in getNumberOfCacheFilesNeeded() 113 std::pair<int, std::shared_ptr<RuntimePreparedModel>> prepareModel( 116 const std::optional<CacheToken>& maybeToken) const override; 118 std::pair<int, std::unique_ptr<RuntimeMemory>> allocate(const MemoryDescriptor& desc, 125 GeneralResult<std::vector<bool>> getSupportedOperationsImpl(const MetaModel& metaModel) const; [all …]
|
D | ExecutionPlan.h | 99 typedef std::pair<uint32_t, uint32_t> SourceOperandIndex; 115 std::vector<const ModelBuilder*> mModels; 190 std::optional<LocationAndShape> lookup(SourceOperandIndex sourceOperandIndex, 208 std::map<SourceOperandIndex, InternalLocationAndShape> mSourceOperandToTemporary; 211 std::map<uint32_t, std::vector<SourceOperandIndex>> mStepIndexToSourceOperandIndexes; 213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory; 217 std::set<uint32_t> mAllocatedStepIndexes; 233 typedef std::vector<std::pair<uint32_t, uint32_t>> RemapVectorType; 234 typedef std::set<std::pair<uint32_t, uint32_t>> StepModelOutputSetType; 239 std::shared_ptr<Device> device); [all …]
|
D | Manager.h | 56 virtual std::tuple<int, std::vector<OutputShape>, Timing> compute( 61 virtual std::tuple<int, int, ExecuteFencedInfoCallback, Timing> computeFenced( 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, 88 virtual std::tuple<int, int, ExecuteFencedInfoCallback, Timing> executeFenced( 89 const std::vector<ModelArgumentInfo>& inputs, 90 const std::vector<ModelArgumentInfo>& outputs, [all …]
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | TypeUtils.h | 59 std::optional<size_t> getNonExtensionSize(OperandType operandType, const Dimensions& dimensions); 60 std::optional<size_t> getNonExtensionSize(const Operand& operand); 63 std::pair<int32_t, int32_t> getIntsFromOffset(size_t offset); 65 Result<std::vector<uint32_t>> countNumberOfConsumers(size_t numberOfOperands, 66 const std::vector<nn::Operation>& operations); 72 std::pair<size_t, std::vector<size_t>> getMemorySizes(const Model& model); 89 std::ostream& operator<<(std::ostream& os, const DeviceStatus& deviceStatus); 90 std::ostream& operator<<(std::ostream& os, const ExecutionPreference& executionPreference); 91 std::ostream& operator<<(std::ostream& os, const DeviceType& deviceType); 92 std::ostream& operator<<(std::ostream& os, const MeasureTiming& measureTiming); [all …]
|
D | Types.h | 55 constexpr float kDefaultExecTime = std::numeric_limits<float>::max(); 56 constexpr float kDefaultPowerUsage = std::numeric_limits<float>::max(); 73 constexpr uint32_t kMinMemoryAlignment = alignof(std::max_align_t); 75 constexpr auto kLoopTimeoutDefault = std::chrono::seconds{2}; 76 constexpr auto kLoopTimeoutMaximum = std::chrono::seconds{15}; 80 using SharedBuffer = std::shared_ptr<const IBuffer>; 81 using SharedBurst = std::shared_ptr<const IBurst>; 82 using SharedDevice = std::shared_ptr<const IDevice>; 83 using SharedExecution = std::shared_ptr<const IExecution>; 84 using SharedMemory = std::shared_ptr<const Memory>; [all …]
|
/packages/providers/MediaProvider/jni/ |
D | node-inl.h | 57 const std::unique_ptr<const RedactionInfo> ri; 75 std::vector<std::shared_ptr<DirectoryEntry>> de; 91 explicit NodeTracker(std::recursive_mutex* lock) : lock_(lock) {} in NodeTracker() 96 std::lock_guard<std::recursive_mutex> guard(*lock_); in CheckTracked() 103 std::lock_guard<std::recursive_mutex> guard(*lock_); in NodeDeleted() 113 std::lock_guard<std::recursive_mutex> guard(*lock_); in NodeCreated() 122 std::recursive_mutex* lock_; 123 std::unordered_set<const node*> active_nodes_; 129 static node* Create(node* parent, const std::string& name, const std::string& io_path, in Create() 131 const int transforms_reason, std::recursive_mutex* lock, ino_t ino, in Create() [all …]
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_responder_client_ndk.h | 39 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 = { 52 std::cerr << " Skip test. Remote version is too old, required version: " << version \ 53 << std::endl; \ 63 std::string host; 64 std::string entry; 65 std::string ip4; 66 std::string ip6; 71 static void SetupMappings(unsigned num_hosts, const std::vector<std::string>& domains, [all …]
|
D | dns_responder.h | 44 std::string name; 58 std::string toString() const; 66 std::vector<char> rdata; 69 std::string toString() const; 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; 102 std::string toString() const; [all …]
|
/packages/modules/NeuralNetworks/common/ |
D | ExecutionBurstServer.cpp | 46 constexpr V1_2::Timing kNoTiming = {std::numeric_limits<uint64_t>::max(), 47 std::numeric_limits<uint64_t>::max()}; 70 std::tuple<V1_0::ErrorStatus, hardware::hidl_vec<V1_2::OutputShape>, V1_2::Timing> execute( in execute() 71 const V1_0::Request& request, const std::vector<int32_t>& slots, in execute() 75 std::transform(slots.begin(), slots.end(), pools.begin(), in execute() 80 fullRequest.pools = std::move(pools); in execute() 100 return {returnedStatus, std::move(returnedOutputShapes), kNoTiming}; in execute() 103 return std::make_tuple(returnedStatus, std::move(returnedOutputShapes), returnedTiming); in execute() 108 std::map<int32_t, hardware::hidl_memory> mMemoryCache; 114 std::vector<FmqResultDatum> serialize(V1_0::ErrorStatus errorStatus, in serialize() [all …]
|
D | ExecutionBurstController.cpp | 47 constexpr V1_2::Timing kNoTiming12 = {std::numeric_limits<uint64_t>::max(), 48 std::numeric_limits<uint64_t>::max()}; 52 using Callback = std::function<void()>; 70 std::vector<FmqRequestDatum> serialize(const V1_0::Request& request, V1_2::MeasureTiming measure, in serialize() 71 const std::vector<int32_t>& slots) { in serialize() 82 std::vector<FmqRequestDatum> data; in serialize() 151 std::optional<std::tuple<V1_0::ErrorStatus, std::vector<V1_2::OutputShape>, V1_2::Timing>> 152 deserialize(const std::vector<FmqResultDatum>& data) { in deserialize() 155 std::vector<V1_2::OutputShape> outputShapes; in deserialize() 161 return std::nullopt; in deserialize() [all …]
|
D | TypeUtils.cpp | 40 constexpr std::underlying_type_t<Type> underlyingType(Type object) { in underlyingType() 41 return static_cast<std::underlying_type_t<Type>>(object); in underlyingType() 45 std::ostream& operator<<(std::ostream& os, const std::vector<Type>& vec) { in operator <<() 128 std::optional<size_t> getNonExtensionSize(OperandType operandType, const Dimensions& dimensions) { in getNonExtensionSize() 137 if (dimension != 0 && size > std::numeric_limits<size_t>::max() / dimension) { in getNonExtensionSize() 138 return std::nullopt; in getNonExtensionSize() 145 std::optional<size_t> getNonExtensionSize(const Operand& operand) { in getNonExtensionSize() 158 std::pair<int32_t, int32_t> getIntsFromOffset(size_t offset) { in getIntsFromOffset() 164 return std::make_pair(lowOffsetBits, highOffsetBits); in getIntsFromOffset() 167 Result<std::vector<uint32_t>> countNumberOfConsumers(size_t numberOfOperands, in countNumberOfConsumers() [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.h | 124 std::vector<DropEvent> dropEvents; 142 const std::unordered_map<int, std::shared_ptr<Activation>>& eventActivationMap, 143 const std::unordered_map<int, std::vector<std::shared_ptr<Activation>>>& 161 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers, in onConfigUpdated() 162 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, in onConfigUpdated() 163 const std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, in onConfigUpdated() 165 const std::vector<sp<ConditionTracker>>& allConditionTrackers, in onConfigUpdated() 166 const std::unordered_map<int64_t, int>& conditionTrackerMap, in onConfigUpdated() 168 const std::unordered_map<int64_t, int>& metricToActivationMap, in onConfigUpdated() 169 std::unordered_map<int, std::vector<int>>& trackerToMetricMap, in onConfigUpdated() [all …]
|
/packages/modules/adb/ |
D | transport.h | 47 using FeatureSet = std::vector<std::string>; 60 std::string FeatureSetToString(const FeatureSet& features); 61 FeatureSet StringToFeatureSet(const std::string& features_string); 64 bool CanUseFeature(const FeatureSet& feature_set, const std::string& feature); 109 void SetTransportName(std::string transport_name) { in SetTransportName() 110 transport_name_ = std::move(transport_name); in SetTransportName() 113 using ReadCallback = std::function<bool(Connection*, std::unique_ptr<apacket>)>; 120 using ErrorCallback = std::function<void(Connection*, const std::string&)>; 126 virtual bool Write(std::unique_ptr<apacket> packet) = 0; 131 virtual bool DoTlsHandshake(RSA* key, std::string* auth_key = nullptr) = 0; [all …]
|
D | transport.cpp | 67 static auto& transport_list = *new std::list<atransport*>(); 68 static auto& pending_list = *new std::list<atransport*>(); 70 static auto& transport_lock = *new std::recursive_mutex(); 121 std::chrono::steady_clock::time_point reconnect_time; 134 static constexpr const std::chrono::seconds kDefaultTimeout = 3s; 138 std::mutex reconnect_mutex_; 140 std::thread handler_thread_; 141 std::condition_variable reconnect_cv_; 142 std::set<ReconnectAttempt> reconnect_queue_ GUARDED_BY(reconnect_mutex_); 149 handler_thread_ = std::thread(&ReconnectHandler::Run, this); in Start() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/ |
D | TestHarness.h | 39 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/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.h | 63 void init(const std::string& filename) { in init() 65 mStart = std::chrono::high_resolution_clock::now(); in init() 71 void log(const std::string& str) { in log() 72 if (os.is_open()) os << getElapsedTime() << str << std::flush; in log() 79 std::string getElapsedTime(); 80 std::ofstream os; 81 std::chrono::time_point<std::chrono::high_resolution_clock> mStart; 94 std::cout << ss.str() << std::endl; in ~LoggerStream() 106 static void writeAbortMessageToSystemLog(const std::string& logTag) { in writeAbortMessageToSystemLog() 114 std::stringstream ss; [all …]
|
/packages/modules/DnsResolver/tests/ |
D | dnsresolver_binder_test.cpp | 68 std::vector<std::string> dumpService(ndk::SpAIBinder binder) { in dumpService() 75 std::thread dumpThread = std::thread([binder, remoteFd{std::move(remoteFd)}]() { in dumpService() 79 std::string dumpContent; in dumpService() 85 std::stringstream dumpStream(std::move(dumpContent)); in dumpService() 86 std::vector<std::string> lines; in dumpService() 87 std::string line; in dumpService() 88 while (std::getline(dumpStream, line)) { in dumpService() 89 lines.push_back(std::move(line)); in dumpService() 121 std::vector<std::string> lines = dumpService(netdBinder); in expectLog() 127 const std::basic_regex lineRegex( in expectLog() [all …]
|
/packages/modules/adb/client/pairing/tests/ |
D | pairing_connection_test.cpp | 32 static const std::string kTestServerCert = 45 static const std::string kTestServerPrivKey = 52 static const std::string kTestClientCert = 65 static const std::string kTestClientPrivKey = 78 void initPairing(const std::vector<uint8_t> server_pswd, in initPairing() 79 const std::vector<uint8_t> client_pswd) { in initPairing() 80 std::vector<uint8_t> cert; in initPairing() 81 std::vector<uint8_t> key; in initPairing() 99 std::unique_ptr<PairingServer> createServer(const std::vector<uint8_t> pswd) { in createServer() 100 std::vector<uint8_t> cert; in createServer() [all …]
|
/packages/services/Car/cpp/computepipe/runner/engine/ |
D | DefaultEngine.h | 56 std::string source; 58 explicit EngineCommand(std::string s, Type t) : source(s), cmdType(t) { in EngineCommand() 68 std::string source; 69 std::string message; 70 std::string currentPhase; 71 explicit ComponentError(std::string s, std::string m, std::string p, bool fatal = false) 93 Status setArgs(std::string engineArgs) override; 94 void setClientInterface(std::unique_ptr<client_interface::ClientInterface>&& client) override; 95 void setPrebuiltGraph(std::unique_ptr<graph::PrebuiltGraph>&& graph) override; 108 void DispatchSerializedData(int streamId, int64_t timestamp, std::string&& output) override; [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcPidStatTest.cpp | 39 std::string toString(const PidStat& stat) { in toString() 47 std::string toString(const ProcessStats& stats) { in toString() 48 std::string buffer; in toString() 62 std::string toString(const std::vector<ProcessStats>& stats) { in toString() 63 std::string buffer; in toString() 77 bool isEqual(std::vector<ProcessStats>* lhs, std::vector<ProcessStats>* rhs) { in isEqual() 81 std::sort(lhs->begin(), lhs->end(), [&](const ProcessStats& l, const ProcessStats& r) -> bool { in isEqual() 84 std::sort(rhs->begin(), rhs->end(), [&](const ProcessStats& l, const ProcessStats& r) -> bool { in isEqual() 87 return std::equal(lhs->begin(), lhs->end(), rhs->begin(), in isEqual() 108 std::string pidStatusStr(pid_t pid, uid_t uid) { in pidStatusStr() [all …]
|
/packages/modules/adb/client/ |
D | auth.cpp | 55 static std::mutex& g_keys_mutex = *new std::mutex; 56 static std::map<std::string, std::shared_ptr<RSA>>& g_keys = 57 *new std::map<std::string, std::shared_ptr<RSA>>; 58 static std::map<int, std::string>& g_monitored_paths = *new std::map<int, std::string>; 63 static bool generate_key(const std::string& file) { in generate_key() 71 std::string pubkey; in generate_key() 83 std::unique_ptr<FILE, decltype(&fclose)> f(nullptr, &fclose); in generate_key() 107 static std::string hash_key(RSA* key) { in hash_key() 112 return std::string(); in hash_key() 115 std::string result; in hash_key() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | SupportLibraryTestGenerated.cpp | 53 extern std::string SUPPORT_LIBRARY_NAME; 72 Result* result, std::vector<TestBuffer>* outputs); 74 std::optional<Compilation> compileModel(const Model& model, ANeuralNetworksDevice* device); 85 std::string mCacheDir; 86 std::vector<uint8_t> mToken; 94 std::unique_ptr<const NnApiSupportLibrary> mNnApi = 127 std::array<bool, MAX_NUM_OPS> supportedOps; in checkSupported() 135 std::all_of(supportedOps.begin(), supportedOps.end(), [](bool v) { return v; }); in checkSupported() 139 static std::vector<base::unique_fd> createCacheFds(const std::vector<std::string>& files) { in createCacheFds() 140 std::vector<base::unique_fd> fds; in createCacheFds() [all …]
|