/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); in completeSegmentByteCountOnBufferWithFullSegments() 65 assertEquals(Segment.SIZE * 4, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithFullSegments() 70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 71 assertEquals(Segment.SIZE * 3, buffer.completeSegmentByteCount()); in completeSegmentByteCountOnBufferWithIncompleteTailSegment() 141 int size = (Segment.SIZE / 2) - 1; in moveBytesBetweenBuffersShareSegment() 147 int size = (Segment.SIZE / 2) + 1; in moveBytesBetweenBuffersReassignSegment() 153 int size = 3 * Segment.SIZE + 1; in moveBytesBetweenBuffersMultipleSegments() 155 assertEquals(asList(Segment.SIZE, Segment.SIZE, Segment.SIZE, 1, in moveBytesBetweenBuffersMultipleSegments() 156 Segment.SIZE, Segment.SIZE, Segment.SIZE, 1), segmentSizes); in moveBytesBetweenBuffersMultipleSegments() 175 int writeSize = Segment.SIZE / 2 + 1; in writeSplitSourceBufferLeft() [all …]
|
D | RealBufferedSourceTest.java | 36 source.writeUtf8(repeat('b', Segment.SIZE)); in inputStreamTracksSegments() 41 assertEquals(Segment.SIZE + 2, source.size()); in inputStreamTracksSegments() 45 assertEquals(Segment.SIZE - 1, in.available()); in inputStreamTracksSegments() 49 byte[] data = new byte[Segment.SIZE * 2]; in inputStreamTracksSegments() 50 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); in inputStreamTracksSegments() 51 assertEquals(repeat('b', Segment.SIZE - 1), new String(data, 0, Segment.SIZE - 1, UTF_8)); in inputStreamTracksSegments() 119 source.writeUtf8(repeat('a', Segment.SIZE)); in requireReadsOneSegmentAtATime() 120 source.writeUtf8(repeat('b', Segment.SIZE)); in requireReadsOneSegmentAtATime() 125 assertEquals(Segment.SIZE, source.size()); in requireReadsOneSegmentAtATime() 126 assertEquals(Segment.SIZE, bufferedSource.buffer().size()); in requireReadsOneSegmentAtATime() [all …]
|
D | BufferedSourceTest.java | 148 sink.writeUtf8(repeat('a', Segment.SIZE - 1)); in readShortSplitAcrossMultipleSegments() 150 source.skip(Segment.SIZE - 1); in readShortSplitAcrossMultipleSegments() 176 sink.writeUtf8(repeat('a', Segment.SIZE - 3)); in readIntSplitAcrossMultipleSegments() 180 source.skip(Segment.SIZE - 3); in readIntSplitAcrossMultipleSegments() 208 sink.writeUtf8(repeat('a', Segment.SIZE - 7)); in readLongSplitAcrossMultipleSegments() 213 source.skip(Segment.SIZE - 7); in readLongSplitAcrossMultipleSegments() 277 data.writeUtf8("Hello").writeUtf8(repeat('e', Segment.SIZE)); in readFullyByteArray() 282 byte[] sink = new byte[Segment.SIZE + 5]; in readFullyByteArray() 350 String string = "abcd" + repeat('e', Segment.SIZE); in readByteArray() 362 sink.writeUtf8("abcd").writeUtf8(repeat('e', Segment.SIZE)); in readByteString() [all …]
|
D | RealBufferedSinkTest.java | 46 bufferedSink.writeUtf8(repeat('a', Segment.SIZE - 1)); in bufferedSinkEmitsTailWhenItIsComplete() 49 assertEquals(Segment.SIZE, sink.size()); in bufferedSinkEmitsTailWhenItIsComplete() 56 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 4 - 1)); in bufferedSinkEmitMultipleSegments() 57 assertEquals(Segment.SIZE * 3, sink.size()); in bufferedSinkEmitMultipleSegments() 58 assertEquals(Segment.SIZE - 1, bufferedSink.buffer().size()); in bufferedSinkEmitMultipleSegments() 97 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3)); in completeSegmentsEmitted() 98 assertEquals(Segment.SIZE * 3, sink.size()); in completeSegmentsEmitted() 104 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3 - 1)); in incompleteSegmentsNotEmitted() 105 assertEquals(Segment.SIZE * 2, sink.size()); in incompleteSegmentsNotEmitted() 226 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in writeAllWritesOneSegmentAtATime() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | Segment.java | 33 final class Segment { class 52 Segment next; 55 Segment prev; 57 Segment() { in Segment() method in Segment 63 Segment(Segment shareFrom) { in Segment() method in Segment 68 Segment(byte[] data, int pos, int limit) { in Segment() method in Segment 80 public Segment pop() { in pop() 81 Segment result = next != this ? next : null; in pop() 93 public Segment push(Segment segment) { in push() 109 public Segment split(int byteCount) { in split() [all …]
|
D | SegmentPool.java | 28 static Segment next; 36 static Segment take() { in take() 39 Segment result = next; in take() 42 byteCount -= Segment.SIZE; in take() 46 return new Segment(); // Pool is empty. Don't zero-fill while holding a lock. in take() 49 static void recycle(Segment segment) { in recycle() 53 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. in recycle() 54 byteCount += Segment.SIZE; in recycle()
|
D | Buffer.java | 52 Segment head; 148 Segment s = head; 174 Segment s = head; 181 Segment copy = new Segment(s); 206 Segment s = head; 216 Segment toRecycle = s; 241 Segment tail = writableSegment(1); 242 int maxToCopy = (int) Math.min(byteCount, Segment.SIZE - tail.limit); 264 Segment tail = head.prev; 265 if (tail.limit < Segment.SIZE && tail.owner) { [all …]
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | Segment.java | 34 final class Segment { class 53 Segment next; 56 Segment prev; 58 Segment() { in Segment() method in Segment 64 Segment(Segment shareFrom) { in Segment() method in Segment 69 Segment(byte[] data, int pos, int limit) { in Segment() method in Segment 81 public Segment pop() { in pop() 82 Segment result = next != this ? next : null; in pop() 94 public Segment push(Segment segment) { in push() 110 public Segment split(int byteCount) { in split() [all …]
|
D | SegmentPool.java | 29 static Segment next; 37 static Segment take() { in take() 40 Segment result = next; in take() 43 byteCount -= Segment.SIZE; in take() 47 return new Segment(); // Pool is empty. Don't zero-fill while holding a lock. in take() 50 static void recycle(Segment segment) { in recycle() 54 if (byteCount + Segment.SIZE > MAX_SIZE) return; // Pool is full. in recycle() 55 byteCount += Segment.SIZE; in recycle()
|
D | Buffer.java | 54 Segment head; 150 Segment s = head; 176 Segment s = head; 183 Segment copy = new Segment(s); 208 Segment s = head; 218 Segment toRecycle = s; 243 Segment tail = writableSegment(1); 244 int maxToCopy = (int) Math.min(byteCount, Segment.SIZE - tail.limit); 266 Segment tail = head.prev; 267 if (tail.limit < Segment.SIZE && tail.owner) { [all …]
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSet.java | 80 public static final class Segment { class in FakeDataSet.FakeData 92 private Segment(byte[] data, @Nullable Segment previousSegment) { in Segment() method in FakeDataSet.FakeData.Segment 96 private Segment(int length, @Nullable Segment previousSegment) { in Segment() method in FakeDataSet.FakeData.Segment 100 private Segment(IOException exception, @Nullable Segment previousSegment) { in Segment() method in FakeDataSet.FakeData.Segment 104 private Segment(Runnable action, @Nullable Segment previousSegment) { in Segment() method in FakeDataSet.FakeData.Segment 108 private Segment( in Segment() method in FakeDataSet.FakeData.Segment 113 @Nullable Segment previousSegment) { in Segment() 136 private final ArrayList<Segment> segments; 166 segments.add(new Segment(data, getLastSegment())); in appendReadData() 176 segments.add(new Segment(length, getLastSegment())); in appendReadData() [all …]
|
/external/v8/src/heap/base/ |
D | worklist.h | 45 class Segment; variable 51 void Push(Segment* segment); 52 bool Pop(Segment** segment); 73 void set_top(Segment* segment) { in set_top() 78 Segment* top_ = nullptr; 83 void Worklist<EntryType, SegmentSize>::Push(Segment* segment) { in Push() 92 bool Worklist<EntryType, SegmentSize>::Pop(Segment** segment) { in Pop() 120 Segment* current = top_; in Clear() 122 Segment* tmp = current; in Clear() 133 Segment* prev = nullptr; in Update() [all …]
|
/external/v8/src/heap/ |
D | worklist.h | 110 Segment* tmp = private_pop_segment(task_id); in Pop() 222 class Segment { 226 Segment() : index_(0) {} in Segment() function 263 Segment* next() const { return next_; } in next() 264 void set_next(Segment* segment) { next_ = segment; } in set_next() 267 Segment* next_; 273 Segment* private_push_segment; 274 Segment* private_pop_segment; 284 Segment* temp = top_; in Swap() 292 V8_INLINE void Push(Segment* segment) { in Push() [all …]
|
/external/libaom/libaom/third_party/libwebm/mkvparser/ |
D | mkvparser.h | 67 class Segment; variable 305 static long Create(Segment*, const Info&, long long element_start, 310 Segment* const m_pSegment; 373 Track(Segment*, long long element_start, long long element_size); 508 VideoTrack(Segment*, long long element_start, long long element_size); 512 static long Parse(Segment*, const Info&, long long element_start, 550 AudioTrack(Segment*, long long element_start, long long element_size); 553 static long Parse(Segment*, const Info&, long long element_start, 571 Segment* const m_pSegment; 577 Tracks(Segment*, long long start, long long size, long long element_start, [all …]
|
/external/libvpx/libvpx/third_party/libwebm/mkvparser/ |
D | mkvparser.h | 67 class Segment; variable 305 static long Create(Segment*, const Info&, long long element_start, 310 Segment* const m_pSegment; 373 Track(Segment*, long long element_start, long long element_size); 508 VideoTrack(Segment*, long long element_start, long long element_size); 512 static long Parse(Segment*, const Info&, long long element_start, 550 AudioTrack(Segment*, long long element_start, long long element_size); 553 static long Parse(Segment*, const Info&, long long element_start, 571 Segment* const m_pSegment; 577 Tracks(Segment*, long long start, long long size, long long element_start, [all …]
|
/external/libvpx/libwebm/mkvparser/ |
D | mkvparser.h | 67 class Segment; variable 305 static long Create(Segment*, const Info&, long long element_start, 310 Segment* const m_pSegment; 373 Track(Segment*, long long element_start, long long element_size); 508 VideoTrack(Segment*, long long element_start, long long element_size); 512 static long Parse(Segment*, const Info&, long long element_start, 550 AudioTrack(Segment*, long long element_start, long long element_size); 553 static long Parse(Segment*, const Info&, long long element_start, 571 Segment* const m_pSegment; 577 Tracks(Segment*, long long start, long long size, long long element_start, [all …]
|
/external/v8/src/zone/ |
D | zone-segment.h | 22 class Segment { 27 Segment* next() const { return next_; } in next() 28 void set_next(Segment* const next) { next_ = next; } in set_next() 36 size_t capacity() const { return size_ - sizeof(Segment); } in capacity() 38 Address start() const { return address(sizeof(Segment)); } in start() 50 explicit Segment(size_t size) : size_(size) {} in Segment() function 63 Segment* next_ = nullptr;
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
D | SimplePieChartActivity.java | 26 import com.androidplot.pie.Segment; 40 private Segment s1; 41 private Segment s2; 42 private Segment s3; 43 private Segment s4; 77 s1 = new Segment("s1", 10); in onCreate() 78 s2 = new Segment("s2", 1); in onCreate() 79 s3 = new Segment("s3", 10); in onCreate() 80 s4 = new Segment("s4", 10); in onCreate()
|
/external/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 128 MachO::segment_command_64 Segment; in iterateOnSegments() local 130 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments() 132 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments() 136 Handler(Segment); in iterateOnSegments() 227 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument 231 if (StringRef("__DWARF") == Segment.segname) in transferSegmentAndSections() 234 Segment.fileoff = Segment.filesize = 0; in transferSegmentAndSections() 236 if (StringRef("__LINKEDIT") == Segment.segname) { in transferSegmentAndSections() 237 Segment.fileoff = LinkeditOffset; in transferSegmentAndSections() 238 Segment.filesize = LinkeditSize; in transferSegmentAndSections() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 143 MachO::segment_command_64 Segment; in iterateOnSegments() local 145 Segment = adaptFrom32bits(Obj.getSegmentLoadCommand(LCI)); in iterateOnSegments() 147 Segment = Obj.getSegment64LoadCommand(LCI); in iterateOnSegments() 151 Handler(Segment); in iterateOnSegments() 242 const object::MachOObjectFile::LoadCommandInfo &LCI, SegmentTy Segment, in transferSegmentAndSections() argument 246 if (StringRef("__DWARF") == Segment.segname) in transferSegmentAndSections() 249 Segment.fileoff = Segment.filesize = 0; in transferSegmentAndSections() 251 if (StringRef("__LINKEDIT") == Segment.segname) { in transferSegmentAndSections() 252 Segment.fileoff = LinkeditOffset; in transferSegmentAndSections() 253 Segment.filesize = LinkeditSize; in transferSegmentAndSections() [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_bidi.h | 19 struct Segment { struct 39 const Segment& GetSegmentInfo() const { return m_LastSegment; } in GetSegmentInfo() 44 Segment m_CurrentSegment; 45 Segment m_LastSegment; 50 using const_iterator = std::vector<CFX_BidiChar::Segment>::const_iterator; 66 std::vector<CFX_BidiChar::Segment> m_Order;
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/offline/ |
D | HlsDownloader.java | 98 protected List<Segment> getSegments( in getSegments() 109 ArrayList<Segment> segments = new ArrayList<>(); in getSegments() 112 segments.add(new Segment(/* startTimeUs= */ 0, mediaPlaylistDataSpec)); in getSegments() 123 HlsMediaPlaylist.Segment lastInitSegment = null; in getSegments() 124 List<HlsMediaPlaylist.Segment> hlsSegments = mediaPlaylist.segments; in getSegments() 126 HlsMediaPlaylist.Segment segment = hlsSegments.get(i); in getSegments() 127 HlsMediaPlaylist.Segment initSegment = segment.initializationSegment; in getSegments() 152 HlsMediaPlaylist.Segment segment, in addSegment() 154 ArrayList<Segment> out) { in addSegment() 160 out.add(new Segment(startTimeUs, SegmentDownloader.getCompressibleDataSpec(keyUri))); in addSegment() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 29 import com.google.common.cache.LocalCache.Segment; 108 Segment<K, V> segment = map.segmentFor(hash); in forceExpandSegment() 135 for (Segment<?, ?> segment : map.segments) { in drainRecencyQueues() 141 static void drainRecencyQueue(Segment<?, ?> segment) { in drainRecencyQueue() argument 157 for (LocalCache.Segment<?, ?> segment : cchm.segments) { in drainReferenceQueues() 162 static void drainReferenceQueue(LocalCache.Segment<?, ?> segment) { in drainReferenceQueue() argument 174 for (Segment<?, ?> segment : map.segments) { in getTotalSegmentSize() 193 for (Segment<?, ?> segment : cchm.segments) { in checkValidState() 223 for (Segment<?, ?> segment : cchm.segments) { in checkExpiration() 286 for (Segment<?, ?> segment : map.segments) { [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheTesting.java | 29 import com.google.common.cache.LocalCache.Segment; 108 Segment<K, V> segment = map.segmentFor(hash); in forceExpandSegment() 135 for (Segment<?, ?> segment : map.segments) { in drainRecencyQueues() 141 static void drainRecencyQueue(Segment<?, ?> segment) { in drainRecencyQueue() argument 157 for (LocalCache.Segment<?, ?> segment : cchm.segments) { in drainReferenceQueues() 162 static void drainReferenceQueue(LocalCache.Segment<?, ?> segment) { in drainReferenceQueue() argument 174 for (Segment<?, ?> segment : map.segments) { in getTotalSegmentSize() 193 for (Segment<?, ?> segment : cchm.segments) { in checkValidState() 223 for (Segment<?, ?> segment : cchm.segments) { in checkExpiration() 286 for (Segment<?, ?> segment : map.segments) { [all …]
|
/external/skia/include/core/ |
D | SkContourMeasure.h | 57 struct Segment { struct 66 static const Segment* Next(const Segment* seg) { in Next() argument 76 const SkTDArray<Segment> fSegments; 82 SkContourMeasure(SkTDArray<Segment>&& segs, SkTDArray<SkPoint>&& pts, 86 const Segment* distanceToSegment(SkScalar distance, SkScalar* t) const; 129 SkTDArray<SkContourMeasure::Segment> fSegments;
|