/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/createtzs2protodatafile/data/ |
D | tzs2datafile.prototxt | 23 ranges { 28 ranges { 33 ranges { 38 ranges { 43 ranges { 48 ranges { 53 ranges { 58 ranges { 63 ranges { 68 ranges { [all …]
|
D | merged_tzs2ranges.prototxt | 6 ranges { 11 ranges { 16 ranges { 21 ranges { 26 ranges { 31 ranges { 36 ranges { 41 ranges { 46 ranges { 51 ranges { [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2cellunions_to_tzs2ranges/data/ |
D | Europe_London_tzs2ranges.prototxt | 6 ranges { 11 ranges { 16 ranges { 21 ranges { 26 ranges { 31 ranges { 36 ranges { 41 ranges { 46 ranges { 51 ranges { [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/mergetzs2ranges/data/ |
D | Europe_London_tzs2ranges.prototxt | 6 ranges { 11 ranges { 16 ranges { 21 ranges { 26 ranges { 31 ranges { 36 ranges { 41 ranges { 46 ranges { 51 ranges { [all …]
|
D | Europe_Paris_tzs2ranges.prototxt | 6 ranges { 11 ranges { 16 ranges { 21 ranges { 26 ranges { 31 ranges { 36 ranges { 41 ranges { 46 ranges { 51 ranges { [all …]
|
D | Europe_Isle_of_Man_tzs2ranges.prototxt | 6 ranges { 11 ranges { 16 ranges { 21 ranges { 26 ranges { 31 ranges { 36 ranges { 41 ranges { 46 ranges { 51 ranges { [all …]
|
/packages/providers/MediaProvider/jni/ |
D | RedactionInfo.cpp | 32 static void mergeOverlappingRedactionRanges(vector<RedactionRange>& ranges) { in mergeOverlappingRedactionRanges() argument 33 if (ranges.size() == 0) return; in mergeOverlappingRedactionRanges() 34 int newRangesSize = ranges.size(); in mergeOverlappingRedactionRanges() 35 for (int i = 0; i < ranges.size() - 1; ++i) { in mergeOverlappingRedactionRanges() 36 if (ranges[i].second >= ranges[i + 1].first) { in mergeOverlappingRedactionRanges() 37 ranges[i + 1].first = ranges[i].first; in mergeOverlappingRedactionRanges() 38 ranges[i + 1].second = std::max(ranges[i].second, ranges[i + 1].second); in mergeOverlappingRedactionRanges() 40 ranges[i].first = LONG_MAX; in mergeOverlappingRedactionRanges() 41 ranges[i].second = LONG_MAX; in mergeOverlappingRedactionRanges() 45 if (newRangesSize < ranges.size()) { in mergeOverlappingRedactionRanges() [all …]
|
D | RedactionInfoTest.cpp | 48 off64_t ranges[2] = { in TEST() local 53 RedactionInfo info(1, ranges); in TEST() 106 off64_t ranges[4] = {10, 20, 30, 40}; in TEST() local 108 RedactionInfo info = RedactionInfo(2, ranges); in TEST() 158 off64_t ranges[4] = {10, 20, 30, 40}; in TEST() local 160 RedactionInfo info = RedactionInfo(2, ranges); in TEST() 193 off64_t ranges[6] = {30, 40, 50, 60, 10, 20}; in TEST() local 195 RedactionInfo info = RedactionInfo(3, ranges); in TEST() 235 off64_t ranges[8] = {30, 40, 10, 20, 25, 30, 50, 60}; in TEST() local 237 RedactionInfo info = RedactionInfo(4, ranges); in TEST() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/ |
D | Capabilities.kt | 27 val ranges: List<Capability.Range> in <lambda>() constant 32 ranges = capabilities.map { it -> it.toRange() } in <lambda>() 33 require(ranges.distinctBy { it.min.tag }.size == capabilities.size) { in <lambda>() 53 val isEmpty = ranges.isEmpty() in <lambda>() 61 return ranges.find { it.isCompatible(capability) }?.contains(capability) ?: false in <lambda>() 68 return other.ranges.all { otherRange -> contains(otherRange) } in <lambda>() 72 return ranges.size == other.ranges.size && other.ranges.all { hasEquivalent(it) } in <lambda>() 76 return ranges.any { it.isCompatible(capability) && it.isEquivalent(capability) } in <lambda>() 79 override fun toString(): String = "Capabilities($ranges)" in <lambda>() 82 return ranges.find { it.min is T }?.let { in <lambda>() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastConfigService.java | 381 List<CellBroadcastChannelRange> ranges = channelManager.getCellBroadcastChannelRanges( in getCellBroadcastChannelsConfig() local 383 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig() 392 ranges = channelManager.getCellBroadcastChannelRanges( in getCellBroadcastChannelsConfig() 394 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig() 403 ranges = channelManager.getCellBroadcastChannelRanges( in getCellBroadcastChannelsConfig() 405 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig() 414 ranges = channelManager.getCellBroadcastChannelRanges( in getCellBroadcastChannelsConfig() 416 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig() 425 ranges = channelManager.getCellBroadcastChannelRanges( in getCellBroadcastChannelsConfig() 427 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelsConfig() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | IsoInterfaceTest.java | 56 final long[] ranges = mp4.getBoxRanges(0x746b6864); // tkhd in testRepeated() local 57 assertThat(ranges.length).isEqualTo(4); in testRepeated() 58 assertThat(ranges[0]).isEqualTo(105534 + 8); in testRepeated() 59 assertThat(ranges[1]).isEqualTo(105534 + 92); in testRepeated() 60 assertThat(ranges[2]).isEqualTo(118275 + 8); in testRepeated() 61 assertThat(ranges[3]).isEqualTo(118275 + 92); in testRepeated() 69 final long[] ranges = mp4.getBoxRanges(0xa978797a); // ?xyz in testGps() local 70 assertThat(ranges.length).isEqualTo(2); in testGps() 71 assertThat(ranges[0]).isEqualTo(3369 + 8); in testGps() 72 assertThat(ranges[1]).isEqualTo(3369 + 30); in testGps() [all …]
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/ |
D | AbstractSdkLevelSupportedRule.java | 115 Set<Range> ranges = new HashSet<>(); 126 ranges.add(testRange.range); 133 ranges.add(testClassRange.range); 142 Range mergedRange = Range.merge(ranges); 175 Set<Range> ranges = new HashSet<>(); 177 ranges.add(mDefaultRequiredRange); 183 ranges.add(Range.forAtLeast(Level.R.getLevel())); 187 ranges.add(Range.forAtLeast(Level.S.getLevel())); 191 ranges.add(Range.forAtLeast(Level.S2.getLevel())); 195 ranges.add(Range.forAtLeast(Level.T.getLevel())); [all …]
|
D | AndroidSdk.java | 171 static Range merge(Range... ranges) { in merge() argument 172 return merge(Arrays.asList(ranges)); in merge() 175 static Range merge(Collection<Range> ranges) { in merge() argument 176 Objects.requireNonNull(ranges, "ranges cannot be null"); in merge() 177 if (ranges.isEmpty()) { in merge() 182 for (Range range : ranges) { in merge() 184 throw new IllegalArgumentException("ranges cannot have null range: " + ranges); in merge()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | UidRange.java | 146 public static boolean containsUid(Collection<UidRange> ranges, int uid) { in containsUid() argument 147 if (ranges == null) return false; in containsUid() 148 for (UidRange range : ranges) { in containsUid() 160 public static ArraySet<UidRange> fromIntRanges(@Nullable Set<Range<Integer>> ranges) { in fromIntRanges() argument 161 if (null == ranges) return null; in fromIntRanges() 164 for (Range<Integer> range : ranges) { in fromIntRanges() 174 public static ArraySet<Range<Integer>> toIntRanges(@Nullable Set<UidRange> ranges) { in toIntRanges() argument 175 if (null == ranges) return null; in toIntRanges() 178 for (UidRange range : ranges) { in toIntRanges()
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/s2/ |
D | SortedS2Ranges.java | 41 private SortedS2Ranges(int s2Level, List<T> ranges) { in SortedS2Ranges() argument 43 mRanges = Collections.unmodifiableList(new ArrayList<>(ranges)); in SortedS2Ranges() 53 int s2Level, T... ranges) { in createFromSorted() argument 54 return createFromSorted(s2Level, Arrays.asList(ranges)); in createFromSorted() 64 int s2Level, List<T> ranges) { in createFromSorted() argument 67 for (S2LevelRange currentRange : ranges) { in createFromSorted() 88 return new SortedS2Ranges<>(s2Level, ranges); in createFromSorted()
|
/packages/services/Telephony/utils/satellite/s2storage/src/test/java/com/android/telephony/sats2range/ |
D | SatS2RangeFileReaderTest.java | 58 List<S2LevelRange> ranges = new ArrayList<>(); in findEntryByCellId() local 59 ranges.add(expectedRange1); in findEntryByCellId() 60 ranges.add(expectedRange2); in findEntryByCellId() 61 ranges.add(expectedRange3); in findEntryByCellId() 62 satS2RangeFileWriter.createSortedSuffixBlocks(ranges.iterator()); in findEntryByCellId()
|
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/ |
D | Policy.kt | 63 val ranges = mutableListOf<Capability>() in toCapabilities() constant 64 ranges.add( in toCapabilities() 71 ranges.add(Capability.Encryption(true)) in toCapabilities() 73 ranges.add(Capability.Ttl.Minutes((maxAgeMs / Capability.Ttl.MILLIS_IN_MIN).toInt())) in toCapabilities() 74 Capabilities(ranges) in toCapabilities()
|
/packages/modules/GeoTZ/data_pipeline/src/debug/java/com/android/timezone/location/data_pipeline/tools/ |
D | PrintTzS2RangeStats.java | 58 TzS2Ranges ranges = TzS2Ranges.load(mInputFile, mStorageFormat); in printMergedRangeCounts() local 59 printTzS2RangeCounts(ranges); in printMergedRangeCounts() 62 private void printTzS2RangeCounts(TzS2Ranges ranges) { in printTzS2RangeCounts() argument 67 for (TzS2Range range : ranges.getAll()) { in printTzS2RangeCounts()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastConfigServiceTest.java | 180 private void setCellBroadcastRange(int subId, List<CbConfig> ranges) throws Exception { in setCellBroadcastRange() argument 190 method.invoke(mConfigService, subId, ranges); in setCellBroadcastRange() 199 List<CbConfig> ranges = new ArrayList<>(); in testEnableCellBroadcastRange() local 200 ranges.add(new CbConfig(10, 20, 1, true)); in testEnableCellBroadcastRange() 201 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testEnableCellBroadcastRange() 209 ranges.clear(); in testEnableCellBroadcastRange() 210 ranges.add(new CbConfig(10, 20, 1, true)); in testEnableCellBroadcastRange() 211 setCellBroadcastRange(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, ranges); in testEnableCellBroadcastRange() 223 List<CbConfig> ranges = new ArrayList<>(); in testDisableCellBroadcastRange() local 224 ranges.add(new CbConfig(10, 20, 1, false)); in testDisableCellBroadcastRange() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 207 vector<pair<int, int>> ranges; in computeRanges() local 212 return ranges; in computeRanges() 225 ranges.push_back(std::make_pair(start, end)); in computeRanges() 236 ranges.push_back(std::make_pair(start, end)); in computeRanges() 266 ranges.push_back(std::make_pair(start, i)); in computeRanges() 272 ranges.push_back(std::make_pair(start, end)); in computeRanges() 280 ranges.push_back(std::make_pair(start, end)); in computeRanges() 283 return ranges; in computeRanges() 297 const vector<pair<int, int>> ranges = in matchesSimple() local 300 if (ranges.empty()) { in matchesSimple() [all …]
|
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/ |
D | AndroidSdkRangeTest.java | 254 private void mergeValidAndAssertResult(Range expectedRange, Range... ranges) { in mergeValidAndAssertResult() argument 257 expectedRange, Arrays.toString(ranges)); in mergeValidAndAssertResult() 258 Range actualRange = merge(ranges); in mergeValidAndAssertResult() 259 expect.withMessage("merge(%s)", Arrays.toString(ranges)).that(actualRange).isNotNull(); in mergeValidAndAssertResult() 260 expect.withMessage("merge(%s)", Arrays.toString(ranges)) in mergeValidAndAssertResult() 265 private void mergeInvalidAndAssertThrows(Range... ranges) { in mergeInvalidAndAssertThrows() argument 266 mLog.d("mergeInvalidAndAssertThrows(): ranges=%s", Arrays.toString(ranges)); in mergeInvalidAndAssertThrows() 268 assertThrows(IllegalArgumentException.class, () -> merge(ranges)); in mergeInvalidAndAssertThrows()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | RedactionUtils.java | 143 final long[] ranges = iso.getBoxRanges(box); in getRedactionRanges() local 144 for (int i = 0; i < ranges.length; i += 2) { in getRedactionRanges() 145 long boxTypeOffset = ranges[i] - 4; in getRedactionRanges() 147 res.add(ranges[i + 1]); in getRedactionRanges()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/ |
D | CSSatelliteNetworkTest.kt | 193 private fun toUidRangeStableParcels(ranges: Set<UidRange>): Array<UidRangeParcel?> { in toUidRangeStableParcels() 194 val stableRanges = arrayOfNulls<UidRangeParcel>(ranges.size) in toUidRangeStableParcels() 195 for ((index, range) in ranges.withIndex()) { in toUidRangeStableParcels() 202 val ranges = ArraySet<UidRange>() in uidRangesForUids() constant 204 ranges.add(UidRange(uid, uid)) in uidRangesForUids() 206 return ranges in uidRangesForUids()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | config.rs | 200 ranges: [Option<NonEmptyRange>; Entry::COUNT], field 247 let mut ranges: [Option<NonEmptyRange>; Entry::COUNT] = [None; Entry::COUNT]; in new() localVariable 264 ranges[entry as usize] = NonEmptyRange::new( in new() 270 ranges[Entry::Bcc as usize].ok_or(Error::MissingEntry(Entry::Bcc))?; in new() 272 Ok(Self { body, ranges }) in new() 284 for (i, range) in self.ranges.iter().enumerate() { in get_entries()
|
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/ |
D | S2RangeSatelliteOnDeviceAccessControllerTest.java | 186 List<S2LevelRange> ranges = new ArrayList<>(); in createSatS2File() local 187 ranges.add(range1); in createSatS2File() 188 ranges.add(range2); in createSatS2File() 189 ranges.add(range3); in createSatS2File() 190 satS2RangeFileWriter.createSortedSuffixBlocks(ranges.iterator()); in createSatS2File()
|