Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs299 Assert.AreEqual(1, cout.Position); in TestCodedInputOutputPosition()
301 Assert.AreEqual(3, cout.Position); in TestCodedInputOutputPosition()
304 Assert.AreEqual(4, cout.Position); in TestCodedInputOutputPosition()
306 Assert.AreEqual(115, cout.Position); in TestCodedInputOutputPosition()
309 Assert.AreEqual(116, cout.Position); in TestCodedInputOutputPosition()
311 Assert.AreEqual(120, cout.Position); in TestCodedInputOutputPosition()
320 Assert.AreEqual(1, cout.Position); in TestCodedInputOutputPosition()
322 Assert.AreEqual(3, cout.Position); in TestCodedInputOutputPosition()
325 Assert.AreEqual(4, cout.Position); in TestCodedInputOutputPosition()
327 Assert.AreEqual(125, cout.Position); in TestCodedInputOutputPosition()
[all …]
DFieldCodecTest.cs129 stream.Position = 0; in TestRoundTripRaw()
141 stream.Position = 0; in TestRoundTripWithTag()
154 Assert.AreEqual(stream.Position, codec.CalculateSizeWithTag(sampleValue)); in TestCalculateSizeWithTag()
164 Assert.AreEqual(0, stream.Position); in TestDefaultValue()
177 Assert.AreNotEqual(0, stream.Position); in TestDefaultValue()
178 Assert.AreEqual(stream.Position, codec.ValueSizeCalculator(codec.DefaultValue)); in TestDefaultValue()
179 stream.Position = 0; in TestDefaultValue()
DCodedInputStreamTest.cs86 memoryStream.Position = 0; in AssertReadVarint()
88 Assert.AreEqual(data.Length, memoryStream.Position); in AssertReadVarint()
279 ms.Position = 0; in ReadMaliciouslyLargeBlob()
353 ms.Position = 0; in ReadInvalidUtf8()
405 ms.Position = 0; in TestSlowPathAvoidance()
460 stream.Position = 0; in SkipGroup()
491 stream.Position = 0; in SkipGroup_WrongEndGroupTag()
511 stream.Position = 0; in RogueEndGroupTag()
528 stream.Position = 0; in EndOfStreamReachedWhileSkippingGroup()
550 stream.Position = 0; in RecursionLimitAppliedWhileSkippingGroup()
/frameworks/native/include/input/
DVelocityTracker.h33 struct Position { struct
83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions);
131 const VelocityTracker::Position* positions) = 0;
163 const VelocityTracker::Position* positions);
178 VelocityTracker::Position positions[MAX_POINTERS];
180 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition()
206 const VelocityTracker::Position* positions);
240 const VelocityTracker::Position* positions);
256 VelocityTracker::Position positions[MAX_POINTERS];
258 inline const VelocityTracker::Position& getPosition(uint32_t id) const { in getPosition()
[all …]
DVelocityControl.h101 VelocityTracker::Position mRawPosition;
/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp41 bool outputSlicedUid, Position position) { in getWakeLockHeldCondition()
79 const Position position, in getWakeLockQueryKey()
87 case Position::FIRST: in getWakeLockQueryKey()
90 case Position::LAST: in getWakeLockQueryKey()
94 case Position::ANY: in getWakeLockQueryKey()
269 for (Position position : in TEST()
270 { Position::FIRST, Position::LAST}) { in TEST()
305 if (position == Position::FIRST || in TEST()
306 position == Position::LAST) { in TEST()
312 if (position == Position::FIRST || in TEST()
[all …]
/frameworks/base/tools/aapt2/text/
DUtf8Iterator_test.cpp72 EXPECT_THAT(iter.Position(), Eq(0u)); in TEST()
77 EXPECT_THAT(iter.Position(), Eq(1u)); in TEST()
82 EXPECT_THAT(iter.Position(), Eq(2u)); in TEST()
87 EXPECT_THAT(iter.Position(), Eq(6u)); in TEST()
91 EXPECT_THAT(iter.Position(), Eq(expected.size())); in TEST()
DUtf8Iterator.h34 size_t Position() const;
DUtf8Iterator.cpp46 size_t Utf8Iterator::Position() const { in Position() function in aapt::text::Utf8Iterator
/frameworks/base/cmds/statsd/src/
DFieldValue.cpp77 case Position::ALL: in translateFieldMatcher()
81 case Position::ANY: in translateFieldMatcher()
85 case Position::FIRST: in translateFieldMatcher()
89 case Position::LAST: in translateFieldMatcher()
93 case Position::POSITION_UNKNOWN: in translateFieldMatcher()
442 if (matcher.has_position() && matcher.position() == Position::ANY) { in HasPositionANY()
454 if (matcher.has_position() && matcher.position() == Position::ALL) { in HasPositionALL()
/frameworks/base/cmds/statsd/tests/
DLogEntryMatcher_test.cpp92 attributionMatcher->set_position(Position::FIRST); in TEST()
111 attributionMatcher->set_position(Position::LAST); in TEST()
118 attributionMatcher->set_position(Position::ANY); in TEST()
134 attributionMatcher->set_position(Position::ANY); in TEST()
143 attributionMatcher->set_position(Position::ANY); in TEST()
172 attributionMatcher->set_position(Position::FIRST); in TEST()
186 attributionMatcher->set_position(Position::LAST); in TEST()
201 attributionMatcher->set_position(Position::ANY); in TEST()
235 attributionMatcher->set_position(Position::FIRST); in TEST()
267 attributionMatcher->set_position(Position::LAST); in TEST()
[all …]
DFieldValue_test.cpp38 child->set_position(Position::ANY); in TEST()
59 child->set_position(Position::ALL); in TEST()
80 child->set_position(Position::ALL); in TEST()
202 child11->set_position(Position::ANY); in TEST()
210 child2->set_position(Position::LAST); in TEST()
232 for (auto position : {Position::ANY, Position::ALL, Position::FIRST, Position::LAST}) { in TEST()
/frameworks/base/cmds/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.h89 const std::vector<Position>& positions);
93 const std::vector<Position>& positions);
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp146 case Position::FIRST: { in matchesSimple()
159 case Position::LAST: { in matchesSimple()
170 case Position::ANY: { in matchesSimple()
188 case Position::ALL: in matchesSimple()
191 case Position::POSITION_UNKNOWN: in matchesSimple()
/frameworks/native/libs/input/
DVelocityTracker.cpp230 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { in addMovement()
323 Position positions[pointerCount]; in addMovement()
384 const VelocityTracker::Position* positions) { in addMovement()
649 const VelocityTracker::Position& position = movement.getPosition(id); in getEstimator()
796 const VelocityTracker::Position* positions) { in addMovement()
801 const VelocityTracker::Position& position = positions[index++]; in addMovement()
914 const VelocityTracker::Position* positions) { in addMovement()
967 const VelocityTracker::Position& oldestPosition = oldestMovement.getPosition(id); in getEstimator()
981 const VelocityTracker::Position& position = movement.getPosition(id); in getEstimator()
993 const VelocityTracker::Position& newestPosition = newestMovement.getPosition(id); in getEstimator()
[all …]
/frameworks/base/cmds/statsd/tests/e2e/
DDimensionInCondition_e2e_simple_cond_test.cpp48 {Position::FIRST}); in CreateDurationMetricConfig_NoLink_SimpleCondition()
66 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_SimpleCondition()
323 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_Link_SimpleConditionConfig()
329 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_Link_SimpleConditionConfig()
344 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_Link_SimpleConditionConfig()
350 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_Link_SimpleConditionConfig()
352 CreateAttributionUidDimensions(android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_Link_SimpleConditionConfig()
547 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_PartialLink_SimpleConditionConfig()
553 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_PartialLink_SimpleConditionConfig()
566 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in createDurationMetric_PartialLink_SimpleConditionConfig()
[all …]
DDimensionInCondition_e2e_combination_AND_cond_test.cpp53 {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
78 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
411 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
417 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
440 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
446 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
448 CreateAttributionUidDimensions(android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
659 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_PartialLink_AND_CombinationCondition()
665 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_PartialLink_AND_CombinationCondition()
687 android::util::SCHEDULED_JOB_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_PartialLink_AND_CombinationCondition()
[all …]
DDurationMetric_e2e_test.cpp458 android::util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
464 CreateDimensions(android::util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST()
475 android::util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
485 android::util::ACTIVITY_FOREGROUND_STATE_CHANGED, { Position::FIRST }); in TEST()
561 android::util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
567 CreateDimensions(android::util::ACTIVITY_FOREGROUND_STATE_CHANGED, {Position::FIRST}); in TEST()
578 android::util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in TEST()
588 android::util::ACTIVITY_FOREGROUND_STATE_CHANGED, { Position::FIRST }); in TEST()
DDimensionInCondition_e2e_combination_OR_cond_test.cpp48 {Position::FIRST}); in CreateCountMetric_NoLink_CombinationCondition_Config()
64 android::util::WAKELOCK_STATE_CHANGED, {Position::FIRST}); in CreateCountMetric_NoLink_CombinationCondition_Config()
249 {Position::FIRST}); in CreateCountMetric_Link_CombinationCondition()
268 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateCountMetric_Link_CombinationCondition()
277 CreateAttributionUidDimensions(android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateCountMetric_Link_CombinationCondition()
443 {Position::FIRST}); in CreateDurationMetricConfig_NoLink_CombinationCondition()
462 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_CombinationCondition()
634 {Position::FIRST}); in CreateDurationMetricConfig_Link_CombinationCondition()
659 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_CombinationCondition()
668 CreateAttributionUidDimensions(android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_Link_CombinationCondition()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs321 stream.Position = 0; in AddEntriesFrom_PackedInt32()
347 stream.Position = 0; in AddEntriesFrom_NonPackedInt32()
373 stream.Position = 0; in AddEntriesFrom_String()
397 stream.Position = 0; in AddEntriesFrom_Message()
416 stream.Position = 0; in WriteTo_PackedInt32()
437 stream.Position = 0; in WriteTo_NonPackedInt32()
458 stream.Position = 0; in WriteTo_String()
481 stream.Position = 0; in WriteTo_Message()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp71 struct Position { struct
87 std::vector<Position> positions;
90 static BitSet32 getValidPointers(const std::vector<Position>& positions) { in getValidPointers()
107 static int32_t resolveAction(const std::vector<Position>& lastPositions, in resolveAction()
108 const std::vector<Position>& currentPositions, in resolveAction()
109 const std::vector<Position>& nextPositions) { in resolveAction()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DCodedInputStream.cs226 public long Position property in Google.Protobuf.CodedInputStream
232 return input.Position - ((bufferSize + bufferSizeAfterLimit) - bufferPos);
1251 long previousPosition = input.Position; in SkipImpl()
1252 input.Position += amountToSkip; in SkipImpl()
1253 if (input.Position != previousPosition + amountToSkip) in SkipImpl()
DLimitedInputStream.cs78 public override long Position property in Google.Protobuf.LimitedInputStream
/frameworks/base/tools/processors/unsupportedappusage/src/android/processor/unsupportedappusage/
DUnsupportedAppUsageProcessor.java27 import com.sun.tools.javac.util.Position;
151 Position.LineMap lines = pair.snd.lineMap; in getAnnotationIndex()

12