/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsPacketReader.java | 44 private int limit; field in MdnsPacketReader 56 limit = -1; in MdnsPacketReader() 68 public void setLimit(int limit) throws IOException { in setLimit() argument 69 if (limit >= 0) { in setLimit() 70 if (pos + limit <= count) { in setLimit() 71 this.limit = pos + limit; in setLimit() 77 pos + limit, in setLimit() 85 limit = -1; in clearLimit() 93 return (limit >= 0 ? limit : count) - pos; in getRemaining()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageInfoController.java | 29 long limit = info.limitLevel; in getSummaryLimit() local 30 if (limit <= 0) { in getSummaryLimit() 31 limit = info.warningLevel; in getSummaryLimit() 33 if (info.usageLevel > limit) { in getSummaryLimit() 34 limit = info.usageLevel; in getSummaryLimit() 36 return limit; in getSummaryLimit()
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
D | int_array_view_test.cpp | 71 EXPECT_FALSE(intArrayView.limit(0).contains(3)); in TEST() 78 EXPECT_TRUE(intArrayView.limit(0).empty()); in TEST() 79 EXPECT_EQ(intArrayView.size(), intArrayView.limit(intArrayView.size()).size()); in TEST() 80 EXPECT_EQ(intArrayView.size(), intArrayView.limit(1000).size()); in TEST() 82 IntArrayView subView = intArrayView.limit(4); in TEST() 96 EXPECT_EQ(intArrayView.size(), intArrayView.limit(1000).size()); in TEST() 111 intArrayView.limit(0).copyToArray(&buffer, 0); in TEST() 114 intArrayView.limit(1).copyToArray(&buffer, 0); in TEST() 117 intArrayView.limit(1).copyToArray(&buffer, 1); in TEST() 132 EXPECT_EQ(10, intArrayView.limit(0).firstOrDefault(10)); in TEST() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 81 public List<SearchResult> search(String query, int limit, int action) { in search() argument 90 results.addAll(searchChannels(query, channelsFound, limit)); in search() 92 results.addAll(searchInputs(query, limit)); in search() 95 results.addAll(searchChannels(query, channelsFound, limit)); in search() 96 if (results.size() >= limit) { in search() 102 if (limit == 1) { in search() 103 results.addAll(searchInputs(query, limit)); in search() 110 limit -= results.size(); in search() 117 limit)); in search() 169 private List<SearchResult> searchChannels(String query, Set<Long> channels, int limit) { in searchChannels() argument [all …]
|
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/ |
D | SampleTunerTvInputSectionParser.java | 127 private static List<TsDescriptor> parseDescriptors(byte[] data, int offset, int limit) { in parseDescriptors() argument 129 if (data.length < limit) { in parseDescriptors() 134 while (pos + 1 < limit) { in parseDescriptors() 142 if (limit < pos + length) { in parseDescriptors() 169 int offset, int limit) { in parseExtendedChannelNameDescriptor() argument 170 String channelName = parseMultipleStringStructure(data, offset, limit); in parseExtendedChannelNameDescriptor() 177 private static String parseMultipleStringStructure(byte[] data, int offset, int limit) { in parseMultipleStringStructure() argument 178 if (limit < offset + 8) { in parseMultipleStringStructure() 190 if (limit < pos + 4) { in parseMultipleStringStructure() 197 if (limit < pos + 3) { in parseMultipleStringStructure()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | Slice.h | 46 Slice(void* base, void* limit) : mBase(toUint8(base)), mLimit(toUint8(limit)) {} in Slice() argument 55 uint8_t* limit() const { return mLimit; } in limit() function 58 size_t size() const { return limit() - base(); } in size() 61 bool empty() const { return base() == limit(); } in empty() 99 return {{s.base(), s.base() + tmp}, {s.base() + tmp, s.limit()}}; in split() 142 return (lhs.base() == rhs.base()) && (lhs.limit() == rhs.limit());
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | InputPointersTests.java | 68 final int limit = src.getXCoordinates().length * 2 + 10; in testAdd() local 69 for (int i = 0; i < limit; i++) { in testAdd() 77 for (int i = 0; i < limit; i++) { in testAdd() 92 final int limit = 1000, step = 100; in testAddAt() local 93 for (int i = 0; i < limit; i += step) { in testAddAt() 101 for (int i = 0; i < limit; i += step) { in testAddAt() 116 final int limit = src.getXCoordinates().length * 2 + 10; in testSet() local 117 for (int i = 0; i < limit; i++) { in testSet() 136 final int limit = 100; in testCopy() local 137 for (int i = 0; i < limit; i++) { in testCopy() [all …]
|
D | ResizableIntArrayTests.java | 53 final int limit = DEFAULT_CAPACITY * 2 + 10; in testAdd() local 54 for (int i = 0; i < limit; i++) { in testAdd() 72 for (int i = 0; i < limit; i++) { in testAdd() 81 final int limit = DEFAULT_CAPACITY * 10, step = DEFAULT_CAPACITY * 2; in testAddAt() local 82 for (int i = 0; i < limit; i += step) { in testAddAt() 87 for (int i = 0; i < limit; i += step) { in testAddAt() 195 final int limit = DEFAULT_CAPACITY * 2 + 10; in testSet() local 196 for (int i = 0; i < limit; i++) { in testSet() 386 final int limit = DEFAULT_CAPACITY * 10; in testShift() local 388 for (int i = 0; i < limit; ++i) { in testShift() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/ |
D | rate_limit_max_attribution_reporting_endpoints.json | 28 // match. This doesn't count for the limit. 116 // limit. 140 // limit. 261 // Should not result in an aggregatable report due to reporting origin limit 290 // the rate limit window.
|
D | rate_limit_max_source_registration_reporting_origin_endpoints.json | 47 // Should be dropped due to the unattributed reporting origin limit for 69 // Should be dropped due to the unattributed reporting origin limit. 90 // Should be dropped due to the unattributed reporting origin limit is 133 // Should be dropped due to the unattributed reporting origin limit, but 238 // Should be registered as the first source is outside the rate limit window.
|
D | aggregatable_debug_reports_limits.json | 170 // Hits max reports per source limit, creates a null report. 230 // Hits per reporting site rate-limit, creates a null report. 260 // Changes to a different reporting site but still hits global rate-limit, 318 // The aggregatable debug report created at T=3000 falls outside the rate-limit window,
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | TetherLimitValue.java | 30 public final long limit; field in TetherLimitValue 32 public TetherLimitValue(final long limit) { in TetherLimitValue() argument 33 this.limit = limit; in TetherLimitValue()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | SectionParser.java | 1515 private static List<TsDescriptor> parseDescriptors(byte[] data, int offset, int limit) { in parseDescriptors() argument 1518 if (data.length < limit) { in parseDescriptors() 1522 while (pos + 1 < limit) { in parseDescriptors() 1528 if (limit < pos + length + 2) { in parseDescriptors() 1589 private static Iso639LanguageDescriptor parseIso639Language(byte[] data, int pos, int limit) { in parseIso639Language() argument 1594 while (pos + 4 <= limit) { in parseIso639Language() 1595 if (limit <= pos + 3) { in parseIso639Language() 1616 private static CaptionServiceDescriptor parseCaptionService(byte[] data, int pos, int limit) { in parseCaptionService() argument 1619 if (limit <= pos + 2) { in parseCaptionService() 1627 if (limit < pos + numberServices * 6) { in parseCaptionService() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/cursor/ |
D | CursorView.kt | 46 fun <E> CursorView<E>.limit(count: Int): CursorView<E> = in limit() method 47 object : CursorView<E>, Cursor by (this@limit as Cursor).limit(count) { in limit() 48 override fun readRow(): E? = this@limit.readRow() in limit()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | OffloadHardwareInterfaceTest.java | 218 final long limit = 12345; in testSetDataLimit() local 220 assertTrue(mOffloadHw.setDataLimit(RMNET0, limit)); in testSetDataLimit() 221 verify(mIOffload).setDataLimit(eq(RMNET0), eq(limit)); in testSetDataLimit() 223 assertFalse(mOffloadHw.setDataLimit(RMNET0, limit)); in testSetDataLimit() 231 final long limit = 67890; in testSetDataWarningAndLimitFailureWithHidl_1_0() local 233 () -> mOffloadHw.setDataWarningAndLimit(RMNET0, warning, limit)); in testSetDataWarningAndLimitFailureWithHidl_1_0() 241 final long limit = 67890; in testSetDataWarningAndLimit() local 243 assertTrue(mOffloadHw.setDataWarningAndLimit(RMNET0, warning, limit)); in testSetDataWarningAndLimit() 244 verify(mIOffload).setDataWarningAndLimit(eq(RMNET0), eq(warning), eq(limit)); in testSetDataWarningAndLimit() 246 assertFalse(mOffloadHw.setDataWarningAndLimit(RMNET0, warning, limit)); in testSetDataWarningAndLimit()
|
D | OffloadHalHidlImplTest.java | 165 final long limit = 12345; in doTestSetDataLimit() local 170 }).when(mIOffloadControlMock).setDataLimit(eq(RMNET0), eq(limit), any()); in doTestSetDataLimit() 171 assertEquals(expectSuccess, mIOffloadHal.setDataLimit(RMNET0, limit)); in doTestSetDataLimit() 172 verify(mIOffloadControlMock).setDataLimit(eq(RMNET0), eq(limit), any()); in doTestSetDataLimit() 188 final long limit = 67890; in doTestSetDataWarningAndLimit() local 195 .setDataWarningAndLimit(eq(RMNET0), eq(warning), eq(limit), any()); in doTestSetDataWarningAndLimit() 196 assertEquals(expectSuccess, mIOffloadHal.setDataWarningAndLimit(RMNET0, warning, limit)); in doTestSetDataWarningAndLimit() 198 .setDataWarningAndLimit(eq(RMNET0), eq(warning), eq(limit), any()); in doTestSetDataWarningAndLimit() 211 final long limit = 67890; in testSetDataWarningAndLimitFailure() local 213 () -> mIOffloadHal.setDataWarningAndLimit(RMNET0, warning, limit)); in testSetDataWarningAndLimitFailure()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | int_array_view.h | 101 AK_FORCE_INLINE const IntArrayView limit(const size_t maxSize) const { in limit() function 136 std::vector<IntArrayView> split(const int separator, const int limit = S_INT_MAX) const { 137 if (limit <= 0) { 141 if (limit == 1) { 150 if (result.size() >= static_cast<size_t>(limit - 1)) {
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/testutils/ |
D | ResettingExampleIterator.java | 45 public ResettingExampleIterator(int limit, Dataset dataset, Duration nextLatency) { in ResettingExampleIterator() argument 46 this.mCapacity = limit; in ResettingExampleIterator() 55 public ResettingExampleIterator(int limit, Dataset dataset) { in ResettingExampleIterator() argument 56 this(limit, dataset, Duration.ZERO); in ResettingExampleIterator()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | NduseroptMessageTest.java | 98 assertEquals(68, buf.limit()); in testParseWithinNetlinkMessage() 112 assertEquals(52, bufWithoutHeader.limit()); in testParseWithinNetlinkMessage() 127 assertEquals(76, buf.limit()); in testParseRdnssOptionWithinNetlinkMessage() 163 assertEquals(76, buf.limit()); in testParseUnknownOptionWithinNetlinkMessage() 203 assertEquals(52, buf.limit()); in testZeroLengthOption() 215 assertEquals(52, buf.limit()); in testTooLongOption() 226 assertEquals(32, buf.limit()); in testOptionsTooLong() 232 assertEquals(48, buf.limit()); in testOptionsTooLong()
|
D | StructNdOptPioTest.java | 170 final int len = buf.limit(); in testParsing_truncatedByteBuffer() 171 for (int i = 0; i < buf.limit() - 1; i++) { in testParsing_truncatedByteBuffer() 173 buf.limit(i); in testParsing_truncatedByteBuffer() 178 buf.limit(len); in testParsing_truncatedByteBuffer() 190 buf.limit(31); // less than 4 * 8 in testParsing_invalidByteBufferLength()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | BackgroundProcessLimitPreferenceController.java | 73 final int limit = getActivityManagerService().getProcessLimit(); in updateAppProcessLimitOptions() local 77 if (val >= limit) { in updateAppProcessLimitOptions() 92 final int limit = newValue != null ? Integer.parseInt(newValue.toString()) : -1; in writeAppProcessLimitOptions() local 93 getActivityManagerService().setProcessLimit(limit); in writeAppProcessLimitOptions()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/search/ |
D | LocalSearchProviderTest.java | 176 private void verifyQueryWithArguments(Integer limit, Integer action) { in verifyQueryWithArguments() argument 179 if (limit != null || action != null) { in verifyQueryWithArguments() 181 if (limit != null) { in verifyQueryWithArguments() 183 SearchManager.SUGGEST_PARAMETER_LIMIT, limit.toString()); in verifyQueryWithArguments() 195 limit == null || limit <= 0 ? LocalSearchProvider.DEFAULT_SEARCH_LIMIT : limit; in verifyQueryWithArguments()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/reporting/ |
D | DebugReportApi.java | 187 Source source, String limit, IMeasurementDao dao) { in scheduleSourceDestinationLimitDebugReport() argument 189 source, limit, Type.SOURCE_DESTINATION_LIMIT, dao); in scheduleSourceDestinationLimitDebugReport() 194 Source source, String limit, IMeasurementDao dao) { in scheduleSourceDestinationRateLimitDebugReport() argument 196 source, limit, Type.SOURCE_DESTINATION_RATE_LIMIT, dao); in scheduleSourceDestinationRateLimitDebugReport() 225 Source source, String limit, IMeasurementDao dao) { in scheduleSourceStorageLimitDebugReport() argument 239 generateSourceDebugReportBody(source, Map.of(Body.LIMIT, String.valueOf(limit))), in scheduleSourceStorageLimitDebugReport() 323 @Nullable String limit, in scheduleTriggerDebugReport() argument 341 generateTriggerDebugReportBody(source, trigger, limit, debugKeyPair, false), in scheduleTriggerDebugReport() 383 Source source, String limit, String type, IMeasurementDao dao) { in scheduleSourceDestinationLimitDebugReport() argument 395 body.put(Body.LIMIT, limit); in scheduleSourceDestinationLimitDebugReport() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | HalDeviceManagerUtil.java | 123 for (WifiChip.ChipConcurrencyCombinationLimit limit : combo.limits) { in chipConcurrencyCombinationToJson() 124 limitsJson.put(chipConcurrencyCombinationLimitToJson(limit)); in chipConcurrencyCombinationToJson() 145 WifiChip.ChipConcurrencyCombinationLimit limit) throws JSONException { in chipConcurrencyCombinationLimitToJson() argument 147 jsonObject.put(KEY_MAX_IFACES, limit.maxIfaces); in chipConcurrencyCombinationLimitToJson() 148 jsonObject.put(KEY_TYPES, new JSONArray(limit.types)); in chipConcurrencyCombinationLimitToJson()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | ContactsProviderUtil.java | 148 int limit, in getUpdatedContactIds() argument 164 if (limit >= 0) { in getUpdatedContactIds() 166 ContactsContract.LIMIT_PARAM_KEY, String.valueOf(limit)); in getUpdatedContactIds() 190 if (limit >= 0 && numContacts >= limit) { in getUpdatedContactIds()
|