/frameworks/base/services/core/jni/ |
H A D | com_android_server_ConsumerIrService.cpp | 72 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/minikin/libs/minikin/ |
H A D | SparseBitSet.cpp | 31 uint32_t SparseBitSet::calcNumPages(const uint32_t* ranges, size_t nRanges) { argument 36 uint32_t start = ranges[i * 2]; 37 uint32_t end = ranges[i * 2 + 1]; 55 void SparseBitSet::initFromRanges(const uint32_t* ranges, size_t nRanges) { argument 62 mMaxVal = ranges[nRanges * 2 - 1]; 65 uint32_t nPages = calcNumPages(ranges, nRanges); 72 uint32_t start = ranges[i * 2]; 73 uint32_t end = ranges[i * 2 + 1];
|
/frameworks/minikin/include/minikin/ |
H A D | SparseBitSet.h | 42 // 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 D | android_view_InputDevice.cpp | 66 const Vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); local 67 for (size_t i = 0; i < ranges.size(); i++) { 68 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkAgent.java | 96 * Sent by the NetworkAgent to ConnectivityService to add new UID ranges 103 * Sent by the NetworkAgent to ConnectivityService to remove UID ranges 246 * Called by the VPN code when it wants to add ranges of UIDs to be routed 249 public void addUidRanges(UidRange[] ranges) { argument 250 queueOrSendMessage(EVENT_UID_RANGES_ADDED, ranges); 254 * Called by the VPN code when it wants to remove ranges of UIDs from being routed 257 public void removeUidRanges(UidRange[] ranges) { argument 258 queueOrSendMessage(EVENT_UID_RANGES_REMOVED, ranges);
|
/frameworks/native/opengl/libagl/ |
H A D | Tokenizer.cpp | 164 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/os/ |
H A D | INetworkManagementService.aidl | 141 * arg is a set of start end pairs defining the ranges. 334 * Set all packets from users in ranges to go through VPN specified by netId. 336 void addVpnUidRanges(int netId, in UidRange[] ranges); 339 * Clears the special VPN rules for users in ranges and VPN specified by netId. 341 void removeVpnUidRanges(int netId, in UidRange[] ranges);
|
/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 37 * @throws java.lang.IllegalArgumentException if ranges are not distinct 39 public static <T extends Comparable<? super T>> void sortDistinctRanges(Range<T>[] ranges) { argument 40 Arrays.sort(ranges, new Comparator<Range<T>>() { 49 "sample rate ranges must be distinct (" + lhs + " and " + rhs + ")"); 55 * Returns the intersection of two sets of non-intersecting ranges 56 * @param one a sorted set of non-intersecting ranges in ascending order 57 * @param another another sorted set of non-intersecting ranges in ascending order 85 * Returns the index of the range that contains a value in a sorted array of distinct ranges. 86 * @param ranges a sorted array of non-intersecting ranges i 93 binarySearchDistinctRanges(Range<T>[] ranges, T value) argument [all...] |
H A D | MediaCodecInfo.java | 519 * Returns the array of supported sample rate ranges. The 520 * array is sorted in ascending order, and the ranges are 588 ArrayList<Range<Integer>> ranges = new ArrayList<Range<Integer>>(); 591 ranges.add(Range.create(rate, rate)); 594 mSampleRateRanges = ranges.toArray(new Range[ranges.size()]); 680 // restrict ranges 701 if (info.containsKey("sample-rate-ranges")) { 702 String[] rateStrings = info.getString("sample-rate-ranges").split(","); 1074 // full positive ranges ar [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 235 public void removePages(PageRange[] ranges) { argument 242 ranges = PageRangeUtils.normalize(ranges); 244 final int rangeCount = ranges.length; 246 PageRange range = ranges[i];
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | Vpn.java | 605 // Add ranges covering all UIDs for allowedApplications. 618 // Add all ranges for user skipping UIDs for disallowedApplications. 638 // Returns the subset of the full list of active UID ranges the VPN applies to (mVpnUsers) that 642 final List<UidRange> ranges = new ArrayList<UidRange>(); 645 ranges.add(range); 648 return ranges; 655 final List<UidRange> ranges = uidRangesForUser(userHandle); 657 mNetworkAgent.removeUidRanges(ranges.toArray(new UidRange[ranges.size()])); 659 mVpnUsers.removeAll(ranges); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaCodecList.cpp | 661 || !strcmp(attrs[i], "ranges") 744 AString max, value, ranges; local 757 (found = msg->findString("ranges", &ranges))) { 758 return limitFoundMissingAttr(name, "ranges", found); 772 } else if (ranges.size()) { 774 tag.append("-ranges"); 775 mCurrentInfo->addDetail(tag, ranges);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkManagementService.java | 1735 public void addVpnUidRanges(int netId, UidRange[] ranges) { argument 1742 // Avoid overly long commands by limiting number of UID ranges per command. 1743 for (int i = 0; i < ranges.length; i++) { 1744 argv[argc++] = ranges[i].toString(); 1745 if (i == (ranges.length - 1) || argc == argv.length) { 1757 public void removeVpnUidRanges(int netId, UidRange[] ranges) { argument 1764 // Avoid overly long commands by limiting number of UID ranges per command. 1765 for (int i = 0; i < ranges.length; i++) { 1766 argv[argc++] = ranges[i].toString(); 1767 if (i == (ranges [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyMetadataMapper.java | 410 throw new AssertionError("Supported FPS ranges cannot be null."); 416 Range<Integer>[] ranges = new Range[rangesSize]; 419 ranges[i++] = Range.create(r[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], 422 m.set(CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES, ranges);
|
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 883 const Vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); local 884 if (!ranges.isEmpty()) { 886 for (size_t i = 0; i < ranges.size(); i++) { 887 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); 3260 // Compute oriented precision, scales and ranges.
|