/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | PaletteListPreference.java | 63 Position.START, 64 Position.CENTER, 65 Position.END, 68 @interface Position { annotation in PaletteListPreference 114 mGradientColors.add(Position.START, defaultColor); in initPaletteAttributes() 115 mGradientColors.add(Position.CENTER, defaultColor); in initPaletteAttributes() 116 mGradientColors.add(Position.END, defaultColor); in initPaletteAttributes() 118 mGradientOffsets.add(Position.START, /* element= */ 0.0f); in initPaletteAttributes() 119 mGradientOffsets.add(Position.CENTER, /* element= */ 0.5f); in initPaletteAttributes() 120 mGradientOffsets.add(Position.END, /* element= */ 1.0f); in initPaletteAttributes() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | LogEntryMatcher_test.cpp | 179 attributionMatcher->set_position(Position::FIRST); in TEST() 199 attributionMatcher->set_position(Position::LAST); in TEST() 206 attributionMatcher->set_position(Position::ANY); in TEST() 222 attributionMatcher->set_position(Position::ANY); in TEST() 231 attributionMatcher->set_position(Position::ANY); in TEST() 261 attributionMatcher->set_position(Position::FIRST); in TEST() 275 attributionMatcher->set_position(Position::LAST); in TEST() 290 attributionMatcher->set_position(Position::ANY); in TEST() 324 attributionMatcher->set_position(Position::FIRST); in TEST() 356 attributionMatcher->set_position(Position::LAST); in TEST() [all …]
|
D | FieldValue_test.cpp | 78 child->set_position(Position::ANY); in TEST() 99 child->set_position(Position::ALL); in TEST() 120 child->set_position(Position::ALL); in TEST() 166 child->set_position(Position::FIRST); in TEST() 200 child->set_position(Position::FIRST); in TEST() 222 child->set_position(Position::LAST); in TEST() 244 child->set_position(Position::ALL); in TEST() 292 child->set_position(Position::FIRST); in TEST() 317 child->set_position(Position::LAST); in TEST() 342 child->set_position(Position::ALL); in TEST() [all …]
|
D | statsd_test_util.h | 243 Position position); 325 const std::vector<Position>& positions); 329 const std::vector<Position>& positions); 333 const std::vector<Position>& positions); 336 const std::vector<Position>& positions,
|
D | statsd_test_util.cpp | 280 Position position) { in CreateTestAtomRepeatedStateAtomMatcher() 292 Position::FIRST); in CreateTestAtomRepeatedStateFirstOffAtomMatcher() 297 Position::FIRST); in CreateTestAtomRepeatedStateFirstOnAtomMatcher() 302 Position::ANY); in CreateTestAtomRepeatedStateAnyOnAtomMatcher() 476 const std::vector<Position>& positions) { in CreateAttributionUidDimensions() 489 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions() 512 const std::vector<Position>& positions) { in CreateRepeatedDimensions() 528 const std::vector<Position>& positions, in CreateAttributionUidAndOtherDimensions()
|
/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/benchmark/ |
D | duration_metric_benchmark.cpp | 51 CreateAttributionUidAndTagDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() 75 CreateAttributionUidAndTagDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() 92 CreateAttributionUidDimensions(util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 97 *syncDimension = CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 120 CreateAttributionUidDimensions(util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 125 CreateAttributionUidDimensions(util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition() 127 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
|
/packages/modules/StatsD/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 49 bool outputSlicedUid, Position position) { in getWakeLockHeldCondition() 82 const Position position, in getWakeLockQueryKey() 90 case Position::FIRST: in getWakeLockQueryKey() 93 case Position::LAST: in getWakeLockQueryKey() 97 case Position::ANY: in getWakeLockQueryKey() 395 for (Position position : {Position::FIRST, Position::LAST}) { in TEST_P() 498 false /*slice output by uid*/, Position::ANY /* position */); in TEST() 591 for (Position position : {Position::FIRST, Position::LAST}) { in TEST_P() 696 true /*output slice by uid*/, Position::FIRST); in TEST() 742 true /*output slice by uid*/, Position::FIRST); in TEST()
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.cpp | 90 case Position::ALL: in translateFieldMatcher() 94 case Position::ANY: in translateFieldMatcher() 98 case Position::FIRST: in translateFieldMatcher() 102 case Position::LAST: in translateFieldMatcher() 106 case Position::POSITION_UNKNOWN: in translateFieldMatcher() 529 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY() 541 if (matcher.has_position() && matcher.position() == Position::ALL) { in HasPositionALL()
|
D | statsd_config.proto | 24 enum Position { enum 54 optional Position position = 2; 70 optional Position position = 2;
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 1645 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 1656 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}, {3 /* tag */}); in TEST_F() 1687 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 1708 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 1710 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 1718 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 1888 util::TEST_ATOM_REPORTED, {9 /*repeated_int_field*/}, {Position::ALL}); in TEST_F() 1891 {Position::ALL}); in TEST_F() 1910 util::TEST_ATOM_REPORTED, {9 /*repeated_int_field*/}, {Position::ANY}); in TEST_F() 1913 {Position::ALL}); in TEST_F() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 215 case Position::FIRST: { in computeRanges() 228 case Position::LAST: { in computeRanges() 239 case Position::ALL: in computeRanges() 245 case Position::ANY: { in computeRanges() 275 case Position::POSITION_UNKNOWN: in computeRanges()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | KllMetric_e2e_test.cpp | 191 util::TEST_ATOM_REPORTED, {9 /*repeated_int_field*/}, {Position::ALL}); in TEST_F() 220 CreateAttributionUidDimensions(util::BLE_SCAN_RESULT_RECEIVED, {Position::FIRST}); in TEST_F() 222 CreateAttributionUidDimensions(util::BLE_SCAN_RESULT_RECEIVED, {Position::FIRST}); in TEST_F()
|
D | Attribution_e2e_test.cpp | 32 StatsdConfig CreateStatsdConfig(const Position position) { in CreateStatsdConfig() 38 attributionNodeMatcher->set_position(Position::ANY); in CreateStatsdConfig() 97 auto config = CreateStatsdConfig(Position::FIRST); in TEST() 207 auto config = CreateStatsdConfig(Position::ALL); in TEST()
|
D | GaugeMetric_e2e_push_test.cpp | 88 childFieldMatcher->set_position(Position::FIRST); in CreateStatsdConfigForRepeatedFieldsPushedEvent() 92 childFieldMatcher->set_position(Position::LAST); in CreateStatsdConfigForRepeatedFieldsPushedEvent() 96 childFieldMatcher->set_position(Position::ALL); in CreateStatsdConfigForRepeatedFieldsPushedEvent() 100 childFieldMatcher->set_position(Position::FIRST); in CreateStatsdConfigForRepeatedFieldsPushedEvent() 104 childFieldMatcher->set_position(Position::LAST); in CreateStatsdConfigForRepeatedFieldsPushedEvent() 108 childFieldMatcher->set_position(Position::ALL); in CreateStatsdConfigForRepeatedFieldsPushedEvent()
|
D | ConfigUpdate_e2e_test.cpp | 315 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 334 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 339 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 341 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 345 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 570 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() 579 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 589 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 594 CreateAttributionUidDimensions(util::SYNC_STATE_CHANGED, {Position::FIRST}); in TEST_F() 596 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST_F() [all …]
|
D | DurationMetric_e2e_test.cpp | 478 {Position::FIRST}); in TEST() 484 CreateDimensions(util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST() 494 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 501 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 582 {Position::FIRST}); in TEST() 588 CreateDimensions(util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST() 598 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 605 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 1210 *fieldsInWhat = CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 1237 CreateAttributionUidAndOtherDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}, in TEST() [all …]
|
D | StringReplace_e2e_test.cpp | 463 fvm->set_position(Position::FIRST); in TEST() 474 fvm->set_position(Position::FIRST); in TEST() 501 CreateAttributionUidAndTagDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 515 CreateAttributionUidAndTagDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST() 523 CreateAttributionUidAndTagDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
|
D | WakelockDuration_e2e_test.cpp | 44 util::WAKELOCK_STATE_CHANGED, {Position::FIRST, Position::LAST}); in CreateStatsdConfig() 58 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | ConfigTtl_e2e_test.cpp | 41 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | MetricConditionLink_e2e_test.cpp | 50 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig() 84 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
D | CountMetric_e2e_test.cpp | 1301 util::TEST_ATOM_REPORTED, {14 /*repeated_enum_field*/}, {Position::FIRST}); in TEST() 1388 util::TEST_ATOM_REPORTED, {14 /*repeated_enum_field*/}, {Position::LAST}); in TEST() 1466 util::TEST_ATOM_REPORTED, {14 /*repeated_enum_field*/}, {Position::ALL}); in TEST() 1572 {Position::FIRST, Position::FIRST}); in TEST() 1686 {Position::ALL, Position::ALL}); in TEST() 1817 {Position::FIRST}); in TEST() 1833 util::TEST_ATOM_REPORTED, {9 /* repeated uid*/}, {Position::FIRST}); in TEST()
|
D | Anomaly_duration_sum_e2e_test.cpp | 53 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig() 65 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | CountMetricsTests.java | 28 import com.android.internal.os.StatsdConfigProto.Position; 411 .setPosition(Position.FIRST) 427 .setPosition(Position.FIRST) 454 .setPosition(Position.FIRST)
|