/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | RampDownAdapter.java | 80 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()
|
D | StepToRampAdapter.java | 45 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()
|
D | SetAmplitudeVibratorStep.java | 175 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()
|
D | RampToStepAdapter.java | 52 int segmentCount = segments.size(); in adaptToVibrator() local 53 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator() 66 segmentCount += addedSegments; in adaptToVibrator()
|
D | SplitSegmentsAdapter.java | 53 int segmentCount = segments.size(); in adaptToVibrator() local 54 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator() 70 segmentCount += addedSegments; in adaptToVibrator()
|
D | ClippingAmplitudeAndFrequencyAdapter.java | 40 int segmentCount = segments.size(); in adaptToVibrator() local 41 for (int i = 0; i < segmentCount; i++) { in adaptToVibrator()
|
D | ComposePrimitivesVibratorStep.java | 101 int segmentCount = effect.getSegments().size(); in unrollPrimitiveSegments() local 105 if (i == segmentCount) { in unrollPrimitiveSegments()
|
D | ComposePwleVibratorStep.java | 103 int segmentCount = effect.getSegments().size(); in unrollRampSegments() local 109 if (i == segmentCount) { in unrollRampSegments()
|
D | VibrationScaler.java | 160 int segmentCount = segments.size(); in scale() local 161 for (int i = 0; i < segmentCount; i++) { in scale()
|
D | VibratorManagerService.java | 1265 int segmentCount = composed.getSegments().size(); in fillVibrationFallbacks() local 1266 for (int i = 0; i < segmentCount; i++) { in fillVibrationFallbacks()
|
/frameworks/base/core/java/android/os/ |
D | VibrationEffect.java | 789 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/ |
D | CmapCoverageTest.cpp | 67 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/ |
D | ContentService.java | 475 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/ |
D | InputManagerService.java | 1349 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()
|