Searched refs:ranges (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/services/core/jni/
H A Dcom_android_server_ConsumerIrService.cpp72 consumerir_freq_range_t *ranges; local
79 ranges = new consumerir_freq_range_t[len];
81 len = dev->get_carrier_freqs(dev, len, ranges);
83 delete[] ranges;
91 delete[] ranges;
95 arr[i*2] = ranges[i].min;
96 arr[i*2+1] = ranges[i].max;
99 delete[] ranges;
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp42 // The ranges are all represented with a single value. This is the start of one range and
58 // Construct the ranges. The ranges are represented like so: [0, 2, 5, 7]
59 // The ranges are the spaces in between. In this example, with a total string length of 9,
62 std::vector<Range> ranges; local
63 ranges.push_back(Range{ 0 });
64 ranges.push_back(Range{ originalText.size() - 1 });
69 auto iter = std::lower_bound(ranges.begin(), ranges.end(), span.firstChar, cmp);
70 if (iter != ranges
[all...]
/frameworks/minikin/libs/minikin/
H A DSparseBitSet.cpp32 uint32_t SparseBitSet::calcNumPages(const uint32_t* ranges, size_t nRanges) { argument
37 uint32_t start = ranges[i * 2];
38 uint32_t end = ranges[i * 2 + 1];
56 void SparseBitSet::initFromRanges(const uint32_t* ranges, size_t nRanges) { argument
63 mMaxVal = ranges[nRanges * 2 - 1];
66 uint32_t nPages = calcNumPages(ranges, nRanges);
73 uint32_t start = ranges[i * 2];
74 uint32_t end = ranges[i * 2 + 1];
/frameworks/minikin/include/minikin/
H A DSparseBitSet.h42 // Initialize the set to a new value, represented by ranges. For
43 // simplicity, these ranges are arranged as pairs of values,
45 void initFromRanges(const uint32_t* ranges, size_t nRanges);
78 static uint32_t calcNumPages(const uint32_t* ranges, size_t nRanges);
/frameworks/base/core/jni/
H A Dandroid_view_InputDevice.cpp71 const Vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); local
72 for (size_t i = 0; i < ranges.size(); i++) {
73 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i);
/frameworks/native/opengl/libagl/
H A DTokenizer.cpp164 const run_t* ranges = mRanges.array(); local
168 ALOGD("%zu: (%u, %u)\n", i, ranges[i].first, ranges[i].length);
/frameworks/base/core/java/android/net/
H A DNetworkAgent.java104 * Sent by the NetworkAgent to ConnectivityService to add new UID ranges
111 * Sent by the NetworkAgent to ConnectivityService to remove UID ranges
393 * Called by the VPN code when it wants to add ranges of UIDs to be routed
396 public void addUidRanges(UidRange[] ranges) { argument
397 queueOrSendMessage(EVENT_UID_RANGES_ADDED, ranges);
401 * Called by the VPN code when it wants to remove ranges of UIDs from being routed
404 public void removeUidRanges(UidRange[] ranges) { argument
405 queueOrSendMessage(EVENT_UID_RANGES_REMOVED, ranges);
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DVpnTest.java107 final Set<UidRange> ranges = vpn.createUserAndRestrictedProfilesRanges(primaryUser.id,
113 })), ranges);
121 final Set<UidRange> ranges = vpn.createUserAndRestrictedProfilesRanges(primaryUser.id,
126 })), ranges);
134 final Set<UidRange> ranges = new ArraySet<>();
135 vpn.addUserToRanges(ranges, primaryUser.id, null, null);
139 })), ranges);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java238 public void removePages(PageRange[] ranges) { argument
245 ranges = PageRangeUtils.normalize(ranges);
249 final int rangeCount = ranges.length;
251 PageRange range = ranges[i];
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DPageRangeUtils.java28 * This class contains utility functions for working with page ranges.
46 * Gets whether page ranges contains a given page.
48 * @param pageRanges The page ranges.
50 * @return Whether the page is within the ranges.
66 * @param ourRanges The container page ranges.
67 * @param otherRanges The contained page ranges.
69 * @return Whether the container page ranges contains the contained ones.
87 // Note that the code below relies on the ranges being normalized
89 // sub-ranges whose start is less that or equal to the end.
110 * Normalizes a page range, which is the resulting page ranges ar
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpn.java846 * the UID ranges will match the app whitelist or blacklist specified there. Otherwise, all UIDs
849 * @param userHandle The userId to create UID ranges for along with any of its restricted
858 final Set<UidRange> ranges = new ArraySet<>();
860 // Assign the top-level user to the set of ranges
861 addUserToRanges(ranges, userHandle, allowedApplications, disallowedApplications);
874 addUserToRanges(ranges, user.id, allowedApplications, disallowedApplications);
878 return ranges;
886 * the UID ranges will match the app whitelist or blacklist specified there. Otherwise, all UIDs
889 * @param ranges {@link Set} of {@link UidRange}s to which to add.
890 * @param userHandle The userId to add to {@param ranges}
895 addUserToRanges(@onNull Set<UidRange> ranges, @UserIdInt int userHandle, @Nullable List<String> allowedApplications, @Nullable List<String> disallowedApplications) argument
1056 setAllowOnlyVpnForUids(boolean enforce, Collection<UidRange> ranges) argument
[all...]
/frameworks/base/media/java/android/media/
H A DUtils.java35 * @throws java.lang.IllegalArgumentException if ranges are not distinct
37 public static <T extends Comparable<? super T>> void sortDistinctRanges(Range<T>[] ranges) { argument
38 Arrays.sort(ranges, new Comparator<Range<T>>() {
47 "sample rate ranges must be distinct (" + lhs + " and " + rhs + ")");
53 * Returns the intersection of two sets of non-intersecting ranges
54 * @param one a sorted set of non-intersecting ranges in ascending order
55 * @param another another sorted set of non-intersecting ranges in ascending order
83 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
84 * @param ranges a sorted array of non-intersecting ranges i
91 binarySearchDistinctRanges(Range<T>[] ranges, T value) argument
[all...]
H A DMediaCodecInfo.java960 * Returns the array of supported sample rate ranges. The
961 * array is sorted in ascending order, and the ranges are
1029 ArrayList<Range<Integer>> ranges = new ArrayList<Range<Integer>>();
1032 ranges.add(Range.create(rate, rate));
1035 mSampleRateRanges = ranges.toArray(new Range[ranges.size()]);
1121 // restrict ranges
1142 if (info.containsKey("sample-rate-ranges")) {
1143 String[] rateStrings = info.getString("sample-rate-ranges").split(",");
1615 // full positive ranges ar
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl135 * arg is a set of start end pairs defining the ranges.
346 * Set all packets from users in ranges to go through VPN specified by netId.
348 void addVpnUidRanges(int netId, in UidRange[] ranges);
351 * Clears the special VPN rules for users in ranges and VPN specified by netId.
353 void removeVpnUidRanges(int netId, in UidRange[] ranges);
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java2037 public void addVpnUidRanges(int netId, UidRange[] ranges) { argument
2044 // Avoid overly long commands by limiting number of UID ranges per command.
2045 for (int i = 0; i < ranges.length; i++) {
2046 argv[argc++] = ranges[i].toString();
2047 if (i == (ranges.length - 1) || argc == argv.length) {
2059 public void removeVpnUidRanges(int netId, UidRange[] ranges) { argument
2066 // Avoid overly long commands by limiting number of UID ranges per command.
2067 for (int i = 0; i < ranges.length; i++) {
2068 argv[argc++] = ranges[i].toString();
2069 if (i == (ranges
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp924 || !strcmp(attrs[i], "ranges")
1009 AString max, value, ranges; local
1022 (found = msg->findString("ranges", &ranges))) {
1023 return limitFoundMissingAttr(name, "ranges", found);
1037 } else if (ranges.size()) {
1039 tag.append("-ranges");
1040 mCurrentInfo->addDetail(tag, ranges);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyMetadataMapper.java411 throw new AssertionError("Supported FPS ranges cannot be null.");
417 Range<Integer>[] ranges = new Range[rangesSize];
420 ranges[i++] = Range.create(
424 m.set(CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES, ranges);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java519 * selected, application can get the supported FPS ranges by
520 * {@link #getHighSpeedVideoFpsRangesFor}, and use these FPS ranges to setup the recording
537 * Get the frame per second ranges (fpsMin, fpsMax) for input high speed video size.
542 * The {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE FPS ranges} reported in this method
547 * See {@link #getHighSpeedVideoFpsRanges} for the characteristics of the returned FPS ranges.
551 * @return an array of supported high speed video recording FPS ranges The upper bound of
552 * returned ranges is guaranteed to be greater than or equal to 120.
577 * Get a list of supported high speed video recording FPS ranges.
603 * The FPS ranges reported by this method will have below characteristics:
608 * fps_max]. These kinds of FPS ranges ar
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintActivity.java2808 PageRange[] ranges = PageRangeUtils.parsePageRanges(editable, pageCount);
2810 if (ranges.length == 0) {
/frameworks/native/services/inputflinger/
H A DInputReader.cpp967 const Vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); local
968 if (!ranges.isEmpty()) {
970 for (size_t i = 0; i < ranges.size(); i++) {
971 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i);
3568 // Compute oriented precision, scales and ranges.
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 1465 milliseconds