/external/exoplayer/tree/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | HlsMediaPlaylistParserTest.java | 89 List<Segment> segments = mediaPlaylist.segments; in parseMediaPlaylist() local 90 assertThat(segments).isNotNull(); in parseMediaPlaylist() 91 assertThat(segments).hasSize(5); in parseMediaPlaylist() 93 Segment segment = segments.get(0); in parseMediaPlaylist() 104 segment = segments.get(1); in parseMediaPlaylist() 115 segment = segments.get(2); in parseMediaPlaylist() 125 segment = segments.get(3); in parseMediaPlaylist() 138 segment = segments.get(4); in parseMediaPlaylist() 175 assertThat(playlist.segments.get(0).drmInitData).isNull(); in parseSampleAesMethod() 177 assertThat(playlist.segments.get(1).drmInitData.get(0).matches(C.WIDEVINE_UUID)).isTrue(); in parseSampleAesMethod() [all …]
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | SegmentedByteString.java | 52 transient final byte[][] segments; field in SegmentedByteString 71 this.segments = new byte[segmentCount][]; in SegmentedByteString() 76 segments[segmentCount] = s.data; in SegmentedByteString() 79 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString() 126 checkOffsetAndCount(directory[segments.length - 1], pos, 1); in getByte() 129 int segmentPos = directory[segment + segments.length]; in getByte() 130 return segments[segment][pos - segmentOffset + segmentPos]; in getByte() 136 int i = Arrays.binarySearch(directory, 0, segments.length, pos + 1); in segment() 141 return directory[segments.length - 1]; in size() 145 byte[] result = new byte[directory[segments.length - 1]]; in toByteArray() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | SegmentedByteString.java | 51 transient final byte[][] segments; field in SegmentedByteString 70 this.segments = new byte[segmentCount][]; in SegmentedByteString() 75 segments[segmentCount] = s.data; in SegmentedByteString() 78 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString() 125 checkOffsetAndCount(directory[segments.length - 1], pos, 1); in getByte() 128 int segmentPos = directory[segment + segments.length]; in getByte() 129 return segments[segment][pos - segmentOffset + segmentPos]; in getByte() 135 int i = Arrays.binarySearch(directory, 0, segments.length, pos + 1); in segment() 140 return directory[segments.length - 1]; in size() 144 byte[] result = new byte[directory[segments.length - 1]]; in toByteArray() [all …]
|
/external/python/cryptography/docs/development/custom-vectors/arc4/ |
D | verify_arc4.go | 69 var segments []string 74 segments = strings.Split(scanner.Text(), " = ") 77 case strings.ToUpper(segments[0]) == "COUNT": 85 vector = &vectorArgs{count: segments[1]} 86 case strings.ToUpper(segments[0]) == "OFFSET": 87 vector.offset, err = strconv.ParseUint(segments[1], 10, 64) 91 case strings.ToUpper(segments[0]) == "KEY": 92 vector.key = segments[1] 93 case strings.ToUpper(segments[0]) == "PLAINTEXT": 94 vector.plaintext = segments[1] [all …]
|
/external/tensorflow/tensorflow/python/ops/signal/ |
D | reconstruction_ops.py | 96 segments = -(-frame_length // frame_step) # Divide and round up. 106 paddings = [[0, segments], [0, segments * frame_step - frame_length]] 118 shape = full_shape([frames + segments, segments, frame_step]) 131 shape = full_shape([(frames + segments) * segments, frame_step]) 136 signal = signal[..., :(frames + segments - 1) * segments, :] 142 shape = full_shape([segments, (frames + segments - 1), frame_step]) 149 shape = full_shape([(frames + segments - 1) * frame_step])
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/ |
D | SegmentDownloader.java | 119 List<Segment> segments = getSegments(dataSource, manifest, /* allowIncompleteList= */ false); in download() local 120 Collections.sort(segments); in download() 121 mergeSegments(segments, dataSource.getCacheKeyFactory()); in download() 124 int totalSegments = segments.size(); in download() 128 for (int i = segments.size() - 1; i >= 0; i--) { in download() 129 Segment segment = segments.get(i); in download() 140 segments.remove(i); in download() 162 for (int i = 0; i < segments.size(); i++) { in download() 165 segments.get(i).dataSpec, in download() 193 List<Segment> segments = getSegments(dataSource, manifest, true); in remove() local [all …]
|
/external/rust/crates/syn/1.0.7/src/ |
D | path.rs | 11 pub segments: Punctuated<PathSegment, Token![::]>, 22 segments: Punctuated::new(), in from() 24 path.segments.push_value(segment.into()); in from() 395 segments: { in parse_mod_style() 396 let mut segments = Punctuated::new(); in parse_mod_style() localVariable 408 segments.push_value(PathSegment::from(ident)); in parse_mod_style() 413 segments.push_punct(punct); in parse_mod_style() 415 if segments.is_empty() { in parse_mod_style() 417 } else if segments.trailing_punct() { in parse_mod_style() 420 segments in parse_mod_style() [all …]
|
/external/rust/crates/syn/0.15.42/src/ |
D | path.rs | 11 pub segments: Punctuated<PathSegment, Token![::]>, 22 segments: Punctuated::new(), in from() 24 path.segments.push_value(segment.into()); in from() 395 segments: { in parse_mod_style() 396 let mut segments = Punctuated::new(); in parse_mod_style() localVariable 408 segments.push_value(PathSegment::from(ident)); in parse_mod_style() 413 segments.push_punct(punct); in parse_mod_style() 415 if segments.is_empty() { in parse_mod_style() 417 } else if segments.trailing_punct() { in parse_mod_style() 420 segments in parse_mod_style() [all …]
|
/external/python/cryptography/docs/development/custom-vectors/hkdf/ |
D | verify_hkdf.go | 39 var segments []string 45 segments = strings.Split(scanner.Text(), " = ") 48 case strings.ToUpper(segments[0]) == "L": 49 l, err = strconv.ParseUint(segments[1], 10, 64) 53 case strings.ToUpper(segments[0]) == "IKM": 54 ikm = segments[1] 55 case strings.ToUpper(segments[0]) == "OKM": 56 okm = segments[1]
|
/external/python/cryptography/docs/development/custom-vectors/cast5/ |
D | verify_cast5.go | 121 var segments []string 126 segments = strings.Split(scanner.Text(), " = ") 129 case strings.ToUpper(segments[0]) == "COUNT": 137 vector = &vectorArgs{count: segments[1]} 138 case strings.ToUpper(segments[0]) == "IV": 139 vector.iv = segments[1][:16] 140 case strings.ToUpper(segments[0]) == "KEY": 141 vector.key = segments[1] 142 case strings.ToUpper(segments[0]) == "PLAINTEXT": 143 vector.plaintext = segments[1] [all …]
|
/external/u-boot/arch/arm/mach-rockchip/ |
D | make_fit_atf.py | 95 def append_conf_section(file, cnt, dtname, segments): argument 100 if segments > 1: 102 for i in range(1, segments): 104 if i != (segments - 1): 108 if segments <= 1: 114 def append_conf_node(file, dtbs, segments): argument 121 append_conf_section(file, cnt, dtname, segments) 127 segments = unpack_elf(uboot_file_name) 128 if len(segments) != 1: 130 index, entry, p_paddr, data = segments[0] [all …]
|
/external/v8/src/objects/ |
D | js-segments.cc | 46 Handle<JSSegments> segments = Handle<JSSegments>::cast(result); in Create() local 47 segments->set_flags(0); in Create() 50 segments->set_icu_break_iterator(*managed_break_iterator); in Create() 51 segments->set_granularity(segmenter->granularity()); in Create() 54 segments->set_unicode_string(*unicode_string); in Create() 57 return segments; in Create() 62 Handle<JSSegments> segments, in Containing() argument 65 int32_t len = segments->unicode_string().raw()->length(); in Containing() 74 n = segments->unicode_string().raw()->getChar32Start(n); in Containing() 76 icu::BreakIterator* break_iterator = segments->icu_break_iterator().raw(); in Containing() [all …]
|
/external/elfutils/src/ |
D | findtextrel.c | 41 struct segments struct 91 static void check_rel (size_t nsegments, struct segments segments[nsegments], 307 struct segments *segments in process_file() local 308 = (struct segments *) malloc (nsegments_max * sizeof (segments[0])); in process_file() 309 if (segments == NULL) in process_file() 336 segments in process_file() 337 = (struct segments *) realloc (segments, in process_file() 339 * sizeof (segments[0])); in process_file() 340 if (segments == NULL) in process_file() 350 segments[nsegments].from = phdr->p_vaddr; in process_file() [all …]
|
/external/skqp/src/gpu/ops/ |
D | GrAAConvexPathRenderer.cpp | 66 static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument 69 int count = segments.count(); in center_of_mass() 75 p0 = segments[0].endPt(); in center_of_mass() 81 pj = segments[1].endPt() - p0; in center_of_mass() 84 pj = segments[i + 1].endPt() - p0; in center_of_mass() 99 const SkPoint& pt = segments[i].endPt(); in center_of_mass() 116 static bool compute_vectors(SegmentArray* segments, in compute_vectors() argument 121 if (!center_of_mass(*segments, fanPt)) { in compute_vectors() 124 int count = segments->count(); in compute_vectors() 138 Segment& sega = (*segments)[a]; in compute_vectors() [all …]
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | device_errors.py | 58 segments = ['adb %s: failed ' % adb_cmd] 60 segments.append('with exit status %s ' % self.status) 62 segments.append('and output:\n') 63 segments.extend('- %s\n' % line for line in output.splitlines()) 65 segments.append('and no output.') 66 message = ''.join(segments) 122 segments = ['shell command run via adb failed on the device:\n', 124 segments.append(' exit status: %s\n' % status) 126 segments.append(' output:\n') 131 segments.extend(' - %s\n' % line for line in output_lines) [all …]
|
/external/testng/src/test/java/test/ant/ |
D | TestCommandLineArgs.java | 23 String[] segments = path.split("[/\\\\]", -1); in testUnixPathResolution() local 25 assertEquals(4, segments.length); in testUnixPathResolution() 26 assertEquals("wee", segments[1]); in testUnixPathResolution() 34 String[] segments = path.split("[/\\\\]", -1); in testDOSPathResolution() local 36 assertEquals(5, segments.length); in testDOSPathResolution() 37 assertEquals("com", segments[2]); // because c: is actually \\ which will be split twice in testDOSPathResolution()
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | HlsMediaPlaylist.java | 226 public final List<Segment> segments; field in HlsMediaPlaylist 264 List<Segment> segments) { in HlsMediaPlaylist() argument 276 this.segments = Collections.unmodifiableList(segments); in HlsMediaPlaylist() 277 if (!segments.isEmpty()) { in HlsMediaPlaylist() 278 Segment last = segments.get(segments.size() - 1); in HlsMediaPlaylist() 306 int segmentCount = segments.size(); in isNewerThan() 307 int otherSegmentCount = other.segments.size(); in isNewerThan() 344 segments); in copyWith() 370 segments); in copyWithEndTag()
|
/external/skia/src/gpu/ops/ |
D | GrAAConvexPathRenderer.cpp | 66 static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument 69 int count = segments.count(); in center_of_mass() 75 p0 = segments[0].endPt(); in center_of_mass() 81 pj = segments[1].endPt() - p0; in center_of_mass() 84 pj = segments[i + 1].endPt() - p0; in center_of_mass() 99 const SkPoint& pt = segments[i].endPt(); in center_of_mass() 116 static bool compute_vectors(SegmentArray* segments, in compute_vectors() argument 121 if (!center_of_mass(*segments, fanPt)) { in compute_vectors() 124 int count = segments->count(); in compute_vectors() 138 Segment& sega = (*segments)[a]; in compute_vectors() [all …]
|
/external/python/cpython2/Lib/ |
D | urlparse.py | 279 segments = bpath.split('/')[:-1] + path.split('/') 281 if segments[-1] == '.': 282 segments[-1] = '' 283 while '.' in segments: 284 segments.remove('.') 287 n = len(segments) - 1 289 if (segments[i] == '..' 290 and segments[i-1] not in ('', '..')): 291 del segments[i-1:i+1] 296 if segments == ['', '..']: [all …]
|
/external/llvm/lib/CodeGen/ |
D | LiveInterval.cpp | 66 if (I == segments().end()) { in createDeadDef() 88 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 93 if (segments().empty()) in extendInBlock() 97 if (I == segments().begin()) in extendInBlock() 112 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo() 118 for (; MergeTo != segments().end() && NewEnd >= MergeTo->end; ++MergeTo) in extendSegmentEndTo() 126 if (MergeTo != segments().end() && MergeTo->start <= I->end && in extendSegmentEndTo() 133 segments().erase(std::next(I), MergeTo); in extendSegmentEndTo() 140 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentStartTo() 147 if (MergeTo == segments().begin()) { in extendSegmentStartTo() [all …]
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeDataSet.java | 136 private final ArrayList<Segment> segments; field in FakeDataSet.FakeData 142 this.segments = new ArrayList<>(); in FakeData() 166 segments.add(new Segment(data, getLastSegment())); in appendReadData() 176 segments.add(new Segment(length, getLastSegment())); in appendReadData() 184 segments.add(new Segment(exception, getLastSegment())); in appendReadError() 192 segments.add(new Segment(action, getLastSegment())); in appendReadAction() 199 for (Segment segment : segments) { in getData() 213 return segments; in getSegments() 223 int count = segments.size(); in getLastSegment() 224 return count > 0 ? segments.get(count - 1) : null; in getLastSegment()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | LiveInterval.cpp | 94 if (I == segments().end()) { in createDeadDef() 117 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef() 122 if (segments().empty()) in extendInBlock() 126 if (I == segments().begin()) in extendInBlock() 138 if (segments().empty()) in extendInBlock() 142 if (I == segments().begin()) in extendInBlock() 160 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo() 166 for (; MergeTo != segments().end() && NewEnd >= MergeTo->end; ++MergeTo) in extendSegmentEndTo() 174 if (MergeTo != segments().end() && MergeTo->start <= I->end && in extendSegmentEndTo() 181 segments().erase(std::next(I), MergeTo); in extendSegmentEndTo() [all …]
|
/external/fonttools/Lib/fontTools/pens/ |
D | pointPen.py | 68 def _flushContour(self, segments): argument 105 segments = [("move", [(pt, smooth, name, kwargs)])] 106 self._flushContour(segments) 108 segments = [] 113 segments.append(("move", [(pt, smooth, name, kwargs)])) 138 segments.append((segmentType, currentSegment)) 141 self._flushContour(segments) 159 def _flushContour(self, segments): argument 160 assert len(segments) >= 1 162 if segments[0][0] == "move": [all …]
|
/external/rust/crates/remain/src/ |
D | compare.rs | 6 pub segments: Vec<Ident>, field 18 for (lhs, rhs) in self.segments.iter().zip(&other.segments) { in cmp() 25 self.segments.len().cmp(&other.segments.len()) in cmp()
|
/external/protobuf/src/google/protobuf/io/ |
D | io_win32.cc | 158 std::vector<wstring> segments; in normalize() local 174 if (!segments.empty() && in normalize() 175 (!has_drive_letter(segments[0].c_str()) || segments.size() > 1)) { in normalize() 176 segments.pop_back(); in normalize() 179 segments.push_back(segment); in normalize() 189 if (segments.size() == 1 && segments[0].size() == 2 && in normalize() 190 has_drive_letter(segments[0].c_str())) { in normalize() 191 return segments[0] + L'\\'; in normalize() 197 for (int i = 0; i < segments.size(); ++i) { in normalize() 202 result << segments[i]; in normalize()
|