Home
last modified time | relevance | path

Searched refs:segment (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/compile/mclinker/lib/LD/
DELFSegmentFactory.cpp21 iterator segment, segEnd = end(); in find() local
22 for (segment = begin(); segment != segEnd; ++segment) { in find()
23 if ((*segment)->type() == pType && in find()
24 ((*segment)->flag() & pFlagSet) == pFlagSet && in find()
25 ((*segment)->flag() & pFlagClear) == 0x0) { in find()
26 return segment; in find()
36 const_iterator segment, segEnd = end(); in find() local
37 for (segment = begin(); segment != segEnd; ++segment) { in find()
38 if ((*segment)->type() == pType && in find()
39 ((*segment)->flag() & pFlagSet) == pFlagSet && in find()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DStepToRampAdapter.java48 VibrationEffectSegment segment = segments.get(i); in adaptToVibrator() local
49 if (isStep(segment) && ((StepSegment) segment).getFrequencyHz() != 0) { in adaptToVibrator()
50 segments.set(i, convertStepToRamp(info, (StepSegment) segment)); in adaptToVibrator()
68 private static RampSegment convertStepToRamp(VibratorInfo info, StepSegment segment) { in convertStepToRamp() argument
69 float frequencyHz = fillEmptyFrequency(info, segment.getFrequencyHz()); in convertStepToRamp()
70 return new RampSegment(segment.getAmplitude(), segment.getAmplitude(), in convertStepToRamp()
71 frequencyHz, frequencyHz, (int) segment.getDuration()); in convertStepToRamp()
74 private static boolean isStep(VibrationEffectSegment segment) { in isStep() argument
75 return segment instanceof StepSegment; in isStep()
DRampDownAdapter.java212 private static VibrationEffectSegment updateDuration(VibrationEffectSegment segment, in updateDuration() argument
214 if (segment instanceof RampSegment) { in updateDuration()
215 RampSegment ramp = (RampSegment) segment; in updateDuration()
218 } else if (segment instanceof StepSegment) { in updateDuration()
219 StepSegment step = (StepSegment) segment; in updateDuration()
222 return segment; in updateDuration()
226 private static boolean isOffSegment(VibrationEffectSegment segment) { in isOffSegment() argument
227 if (segment instanceof StepSegment) { in isOffSegment()
228 StepSegment ramp = (StepSegment) segment; in isOffSegment()
230 } else if (segment instanceof RampSegment) { in isOffSegment()
[all …]
DClippingAmplitudeAndFrequencyAdapter.java42 VibrationEffectSegment segment = segments.get(i); in adaptToVibrator() local
43 if (segment instanceof RampSegment) { in adaptToVibrator()
44 segments.set(i, adaptToVibrator(info, (RampSegment) segment)); in adaptToVibrator()
50 private RampSegment adaptToVibrator(VibratorInfo info, RampSegment segment) { in adaptToVibrator() argument
51 float clampedStartFrequency = clampFrequency(info, segment.getStartFrequencyHz()); in adaptToVibrator()
52 float clampedEndFrequency = clampFrequency(info, segment.getEndFrequencyHz()); in adaptToVibrator()
54 clampAmplitude(info, clampedStartFrequency, segment.getStartAmplitude()), in adaptToVibrator()
55 clampAmplitude(info, clampedEndFrequency, segment.getEndAmplitude()), in adaptToVibrator()
58 (int) segment.getDuration()); in adaptToVibrator()
DVibration.java402 for (VibrationEffectSegment segment : composed.getSegments()) { in dumpEffect()
403 dumpEffect(proto, VibrationEffectProto.SEGMENTS, segment); in dumpEffect()
410 VibrationEffectSegment segment) { in dumpEffect() argument
412 if (segment instanceof StepSegment) { in dumpEffect()
413 dumpEffect(proto, SegmentProto.STEP, (StepSegment) segment); in dumpEffect()
414 } else if (segment instanceof RampSegment) { in dumpEffect()
415 dumpEffect(proto, SegmentProto.RAMP, (RampSegment) segment); in dumpEffect()
416 } else if (segment instanceof PrebakedSegment) { in dumpEffect()
417 dumpEffect(proto, SegmentProto.PREBAKED, (PrebakedSegment) segment); in dumpEffect()
418 } else if (segment instanceof PrimitiveSegment) { in dumpEffect()
[all …]
DSetAmplitudeVibratorStep.java94 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play() local
95 if (!(segment instanceof StepSegment)) { in play()
97 "Ignoring wrong segment for a SetAmplitudeVibratorStep: " + segment); in play()
102 StepSegment stepSegment = (StepSegment) segment; in play()
127 long nextStartTime = startTime + segment.getDuration(); in play()
180 VibrationEffectSegment segment = segments.get(i); in getVibratorOnDuration() local
181 if (!(segment instanceof StepSegment) in getVibratorOnDuration()
184 || (segment.getDuration() > 0 && ((StepSegment) segment).getAmplitude() == 0)) { in getVibratorOnDuration()
187 timing += segment.getDuration(); in getVibratorOnDuration()
DPerformPrebakedVibratorStep.java49 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in play() local
50 if (!(segment instanceof PrebakedSegment)) { in play()
52 + "PerformPrebakedVibratorStep: " + segment); in play()
57 PrebakedSegment prebaked = (PrebakedSegment) segment; in play()
DComposePrimitivesVibratorStep.java113 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollPrimitiveSegments() local
114 if (segment instanceof PrimitiveSegment) { in unrollPrimitiveSegments()
115 segments.add((PrimitiveSegment) segment); in unrollPrimitiveSegments()
DRampToStepAdapter.java54 VibrationEffectSegment segment = segments.get(i); in adaptToVibrator() local
55 if (!(segment instanceof RampSegment)) { in adaptToVibrator()
58 List<StepSegment> steps = convertRampToSteps(info, (RampSegment) segment); in adaptToVibrator()
DComposePwleVibratorStep.java117 VibrationEffectSegment segment = effect.getSegments().get(i); in unrollRampSegments() local
118 if (segment instanceof RampSegment) { in unrollRampSegments()
119 RampSegment rampSegment = (RampSegment) segment; in unrollRampSegments()
DVibrationStepConductor.java139 VibrationEffectSegment segment = effect.getSegments().get(segmentIndex); in nextVibrateStep() local
140 if (segment instanceof PrebakedSegment) { in nextVibrateStep()
144 if (segment instanceof PrimitiveSegment) { in nextVibrateStep()
148 if (segment instanceof RampSegment) { in nextVibrateStep()
/frameworks/base/core/java/com/android/internal/vibrator/persistence/
DVibrationEffectXmlSerializer.java111 StepSegment segment = (StepSegment) segments.get(i); in serializeWaveformEffect() local
116 XmlValidator.checkSerializerCondition(Float.compare(segment.getFrequencyHz(), 0) == 0, in serializeWaveformEffect()
117 "Unsupported segment with non-default frequency %f", segment.getFrequencyHz()); in serializeWaveformEffect()
120 segment.getDuration(), toAmplitudeInt(segment.getAmplitude())); in serializeWaveformEffect()
127 VibrationEffectSegment segment, @XmlConstants.Flags int flags) in serializePrebakedSegment() argument
129 XmlValidator.checkSerializerCondition(segment instanceof PrebakedSegment, in serializePrebakedSegment()
130 "Unsupported segment for predefined effect %s", segment); in serializePrebakedSegment()
132 PrebakedSegment prebaked = (PrebakedSegment) segment; in serializePrebakedSegment()
151 VibrationEffectSegment segment) throws XmlSerializerException { in serializePrimitiveSegment() argument
152 XmlValidator.checkSerializerCondition(segment instanceof PrimitiveSegment, in serializePrimitiveSegment()
[all …]
DSerializedVibrationEffect.java44 SerializedVibrationEffect(@NonNull SerializedSegment segment) { in SerializedVibrationEffect() argument
45 requireNonNull(segment); in SerializedVibrationEffect()
46 mSegments = new SerializedSegment[]{ segment }; in SerializedVibrationEffect()
59 for (SerializedSegment segment : mSegments) { in deserialize()
60 segment.deserializeIntoComposition(composition); in deserialize()
75 for (SerializedSegment segment : mSegments) { in writeContent()
76 segment.write(serializer); in writeContent()
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/
DStepSegmentTest.java181 StepSegment segment = in testVibrationFeaturesSupport_zeroAmplitude_supported() local
185 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_zeroAmplitude_supported()
189 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_zeroAmplitude_supported()
194 StepSegment segment = in testVibrationFeaturesSupport_maxAmplitude_supported() local
198 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_maxAmplitude_supported()
202 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_maxAmplitude_supported()
207 StepSegment segment = in testVibrationFeaturesSupport_defaultAmplitude_supported() local
214 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_defaultAmplitude_supported()
218 assertTrue(segment.areVibrationFeaturesSupported(info)); in testVibrationFeaturesSupport_defaultAmplitude_supported()
239 StepSegment segment = in testVibrationFeaturesSupport_zeroFrequency_supported() local
[all …]
/frameworks/rs/script_api/
DScanner.cpp45 void Scanner::readUpTo(char delimiter, string* segment) { in readUpTo() argument
51 segment->push_back((char)c); in readUpTo()
58 void Scanner::readRestOfLine(string* segment) { in readRestOfLine() argument
64 segment->push_back((char)c); in readRestOfLine()
DScanner.h48 void readUpTo(char delimiter, std::string* segment);
52 void readRestOfLine(std::string* segment);
/frameworks/av/media/module/codecs/g711/decoder/
Dg711DecMlaw.cpp28 int32_t segment = exponent + 1; in DecodeMLaw() local
31 int32_t step = 4 << segment; in DecodeMLaw()
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
DPathIteratorPerfTest.java62 PathIterator.Segment segment = iterator.next(); in testNextSegmentImpl() local
63 while (segment.getVerb() != VERB_DONE) { in testNextSegmentImpl()
64 segment = iterator.next(); in testNextSegmentImpl()
/frameworks/base/core/java/android/os/
DVibrationEffect.java721 Composed(@NonNull VibrationEffectSegment segment) { in Composed() argument
722 this(Arrays.asList(segment), /* repeatIndex= */ -1); in Composed()
792 VibrationEffectSegment segment = mSegments.get(i); in validate() local
793 segment.validate(); in validate()
795 hasNonZeroDuration |= segment.getDuration() != 0; in validate()
828 for (VibrationEffectSegment segment : mSegments) { in areVibrationFeaturesSupported()
829 if (!segment.areVibrationFeaturesSupported(vibratorInfo)) { in areVibrationFeaturesSupported()
997 VibrationEffectSegment segment) { in castToValidStepSegmentForOffOnTimingsOrNull() argument
998 if (!(segment instanceof StepSegment)) { in castToValidStepSegmentForOffOnTimingsOrNull()
1002 StepSegment stepSegment = (StepSegment) segment; in castToValidStepSegmentForOffOnTimingsOrNull()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java356 int segment = (0xFF & pdu[index++]); // >= 0 in processCdmaWapPdu() local
358 if (segment >= totalSegments) { in processCdmaWapPdu()
359 loge("WDP bad segment #" + segment + " expecting 0-" + (totalSegments - 1)); in processCdmaWapPdu()
366 if (segment == 0) { in processCdmaWapPdu()
384 + ", ID = " + referenceNumber + ", segment# = " + segment + '/' + totalSegments); in processCdmaWapPdu()
393 segment, totalSegments, true, HexDump.toHexString(userData), in processCdmaWapPdu()
/frameworks/base/libs/hwui/apex/
DLayoutlibLoader.cpp150 string segment; in parseCsv() local
151 while(getline(stream, segment, ',')) in parseCsv()
153 result.push_back(segment); in parseCsv()
/frameworks/libs/binary_translation/exec_region/
Dsections.ld31 * next PT_LOAD segment from mapping over .plt section removing
51 * GNU_RELRO segment from mprotecting writable flag away
/frameworks/av/services/camera/libcameraservice/api1/client2/
DJpegProcessor.cpp328 typedef struct segment { struct
386 segment_t *segment = (segment_t*)(jpegBuffer + size); in findJpegSize() local
387 uint8_t type = checkJpegMarker(segment->marker); in findJpegSize()
396 size_t length = ntohs(segment->length); in findJpegSize()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java161 String segment = url.getPathSegments().get(1); in update() local
162 rowId = Long.parseLong(segment); in update()
/frameworks/native/services/surfaceflinger/Utils/
DOverlayUtils.h86 static void drawSegment(Segment segment, int left, SkColor color, SkCanvas& canvas) { in drawSegment() argument
88 switch (segment) { in drawSegment()

12