/packages/modules/Bluetooth/system/embdrv/encoder_for_aptx/src/ |
D | QmfConv.c | 34 int64_t local_acc0; in AsmQmfConvO() 35 int64_t local_acc1; in AsmQmfConvO() 53 local_acc0 = ((int64_t)(coeffVal0) * (int64_t)data0); in AsmQmfConvO() 54 local_acc1 = ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 55 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO() 56 local_acc1 += ((int64_t)(coeffVal1) * (int64_t)data3); in AsmQmfConvO() 65 local_acc0 += ((int64_t)(coeffVal0) * (int64_t)data0); in AsmQmfConvO() 66 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO() 67 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO() 68 local_acc1 += ((int64_t)(coeffVal1) * (int64_t)data3); in AsmQmfConvO() [all …]
|
D | QuantiseDifference.c | 30 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[32]; in BsearchLL() 37 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 16]; in BsearchLL() 43 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 8]; in BsearchLL() 50 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 4]; in BsearchLL() 57 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 2]; in BsearchLL() 64 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 1]; in BsearchLL() 80 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)(97040 << 1); in BsearchHL() 95 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[2]; in BsearchHH() 101 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 1]; in BsearchHH() 122 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[4]; in BsearchLH() [all …]
|
/packages/modules/Bluetooth/system/embdrv/encoder_for_aptxhd/src/ |
D | QmfConv.c | 35 int64_t local_acc0; in AsmQmfConvO_HD() 36 int64_t local_acc1; in AsmQmfConvO_HD() 55 local_acc0 = ((int64_t)(coeffVal0) * (int64_t)data0); in AsmQmfConvO_HD() 56 local_acc1 = ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 57 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD() 58 local_acc1 += ((int64_t)(coeffVal1) * (int64_t)data3); in AsmQmfConvO_HD() 67 local_acc0 += ((int64_t)(coeffVal0) * (int64_t)data0); in AsmQmfConvO_HD() 68 local_acc1 += ((int64_t)(coeffVal0) * (int64_t)data1); in AsmQmfConvO_HD() 69 local_acc0 += ((int64_t)(coeffVal1) * (int64_t)data2); in AsmQmfConvO_HD() 70 local_acc1 += ((int64_t)(coeffVal1) * (int64_t)data3); in AsmQmfConvO_HD() [all …]
|
D | QuantiseDifference.c | 27 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[128]; in BsearchLL() 34 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 64]; in BsearchLL() 41 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 32]; in BsearchLL() 48 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 16]; in BsearchLL() 54 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 8]; in BsearchLL() 61 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 4]; in BsearchLL() 68 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 2]; in BsearchLL() 75 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 1]; in BsearchLL() 93 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[4]; in BsearchHL() 100 tmp_acc.s64 = (int64_t)lc_delta * (int64_t)dqbitTablePrt[qCode + 2]; in BsearchHL() [all …]
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.h | 37 std::optional<int64_t> metricId; 38 std::optional<int64_t> stateId; 39 std::optional<int64_t> alertId; 40 std::optional<int64_t> alarmId; 41 std::optional<int64_t> subscriptionId; 42 std::vector<int64_t> matcherIds; 43 std::vector<int64_t> conditionIds; 46 InvalidConfigReason(InvalidConfigReasonEnum reason, int64_t metricId) in InvalidConfigReason() 57 int64_t insertError = 0; 58 int64_t tableCreationError = 0; [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | StatsLogProcessor.h | 43 const sp<AlarmMonitor>& subscriberTriggerAlarmMonitor, int64_t timeBaseNs, 45 const std::function<bool(const int&, const vector<int64_t>&)>& sendActivationBroadcast, 46 const std::function<void(const ConfigKey&, const string&, const vector<int64_t>&)>& 54 void OnConfigUpdated(const int64_t timestampNs, int64_t wallClockNs, const ConfigKey& key, 57 void OnConfigUpdated(const int64_t timestampNs, const ConfigKey& key, 63 void GetActiveConfigs(const int uid, vector<int64_t>& outActiveConfigs); 65 void onDumpReport(const ConfigKey& key, int64_t dumpTimeNs, int64_t wallClockNs, 69 void onDumpReport(const ConfigKey& key, int64_t dumpTimeNs, int64_t wallClockNs, 74 void onDumpReport(const ConfigKey& key, int64_t dumpTimeNs, 81 int64_t timestampNs, [all …]
|
D | stats_log_util.h | 51 int64_t TimeUnitToBucketSizeInMillisGuardrailed(int uid, TimeUnit unit); 54 int64_t TimeUnitToBucketSizeInMillis(TimeUnit unit); 57 int64_t getElapsedRealtimeNs(); 60 int64_t getElapsedRealtimeMillis(); 63 int64_t getElapsedRealtimeSec(); 66 int64_t getSystemUptimeMillis(); 69 int64_t getWallClockNs(); 72 int64_t getWallClockMillis(); 75 int64_t getWallClockSec(); 77 int64_t NanoToMillis(const int64_t nano); [all …]
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | config_update_utils.h | 51 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, 53 const std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, 69 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, 72 std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, 74 std::set<int64_t>& replacedMatchers); 91 const std::unordered_map<int64_t, int>& oldConditionTrackerMap, 93 const std::unordered_map<int64_t, int>& newConditionTrackerMap, 94 const std::set<int64_t>& replacedMatchers, std::vector<UpdateStatus>& conditionsToUpdate, 114 const std::unordered_map<int64_t, int>& atomMatchingTrackerMap, 115 const std::set<int64_t>& replacedMatchers, [all …]
|
D | metrics_manager_util.h | 57 const unordered_map<int64_t, int>& atomMatchingTrackerMap, 62 const StatsdConfig& config, const google::protobuf::MessageLite& metric, int64_t id, 63 const std::unordered_map<int64_t, int>& metricToActivationMap, uint64_t& metricHash); 69 const int64_t matcherId, int64_t metricId, int metricIndex, const bool enforceOneAtom, 71 const std::unordered_map<int64_t, int>& atomMatchingTrackerMap, 77 const int64_t condition, int64_t metricId, int metricIndex, 78 const std::unordered_map<int64_t, int>& conditionTrackerMap, 87 const StatsdConfig& config, int64_t metricId, int metricIndex, 88 const std::unordered_map<int64_t, int>& metricToActivationMap, 89 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, [all …]
|
/packages/modules/Bluetooth/system/embdrv/sbc/encoder/srce/ |
D | sbc_analysis.c | 511 s64Temp = (int64_t)WIND_8_SUBBANDS_0_1 * \ 512 (int64_t)(s16X[ChOffset + 16] - s16X[ChOffset + 64]); \ 513 s64Temp += (int64_t)WIND_8_SUBBANDS_0_2 * \ 514 (int64_t)(s16X[ChOffset + 32] - s16X[ChOffset + 48]); \ 519 s64Temp = (int64_t)WIND_8_SUBBANDS_1_0 * (int64_t)s16X[ChOffset + 1]; \ 521 (int64_t)WIND_8_SUBBANDS_1_0 * (int64_t)s16X[ChOffset + 64 + 15]; \ 523 (int64_t)WIND_8_SUBBANDS_1_1 * (int64_t)s16X[ChOffset + 16 + 1]; \ 525 (int64_t)WIND_8_SUBBANDS_1_1 * (int64_t)s16X[ChOffset + 48 + 15]; \ 527 (int64_t)WIND_8_SUBBANDS_1_2 * (int64_t)s16X[ChOffset + 32 + 1]; \ 529 (int64_t)WIND_8_SUBBANDS_1_2 * (int64_t)s16X[ChOffset + 32 + 15]; \ [all …]
|
/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
D | DurationTracker.h | 45 int64_t lastStartTime; 47 int64_t lastDuration; 55 int64_t mBucketStartNs; 56 int64_t mBucketEndNs; 57 int64_t mDuration; 58 int64_t mConditionTrueNs; 65 int64_t mDuration; 69 int64_t mDurationFullBucket; 76 DurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey, in DurationTracker() 78 int64_t currentBucketStartNs, int64_t currentBucketNum, int64_t startTimeNs, in DurationTracker() [all …]
|
D | MaxDurationTracker.h | 31 MaxDurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey, 33 int64_t currentBucketStartNs, int64_t currentBucketNum, int64_t startTimeNs, 34 int64_t bucketSizeNs, bool conditionSliced, bool fullLink, 39 void noteStart(const HashableDimensionKey& key, bool condition, int64_t eventTime, 41 void noteStop(const HashableDimensionKey& key, int64_t eventTime, const bool stopAll) override; 42 void noteStopAll(const int64_t eventTime) override; 45 int64_t timestampNs, const optional<UploadThreshold>& uploadThreshold, 48 int64_t eventTimeNs, const optional<UploadThreshold>& uploadThreshold, 49 const int64_t globalConditionTrueNs, 52 void onSlicedConditionMayChange(const int64_t timestamp) override; [all …]
|
D | OringDurationTracker.h | 29 OringDurationTracker(const ConfigKey& key, const int64_t id, const MetricDimensionKey& eventKey, 31 int64_t currentBucketStartNs, int64_t currentBucketNum, 32 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced, 37 void noteStart(const HashableDimensionKey& key, bool condition, int64_t eventTime, 39 void noteStop(const HashableDimensionKey& key, int64_t eventTime, const bool stopAll) override; 40 void noteStopAll(const int64_t eventTime) override; 42 void onSlicedConditionMayChange(const int64_t timestamp) override; 43 void onConditionChanged(bool condition, int64_t timestamp) override; 45 void onStateChanged(const int64_t timestamp, const int32_t atomId, 49 int64_t eventTimeNs, const optional<UploadThreshold>& uploadThreshold, [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | ValueMetricProducer.h | 41 int64_t mBucketStartNs; 42 int64_t mBucketEndNs; 51 int64_t mConditionTrueNs; 58 int64_t mConditionCorrectionNs; 76 const int64_t timeBaseNs; 77 const int64_t startTimeNs; 78 const int64_t bucketSizeNs; 79 const int64_t minBucketSizeNs; 80 const optional<int64_t> conditionCorrectionThresholdNs; 104 const unordered_map<int, unordered_map<int, int64_t>>& stateGroupMap; [all …]
|
D | MetricProducer.h | 79 Activation(const ActivationType& activationType, int64_t ttlNs) in Activation() 86 const int64_t ttl_ns; 87 int64_t start_ns; 96 int64_t dropTimeNs; 101 int64_t bucketStartTimeNs; 103 int64_t bucketEndTimeNs; 134 MetricProducer(int64_t metricId, const ConfigKey& key, int64_t timeBaseNs, 141 const unordered_map<int, unordered_map<int, int64_t>>& stateGroupMap, 159 const std::unordered_map<int64_t, int>& oldAtomMatchingTrackerMap, in onConfigUpdated() argument 160 const std::unordered_map<int64_t, int>& newAtomMatchingTrackerMap, in onConfigUpdated() [all …]
|
D | MetricsManager.h | 45 MetricsManager(const ConfigKey& configKey, const StatsdConfig& config, int64_t timeBaseNs, 46 const int64_t currentTimeNs, const sp<UidMap>& uidMap, 53 bool updateConfig(const StatsdConfig& config, int64_t timeBaseNs, const int64_t currentTimeNs, 63 int64_t timestampNs, 67 int64_t timestampNs, 70 void notifyAppUpgrade(int64_t eventTimeNs, const string& apk, int uid, int64_t version); 72 void notifyAppRemoved(int64_t eventTimeNs, const string& apk, int uid); 74 void onUidMapReceived(int64_t eventTimeNs); 76 void onStatsdInitCompleted(int64_t elapsedTimeNs); 94 inline bool isInTtl(const int64_t timestampNs) const { in isInTtl() [all …]
|
D | DurationMetricProducer.h | 46 const FieldMatcher& internalDimensions, int64_t timeBaseNs, const int64_t startTimeNs, 51 const unordered_map<int, unordered_map<int, int64_t>>& stateGroupMap = {}); 58 const int64_t updateTimeNs) override; 60 void addAnomalyTracker(sp<AnomalyTracker>& anomalyTracker, int64_t updateTimeNs) override; 62 void onStateChanged(const int64_t eventTimeNs, const int32_t atomId, 80 void initTrueDimensions(const int whatIndex, int64_t startTimeNs); 84 const int64_t eventTimeNs); 86 bool condition, int64_t eventTimeNs, 89 void onDumpReportLocked(const int64_t dumpTimeNs, 96 void clearPastBucketsLocked(const int64_t dumpTimeNs) override; [all …]
|
D | CountMetricProducer.h | 38 int64_t mBucketStartNs; 39 int64_t mBucketEndNs; 40 int64_t mCount; 41 int64_t mConditionTrueNs; 49 const uint64_t protoHash, int64_t timeBaseNs, int64_t startTimeNs, 55 const unordered_map<int, unordered_map<int, int64_t>>& stateGroupMap = {}); 59 void onStateChanged(const int64_t eventTimeNs, const int32_t atomId, 75 void onDumpReportLocked(const int64_t dumpTimeNs, 82 void clearPastBucketsLocked(const int64_t dumpTimeNs) override; 85 void onConditionChangedLocked(const bool conditionMet, int64_t eventTime) override; [all …]
|
/packages/modules/StatsD/statsd/src/anomaly/ |
D | AnomalyTracker.h | 57 void addPastBucket(const std::shared_ptr<DimToValMap>& bucket, const int64_t bucketNum); 63 void addPastBucket(const MetricDimensionKey& key, int64_t bucketValue, int64_t bucketNum); 68 bool detectAnomaly(int64_t currBucketNum, const MetricDimensionKey& key, 69 int64_t currentBucketValue); 72 void declareAnomaly(int64_t timestampNs, int64_t metricId, const MetricDimensionKey& key, 73 int64_t metricValue); 79 void detectAndDeclareAnomaly(int64_t timestampNs, int64_t currBucketNum, int64_t metricId, 80 const MetricDimensionKey& key, int64_t currentBucketValue); 88 int64_t getSumOverPastBuckets(const MetricDimensionKey& key) const; 91 int64_t getPastBucketValue(const MetricDimensionKey& key, int64_t bucketNum) const; [all …]
|
/packages/modules/Bluetooth/system/gd/metrics/chromeos/ |
D | metrics_event.h | 26 enum class AdapterState : int64_t { OFF = 0, ON = 1 }; 32 enum class ConnectionType : int64_t { 41 enum class PairingState : int64_t { 85 enum class Profile : int64_t { 103 enum class MetricProfileConnectionStatus : int64_t { 118 enum class MetricProfileDisconnectionStatus : int64_t { 132 enum class MetricAclConnectionStatus : int64_t { 160 enum class MetricAclDisconnectionStatus : int64_t { 171 enum class StateChangeType : int64_t { STATE_CHANGE_TYPE_DISCONNECT = 0, STATE_CHANGE_TYPE_CONNECT … 175 enum class MetricAclConnectionDirection : int64_t { [all …]
|
D | metrics_event.cc | 292 int64_t StatusToProfileConnectionState(uint32_t status, StateChangeType type) { in StatusToProfileConnectionState() 293 int64_t state; in StatusToProfileConnectionState() 297 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_SUCCEED; in StatusToProfileConnectionState() 300 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_BUSY_CONNECTING; in StatusToProfileConnectionState() 303 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_ALREADY_CONNECTED; in StatusToProfileConnectionState() 306 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_PROFILE_NOT_SUPPORTED; in StatusToProfileConnectionState() 309 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_UNKNOWN_ERROR; in StatusToProfileConnectionState() 312 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_CONNECTION_REFUSED; in StatusToProfileConnectionState() 315 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_REMOTE_UNAVAILABLE; in StatusToProfileConnectionState() 323 state = (int64_t)MetricProfileConnectionStatus::PROFILE_CONN_STATE_UNKNOWN_ERROR; in StatusToProfileConnectionState() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util.h | 99 MOCK_METHOD1(sendDataBroadcast, Status(int64_t lastReportTimeNs)); 100 MOCK_METHOD1(sendActiveConfigsChangedBroadcast, Status(const vector<int64_t>& configIds)); 101 MOCK_METHOD1(sendRestrictedMetricsChangedBroadcast, Status(const vector<int64_t>& metricIds)); 103 Status(int64_t configUid, int64_t configId, int64_t subscriptionId, 104 int64_t subscriptionRuleId, const vector<string>& cookies, 158 ConfigMetricsReport getReports(sp<StatsLogProcessor> processor, int64_t timestamp, 163 int64_t timerNs, int64_t lastConditionTrueTimestampNs, 164 int64_t currentBucketStartDelayNs = 0) { 294 State CreateScreenStateWithOnOffMap(int64_t screenOnId, int64_t screenOffId); 297 State CreateScreenStateWithSimpleOnOffMap(int64_t screenOnId, int64_t screenOffId); [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | MaxDurationTracker_test.cpp | 43 const int64_t metricId = 123; 50 const int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; 62 int64_t bucketStartTimeNs = 10000000000; in TEST() 63 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() 64 int64_t bucketNum = 0; in TEST() 66 int64_t metricId = 1; in TEST() 98 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; in TEST() 99 int64_t bucketStartTimeNs = 10000000000; in TEST() 100 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs; in TEST() 101 int64_t bucketNum = 0; in TEST() [all …]
|
D | OringDurationTracker_test.cpp | 41 const int64_t metricId = 123; 48 const int64_t bucketSizeNs = 30 * NS_PER_SEC; 59 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; in TEST() 60 int64_t bucketStartTimeNs = 10000000000; in TEST() 61 int64_t bucketNum = 0; in TEST() 62 int64_t eventStartTimeNs = bucketStartTimeNs + 1; in TEST() 63 int64_t durationTimeNs = 2 * 1000; in TEST() 93 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL; in TEST() 94 int64_t bucketStartTimeNs = 10000000000; in TEST() 95 int64_t bucketNum = 0; in TEST() [all …]
|
/packages/modules/StatsD/lib/libkll/include/ |
D | kll.h | 39 int64_t num_values() const { in num_values() 42 int64_t inv_eps() const { in inv_eps() 48 int64_t num_stored_values() const { in num_stored_values() 53 void Add(int64_t value); 66 void AddWeighted(int64_t value, int weight); 77 KllQuantile(int64_t inv_eps, int64_t inv_delta, int k, RandomGenerator* random) in KllQuantile() 84 void UpdateMin(const int64_t value); 85 void UpdateMax(const int64_t value); 86 int64_t inv_eps_; 88 int64_t min_{}; [all …]
|