/packages/modules/StatsD/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 45 bool outputSlicedUid, Position position) { in getWakeLockHeldCondition() 83 const Position position, in getWakeLockQueryKey() 91 case Position::FIRST: in getWakeLockQueryKey() 94 case Position::LAST: in getWakeLockQueryKey() 98 case Position::ANY: in getWakeLockQueryKey() 386 for (Position position : {Position::FIRST, Position::LAST}) { in TEST() 418 if (position == Position::FIRST || position == Position::LAST) { in TEST() 424 if (position == Position::FIRST || position == Position::LAST) { in TEST() 450 if (position == Position::FIRST || position == Position::LAST) { in TEST() 471 if (position == Position::FIRST || position == Position::LAST) { in TEST() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | PaletteListPreference.java | 61 Position.START, 62 Position.CENTER, 63 Position.END, 66 @interface Position { annotation in PaletteListPreference 112 mGradientColors.add(Position.START, defaultColor); in initPaletteAttributes() 113 mGradientColors.add(Position.CENTER, defaultColor); in initPaletteAttributes() 114 mGradientColors.add(Position.END, defaultColor); in initPaletteAttributes() 116 mGradientOffsets.add(Position.START, /* element= */ 0.0f); in initPaletteAttributes() 117 mGradientOffsets.add(Position.CENTER, /* element= */ 0.5f); in initPaletteAttributes() 118 mGradientOffsets.add(Position.END, /* element= */ 1.0f); in initPaletteAttributes() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictIOUtils.java | 59 private static final class Position { class in BinaryDictIOUtils 67 public Position(int address, int length) { in Position() method in BinaryDictIOUtils.Position 83 Stack<Position> stack = new Stack<>(); in readUnigramsAndBigramsBinaryInner() 86 Position initPos = new Position(bodyOffset, 0); in readUnigramsAndBigramsBinaryInner() 90 Position p = stack.peek(); in readUnigramsAndBigramsBinaryInner() 100 if (p.mNumOfPtNode == Position.NOT_READ_PTNODE_COUNT) { in readUnigramsAndBigramsBinaryInner() 131 final Position childrenPos = new Position(ptNodeInfo.mChildrenAddress, index); in readUnigramsAndBigramsBinaryInner()
|
D | FusionDictionary.java | 571 private static final class Position { class in FusionDictionary.DictionaryIterator 574 public Position(ArrayList<PtNode> ptNodes) { in Position() method in FusionDictionary.DictionaryIterator.Position 580 final LinkedList<Position> mPositions; 585 final Position rootPos = new Position(ptRoot); in DictionaryIterator() 591 for (Position p : mPositions) { in hasNext() 601 Position currentPos = mPositions.getLast(); in next() 612 currentPos = new Position(currentPtNode.mChildren.mData); in next()
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 148 attributionMatcher->set_position(Position::FIRST); in TEST() 168 attributionMatcher->set_position(Position::LAST); in TEST() 175 attributionMatcher->set_position(Position::ANY); in TEST() 191 attributionMatcher->set_position(Position::ANY); in TEST() 200 attributionMatcher->set_position(Position::ANY); in TEST() 230 attributionMatcher->set_position(Position::FIRST); in TEST() 244 attributionMatcher->set_position(Position::LAST); in TEST() 259 attributionMatcher->set_position(Position::ANY); in TEST() 293 attributionMatcher->set_position(Position::FIRST); in TEST() 325 attributionMatcher->set_position(Position::LAST); in TEST() [all …]
|
D | FieldValue_test.cpp | 69 child->set_position(Position::ANY); in TEST() 90 child->set_position(Position::ALL); in TEST() 111 child->set_position(Position::ALL); in TEST() 203 child11->set_position(Position::ANY); in TEST() 211 child2->set_position(Position::LAST); in TEST() 233 for (auto position : {Position::ANY, Position::ALL, Position::FIRST, Position::LAST}) { in TEST() 527 child->set_position(Position::ALL); in TEST() 541 child->set_position(Position::ALL); in TEST()
|
D | statsd_test_util.h | 199 const std::vector<Position>& positions); 203 const std::vector<Position>& positions); 206 const std::vector<Position>& positions,
|
D | statsd_test_util.cpp | 407 const std::vector<Position>& positions) { in CreateAttributionUidDimensions() 420 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions() 443 const std::vector<Position>& positions, in CreateAttributionUidAndOtherDimensions()
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.cpp | 76 case Position::ALL: in translateFieldMatcher() 80 case Position::ANY: in translateFieldMatcher() 84 case Position::FIRST: in translateFieldMatcher() 88 case Position::LAST: in translateFieldMatcher() 92 case Position::POSITION_UNKNOWN: in translateFieldMatcher() 449 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY() 461 if (matcher.has_position() && matcher.position() == Position::ALL) { in HasPositionALL()
|
D | statsd_config.proto | 24 enum Position { enum 54 optional Position position = 2; 62 optional Position position = 2;
|
/packages/modules/StatsD/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 50 {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() 74 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() 91 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 97 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 120 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 126 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 128 CreateAttributionUidDimensions(android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
|
D | metric_util.h | 90 const std::vector<Position>& positions); 94 const std::vector<Position>& positions);
|
D | metric_util.cpp | 215 const std::vector<Position>& positions) { in CreateAttributionUidDimensions() 228 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions()
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 145 case Position::FIRST: { in matchesSimple() 158 case Position::LAST: { in matchesSimple() 169 case Position::ANY: { in matchesSimple() 187 case Position::ALL: in matchesSimple() 190 case Position::POSITION_UNKNOWN: in matchesSimple()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_test.cpp | 296 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 315 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 320 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 322 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 326 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 548 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 557 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 567 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 572 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 574 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() [all …]
|
D | Attribution_e2e_test.cpp | 32 StatsdConfig CreateStatsdConfig(const Position position) { in CreateStatsdConfig() 39 attributionNodeMatcher->set_position(Position::ANY); in CreateStatsdConfig() 98 auto config = CreateStatsdConfig(Position::FIRST); in TEST() 211 auto config = CreateStatsdConfig(Position::ALL); in TEST()
|
D | DurationMetric_e2e_test.cpp | 467 {Position::FIRST}); in TEST() 473 CreateDimensions(util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST() 483 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 490 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 572 {Position::FIRST}); in TEST() 578 CreateDimensions(util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST() 588 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 595 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 1204 *fieldsInWhat = CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 1232 CreateAttributionUidAndOtherDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}, in TEST() [all …]
|
D | WakelockDuration_e2e_test.cpp | 45 util::WAKELOCK_STATE_CHANGED, {Position::FIRST, Position::LAST}); in CreateStatsdConfig() 59 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | MetricConditionLink_e2e_test.cpp | 51 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig() 85 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | ConfigTtl_e2e_test.cpp | 42 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | Anomaly_duration_sum_e2e_test.cpp | 56 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig() 68 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | CountMetricsTests.java | 25 import com.android.internal.os.StatsdConfigProto.Position; 348 .setPosition(Position.FIRST) 364 .setPosition(Position.FIRST)
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | DeviceAtomTestCase.java | 23 import com.android.internal.os.StatsdConfigProto.Position; 159 return createFvm(field).setPosition(Position.ANY) in createAttributionFvm()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 35 import com.android.internal.os.StatsdConfigProto.Position; 416 .setPosition(Position.FIRST) in uploadWakelockDurationBatteryStatsConfig()
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 906 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 917 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}, {3 /* tag */}); in TEST()
|