Home
last modified time | relevance | path

Searched refs:Position (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp45 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/
DPaletteListPreference.java61 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/
DBinaryDictIOUtils.java59 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()
DFusionDictionary.java571 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/
DLogEntryMatcher_test.cpp148 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 …]
DFieldValue_test.cpp69 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()
Dstatsd_test_util.h199 const std::vector<Position>& positions);
203 const std::vector<Position>& positions);
206 const std::vector<Position>& positions,
Dstatsd_test_util.cpp407 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/
DFieldValue.cpp76 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()
Dstatsd_config.proto24 enum Position { enum
54 optional Position position = 2;
62 optional Position position = 2;
/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp50 {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()
Dmetric_util.h90 const std::vector<Position>& positions);
94 const std::vector<Position>& positions);
Dmetric_util.cpp215 const std::vector<Position>& positions) { in CreateAttributionUidDimensions()
228 const std::vector<Position>& positions) { in CreateAttributionUidAndTagDimensions()
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp145 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/
DConfigUpdate_e2e_test.cpp296 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 …]
DAttribution_e2e_test.cpp32 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()
DDurationMetric_e2e_test.cpp467 {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 …]
DWakelockDuration_e2e_test.cpp45 util::WAKELOCK_STATE_CHANGED, {Position::FIRST, Position::LAST}); in CreateStatsdConfig()
59 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
DMetricConditionLink_e2e_test.cpp51 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
85 util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
DConfigTtl_e2e_test.cpp42 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateStatsdConfig()
DAnomaly_duration_sum_e2e_test.cpp56 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/
DCountMetricsTests.java25 import com.android.internal.os.StatsdConfigProto.Position;
348 .setPosition(Position.FIRST)
364 .setPosition(Position.FIRST)
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DDeviceAtomTestCase.java23 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/
DValidationTests.java35 import com.android.internal.os.StatsdConfigProto.Position;
416 .setPosition(Position.FIRST) in uploadWakelockDurationBatteryStatsConfig()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp906 CreateAttributionUidDimensions(util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
917 util::WAKELOCK_STATE_CHANGED, {Position::FIRST}, {3 /* tag */}); in TEST()

12