Home
last modified time | relevance | path

Searched refs:ranges (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/java/android/os/
DRedactingFileDescriptor.java74 private static long[] checkRangesArgument(long[] ranges) { in checkRangesArgument() argument
75 if (ranges.length % 2 != 0) { in checkRangesArgument()
78 for (int i = 0; i < ranges.length - 1; i += 2) { in checkRangesArgument()
79 if (ranges[i] > ranges[i + 1]) { in checkRangesArgument()
83 return ranges; in checkRangesArgument()
113 public static long[] removeRange(long[] ranges, long start, long end) { in removeRange() argument
115 return ranges; in removeRange()
121 for (int i = 0; i < ranges.length; i += 2) { in removeRange()
122 if (start <= ranges[i] && end >= ranges[i + 1]) { in removeRange()
124 } else if (start >= ranges[i] && end <= ranges[i + 1]) { in removeRange()
[all …]
DINetworkManagementService.aidl331 void addVpnUidRanges(int netId, in UidRange[] ranges); in addVpnUidRanges() argument
336 void removeVpnUidRanges(int netId, in UidRange[] ranges); in removeVpnUidRanges() argument
/frameworks/minikin/libs/minikin/
DSparseBitSet.cpp25 uint32_t SparseBitSet::calcNumPages(const uint32_t* ranges, size_t nRanges) { in calcNumPages() argument
30 uint32_t start = ranges[i * 2]; in calcNumPages()
31 uint32_t end = ranges[i * 2 + 1]; in calcNumPages()
49 void SparseBitSet::initFromRanges(const uint32_t* ranges, size_t nRanges) { in initFromRanges() argument
53 const uint32_t maxVal = ranges[nRanges * 2 - 1]; in initFromRanges()
59 uint32_t nPages = calcNumPages(ranges, nRanges); in initFromRanges()
65 uint32_t start = ranges[i * 2]; in initFromRanges()
66 uint32_t end = ranges[i * 2 + 1]; in initFromRanges()
DCmapCoverage.cpp412 std::vector<uint32_t> ranges; in getCoverageFormat14() local
413 if (!getVSCoverage(&ranges, data, length, defaultUVSOffset, nonDefaultUVSOffset, in getCoverageFormat14()
420 (*out)[vsIndex].reset(new SparseBitSet(ranges.data(), ranges.size() >> 1)); in getCoverageFormat14()
/frameworks/base/services/core/jni/
Dcom_android_server_ConsumerIrService.cpp58 hidl_vec<ConsumerIrFreqRange> ranges; in halGetCarrierFrequencies() local
62 ranges = vec; in halGetCarrierFrequencies()
70 len = ranges.size(); in halGetCarrierFrequencies()
79 arr[i*2] = static_cast<jint>(ranges[i].min); in halGetCarrierFrequencies()
80 arr[i*2+1] = static_cast<jint>(ranges[i].max); in halGetCarrierFrequencies()
/frameworks/minikin/include/minikin/
DSparseBitSet.h41 SparseBitSet(const uint32_t* ranges, size_t nRanges) : SparseBitSet() { in SparseBitSet() argument
42 initFromRanges(ranges, nRanges); in SparseBitSet()
66 void initFromRanges(const uint32_t* ranges, size_t nRanges);
80 static uint32_t calcNumPages(const uint32_t* ranges, size_t nRanges);
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp137 vector<pair<int, int>> ranges; // the ranges are for matching ANY position in matchesSimple() local
155 ranges.push_back(std::make_pair(start, end)); in matchesSimple()
166 ranges.push_back(std::make_pair(start, end)); in matchesSimple()
179 ranges.push_back(std::make_pair(newStart, i)); in matchesSimple()
184 ranges.push_back(std::make_pair(newStart, end)); in matchesSimple()
195 ranges.push_back(std::make_pair(start, end)); in matchesSimple()
202 for (const auto& range : ranges) { in matchesSimple()
/frameworks/rs/script_api/include/
Drs_time.rsh49 …int tm_sec; // Seconds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap …
50 int tm_min; // Minutes after the hour. This ranges from 0 to 59.
51 int tm_hour; // Hours past midnight. This ranges from 0 to 23.
52 int tm_mday; // Day of the month. This ranges from 1 to 31.
53 int tm_mon; // Months since January. This ranges from 0 to 11.
55 int tm_wday; // Days since Sunday. This ranges from 0 to 6.
56 int tm_yday; // Days since January 1. This ranges from 0 to 365.
/frameworks/base/core/java/android/net/
DUidRange.java138 public static boolean containsUid(Collection<UidRange> ranges, int uid) { in containsUid() argument
139 if (ranges == null) return false; in containsUid()
140 for (UidRange range : ranges) { in containsUid()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java302 ArrayList<PageRange> ranges = new ArrayList<>(); in parsePageRanges() local
309 ranges.clear(); in parsePageRanges()
313 ranges.add(retRange.second); in parsePageRanges()
317 return PageRangeUtils.normalize(ranges.toArray(new PageRange[ranges.size()])); in parsePageRanges()
/frameworks/native/opengl/libagl/
DTokenizer.cpp164 const run_t* ranges = mRanges.array(); in dump() local
168 ALOGD("%zu: (%u, %u)\n", i, ranges[i].first, ranges[i].length); in dump()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java238 public void removePages(PageRange[] ranges) { in removePages() argument
245 ranges = PageRangeUtils.normalize(ranges); in removePages()
249 final int rangeCount = ranges.length; in removePages()
251 PageRange range = ranges[i]; in removePages()
/frameworks/base/core/jni/
Dandroid_view_InputDevice.cpp71 const std::vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); in android_view_InputDevice_create() local
72 for (const InputDeviceInfo::MotionRange& range: ranges) { in android_view_InputDevice_create()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1400 private static UidRangeParcel[] toStableParcels(UidRange[] ranges) { in toStableParcels() argument
1401 UidRangeParcel[] stableRanges = new UidRangeParcel[ranges.length]; in toStableParcels()
1402 for (int i = 0; i < ranges.length; i++) { in toStableParcels()
1403 stableRanges[i] = makeUidRangeParcel(ranges[i].start, ranges[i].stop); in toStableParcels()
1553 public void addVpnUidRanges(int netId, UidRange[] ranges) { in addVpnUidRanges() argument
1557 mNetdService.networkAddUidRanges(netId, toStableParcels(ranges)); in addVpnUidRanges()
1564 public void removeVpnUidRanges(int netId, UidRange[] ranges) { in removeVpnUidRanges() argument
1567 mNetdService.networkRemoveUidRanges(netId, toStableParcels(ranges)); in removeVpnUidRanges()
1605 UidRangeParcel[] ranges; in closeSocketsForFirewallChainLocked() local
1613 ranges = new UidRangeParcel[] { in closeSocketsForFirewallChainLocked()
[all …]
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp85 const std::vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); in dump() local
86 if (!ranges.empty()) { in dump()
88 for (size_t i = 0; i < ranges.size(); i++) { in dump()
89 const InputDeviceInfo::MotionRange& range = ranges[i]; in dump()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1323 final Set<UidRange> ranges = new ArraySet<>();
1326 addUserToRanges(ranges, userHandle, allowedApplications, disallowedApplications);
1339 addUserToRanges(ranges, user.id, allowedApplications, disallowedApplications);
1343 return ranges;
1360 void addUserToRanges(@NonNull Set<UidRange> ranges, @UserIdInt int userHandle,
1370 ranges.add(new UidRange(start, stop));
1375 if (start != -1) ranges.add(new UidRange(start, stop));
1384 ranges.add(new UidRange(start, uid - 1));
1388 if (start <= userRange.stop) ranges.add(new UidRange(start, userRange.stop));
1391 ranges.add(UidRange.createForUser(userHandle));
[all …]
DPermissionMonitor.java535 private Set<Integer> intersectUids(Set<UidRange> ranges, Set<Integer> appIds) { in intersectUids() argument
537 for (UidRange range : ranges) { in intersectUids()
/frameworks/base/media/java/android/media/
DUtils.java46 public static <T extends Comparable<? super T>> void sortDistinctRanges(Range<T>[] ranges) { in sortDistinctRanges() argument
47 Arrays.sort(ranges, new Comparator<Range<T>>() { in sortDistinctRanges()
100 int binarySearchDistinctRanges(Range<T>[] ranges, T value) { in binarySearchDistinctRanges() argument
101 return Arrays.binarySearch(ranges, Range.create(value, value), in binarySearchDistinctRanges()
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp66 static std::vector<uint8_t> buildCmapFormat4Table(const std::vector<uint16_t>& ranges) { in buildCmapFormat4Table() argument
67 uint16_t segmentCount = ranges.size() / 2 + 1 /* +1 for end marker */; in buildCmapFormat4Table()
93 for (size_t i = 0; i < ranges.size() / 2; ++i) { in buildCmapFormat4Table()
94 const uint16_t begin = ranges[i * 2]; in buildCmapFormat4Table()
95 const uint16_t end = ranges[i * 2 + 1]; in buildCmapFormat4Table()
118 static std::vector<uint8_t> buildCmapFormat12Table(const std::vector<uint32_t>& ranges) { in buildCmapFormat12Table() argument
119 uint32_t numGroups = ranges.size() / 2; in buildCmapFormat12Table()
134 const uint32_t start = ranges[2 * i]; in buildCmapFormat12Table()
135 const uint32_t end = ranges[2 * i + 1]; in buildCmapFormat12Table()
256 const std::vector<uint16_t>& ranges) { in buildSingleFormat4Cmap() argument
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java3212 final ArraySet<UidRange> ranges = new ArraySet<>(); in testRegisterDefaultNetworkCallback() local
3213 ranges.add(new UidRange(uid, uid)); in testRegisterDefaultNetworkCallback()
3215 mMockVpn.setUids(ranges); in testRegisterDefaultNetworkCallback()
5233 final ArraySet<UidRange> ranges = new ArraySet<>(); in testVpnNetworkActive() local
5234 ranges.add(new UidRange(uid, uid)); in testVpnNetworkActive()
5236 mMockVpn.setUids(ranges); in testVpnNetworkActive()
5260 ranges.clear(); in testVpnNetworkActive()
5261 vpnNetworkAgent.setUids(ranges); in testVpnNetworkActive()
5276 ranges.add(new UidRange(uid, uid)); in testVpnNetworkActive()
5277 mMockVpn.setUids(ranges); in testVpnNetworkActive()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java225 final Set<UidRange> ranges = vpn.createUserAndRestrictedProfilesRanges(primaryUser.id, in testRestrictedProfilesAreAddedToVpn() local
231 })), ranges); in testRestrictedProfilesAreAddedToVpn()
239 final Set<UidRange> ranges = vpn.createUserAndRestrictedProfilesRanges(primaryUser.id, in testManagedProfilesAreNotAddedToVpn() local
244 })), ranges); in testManagedProfilesAreNotAddedToVpn()
252 final Set<UidRange> ranges = new ArraySet<>(); in testAddUserToVpnOnlyAddsOneUser() local
253 vpn.addUserToRanges(ranges, primaryUser.id, null, null); in testAddUserToVpnOnlyAddsOneUser()
257 })), ranges); in testAddUserToVpnOnlyAddsOneUser()
/frameworks/base/core/proto/android/os/
Dpagetypeinfo.proto27 * For example, the order of a page ranges form 0 to 10.
Dps.proto79 // Nice value. This ranges from 19 (nicest) to -20 (not nice to others).
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/
DConvert.java171 int len = config.ranges.size(); in amfmConfigToBands()
177 for (AmFmBandRange range : config.ranges) { in amfmConfigToBands()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java1394 ArrayList<ISupplicantP2pIface.FreqRange> ranges = new ArrayList<>(); in setListenChannel() local
1404 ranges.add(range1); in setListenChannel()
1405 ranges.add(range2); in setListenChannel()
1408 "setDisallowedFrequencies(" + ranges + ")"); in setListenChannel()
1410 result.setResult(mISupplicantP2pIface.setDisallowedFrequencies(ranges)); in setListenChannel()

12