Home
last modified time | relevance | path

Searched refs:segmentCount (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/core/java/com/android/server/vibrator/
DRampDownAdapter.java80 int segmentCount = segments.size(); in addRampDownToZeroAmplitudeSegments() local
81 for (int i = 1; i < segmentCount; i++) { in addRampDownToZeroAmplitudeSegments()
126 segmentCount++; in addRampDownToZeroAmplitudeSegments()
131 segmentCount += segmentsAdded; in addRampDownToZeroAmplitudeSegments()
155 int segmentCount = segments.size(); in addRampDownToLoop() local
156 if (!endsWithNonZeroAmplitude(segments.get(segmentCount - 1)) in addRampDownToLoop()
162 VibrationEffectSegment lastSegment = segments.get(segmentCount - 1); in addRampDownToLoop()
DStepToRampAdapter.java45 int segmentCount = segments.size(); in adaptToVibrator() local
47 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
55 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
60 for (int j = i + 1; j < segmentCount && isStep(segments.get(j)); j++) { in adaptToVibrator()
DSetAmplitudeVibratorStep.java175 int segmentCount = segments.size(); in getVibratorOnDuration() local
179 while (i < segmentCount) { in getVibratorOnDuration()
189 if (i == segmentCount && repeatIndex >= 0) { in getVibratorOnDuration()
198 if (i == segmentCount && effect.getRepeatIndex() < 0) { in getVibratorOnDuration()
DRampToStepAdapter.java52 int segmentCount = segments.size(); in adaptToVibrator() local
53 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
66 segmentCount += addedSegments; in adaptToVibrator()
DSplitSegmentsAdapter.java53 int segmentCount = segments.size(); in adaptToVibrator() local
54 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
70 segmentCount += addedSegments; in adaptToVibrator()
DClippingAmplitudeAndFrequencyAdapter.java40 int segmentCount = segments.size(); in adaptToVibrator() local
41 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
DComposePrimitivesVibratorStep.java101 int segmentCount = effect.getSegments().size(); in unrollPrimitiveSegments() local
105 if (i == segmentCount) { in unrollPrimitiveSegments()
DComposePwleVibratorStep.java103 int segmentCount = effect.getSegments().size(); in unrollRampSegments() local
109 if (i == segmentCount) { in unrollRampSegments()
DVibrationScaler.java160 int segmentCount = segments.size(); in scale() local
161 for (int i = 0; i < segmentCount; i++) { in scale()
DVibratorManagerService.java1265 int segmentCount = composed.getSegments().size(); in fillVibrationFallbacks() local
1266 for (int i = 0; i < segmentCount; i++) { in fillVibrationFallbacks()
/frameworks/base/core/java/android/os/
DVibrationEffect.java789 int segmentCount = mSegments.size(); in validate() local
791 for (int i = 0; i < segmentCount; i++) { in validate()
802 Preconditions.checkArgumentInRange(mRepeatIndex, 0, segmentCount - 1, in validate()
804 + segmentCount + ", index=" + mRepeatIndex + ")"); in validate()
813 int segmentCount = mSegments.size(); in getDuration() local
815 for (int i = 0; i < segmentCount; i++) { in getDuration()
845 int segmentCount = mSegments.size(); in isHapticFeedbackCandidate() local
846 if (segmentCount > MAX_HAPTIC_FEEDBACK_COMPOSITION_SIZE) { in isHapticFeedbackCandidate()
852 for (int i = 0; i < segmentCount; i++) { in isHapticFeedbackCandidate()
870 int segmentCount = mSegments.size(); in resolve() local
[all …]
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp67 uint16_t segmentCount = ranges.size() / 2 + 1 /* +1 for end marker */; in buildCmapFormat4Table() local
72 segmentCount * 4 /* endCount, startCount, idRange, idRangeOffset */; in buildCmapFormat4Table()
81 const uint16_t searchRange = 2 * (1 << static_cast<int>(floor(log2(segmentCount)))); in buildCmapFormat4Table()
83 head = writeU16(segmentCount * 2, out.data(), head); // segCountX2 in buildCmapFormat4Table()
86 head = writeU16(segmentCount * 2 - searchRange, out.data(), head); // rangeShift in buildCmapFormat4Table()
89 size_t startCountHead = head + segmentCount * sizeof(uint16_t) + 2 /* padding */; in buildCmapFormat4Table()
90 size_t idDeltaHead = startCountHead + segmentCount * sizeof(uint16_t); in buildCmapFormat4Table()
91 size_t idRangeOffsetHead = idDeltaHead + segmentCount * sizeof(uint16_t); in buildCmapFormat4Table()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java475 final int segmentCount = ObserverNode.countUriSegments(uri); in notifyChange() local
476 mRootNode.collectObserversLocked(uri, segmentCount, 0, observer, in notifyChange()
1914 public void collectObserversLocked(Uri uri, int segmentCount, int index, in collectObserversLocked() argument
1918 if (index >= segmentCount) { in collectObserversLocked()
1923 } else if (index < segmentCount){ in collectObserversLocked()
1937 node.collectObserversLocked(uri, segmentCount, index + 1, observer, in collectObserversLocked()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1349 int segmentCount = composed.getSegments().size(); in VibrationInfo() local
1350 pattern = new long[segmentCount]; in VibrationInfo()
1351 amplitudes = new int[segmentCount]; in VibrationInfo()
1354 for (int i = 0; i < segmentCount; i++) { in VibrationInfo()