Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 1481) sorted by relevance

12345678910>>...60

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DGenreItemTest.java46 int count = GenreItems.getGenreCount(); in testGetCanonicalGenre() local
48 for (int i = 1; i < count; ++i) { in testGetCanonicalGenre()
55 int count = GenreItems.getGenreCount(); in testGetId_base() local
58 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base()
59 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base()
60 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base()
61 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1); in testGetId_base()
62 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1); in testGetId_base()
63 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1); in testGetId_base()
64 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count - 1); in testGetId_base()
[all …]
/packages/modules/Bluetooth/system/gd/packet/
Draw_builder_unittest.cc27 vector<uint8_t> count = { variable
52 std::vector<uint8_t> count_subset(count.begin() + 0x16, count.end()); in TEST()
55 ASSERT_EQ(count.size(), count_builder->size()); in TEST()
62 ASSERT_EQ(count, packet); in TEST()
66 std::vector<uint8_t> count_first(count.begin(), count.begin() + 0x8); in TEST()
73 std::vector<uint8_t> count_last(count.begin() + 0x18, count.end()); in TEST()
76 ASSERT_EQ(count.size(), count_builder->size()); in TEST()
83 ASSERT_EQ(count, packet); in TEST()
87 const size_t kMaxBytes = count.size(); in TEST()
89 ASSERT_TRUE(count_builder->AddOctets(count)); in TEST()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DHeadlineGeneratorImpl.kt51 override fun getImagesWithTextHeadline(text: CharSequence, count: Int): String { in getImagesWithTextHeadline()
58 count in getImagesWithTextHeadline()
62 override fun getVideosWithTextHeadline(text: CharSequence, count: Int): String { in getVideosWithTextHeadline()
69 count in getVideosWithTextHeadline()
73 override fun getFilesWithTextHeadline(text: CharSequence, count: Int): String { in getFilesWithTextHeadline()
80 count in getFilesWithTextHeadline()
84 override fun getImagesHeadline(count: Int): String { in getImagesHeadline()
85 return getPluralString(R.string.sharing_images, count) in getImagesHeadline()
88 override fun getVideosHeadline(count: Int): String { in getVideosHeadline()
89 return getPluralString(R.string.sharing_videos, count) in getVideosHeadline()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java55 public int count; field in IntHistogram.Bucket
57 public Bucket(int start, int end, int count) { in Bucket() argument
60 this.count = count; in Bucket()
125 int count = mBuckets.valueAt(bucketIndex); in getBucketByIndex() local
126 return new Bucket(start, end, count); in getBucketByIndex()
139 public void add(int value, int count) { in add() argument
142 mBuckets.put(bucketKey, curBucketValue + count); in add()
162 sum += bucket.count; in quantileFunction()
168 if (partialSum + bucket.count >= target) { in quantileFunction()
172 partialSum += bucket.count; in quantileFunction()
[all …]
DIntCounter.java39 public int count; field in IntCounter.KeyCount
41 public KeyCount(int key, int count) { in KeyCount() argument
43 this.count = count; in KeyCount()
81 public void add(int key, int count) { in add() argument
84 put(key, curCount + count); in add()
120 T convert(int key, int count); in convert() argument
135 output[i] = converter.convert(kc.key, kc.count); in toProto()
145 return toProto(Int32Count.class, (key, count) -> { in toProto()
148 entry.count = count; in toProto()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogPerfServiceTest.cpp105 std::chrono::duration_cast<std::chrono::milliseconds>(durationInSecs).count(); in constructResourceUsageStats()
175 .count(); in getCurrentCollectionIntervalMillis()
178 .count(); in getCurrentCollectionIntervalMillis()
249 int bootIterations = static_cast<int>(kTestPostSystemEventDurationSecs.count() / in startPeriodicCollection()
250 kTestSystemEventCollectionIntervalSecs.count()); in startPeriodicCollection()
360 .count(), in TEST_F()
365 .count(), in TEST_F()
416 ASSERT_EQ(mLooperStub->numSecondsElapsed(), kTestSystemEventCollectionIntervalSecs.count()) in TEST_F()
418 << kTestSystemEventCollectionIntervalSecs.count() << " seconds interval"; in TEST_F()
424 int maxIterations = static_cast<int>(kTestPostSystemEventDurationSecs.count() / in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestStatsdTelemetry.cpp73 return std::tie(v.sumTime, v.minTime, v.maxTime, v.sumSquaredTime, v.count); in operator ==()
80 return std::tie(v.count, v.compilationTimeMillis, v.durationRuntimeMicros, in operator ==()
97 .count = static_cast<int32_t>(values.size()), in accumulatedTimingsFrom()
114 .count = 3, in TEST()
118 .count = 1, in TEST()
122 .count = 4, in TEST()
133 .count = 1, in TEST()
144 .count = 3, in TEST()
177 const auto value1 = AtomValue{.count = 2}; in TEST()
178 const auto value2 = AtomValue{.count = 3}; in TEST()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DConcurrentUtilsTest.java68 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptNormal() local
72 count.countDown(); in testWaitForCountDownNoInterruptNormal()
73 count.countDown(); in testWaitForCountDownNoInterruptNormal()
76 ConcurrentUtils.waitForCountDownNoInterrupt(count, 1000, "wait for count"); in testWaitForCountDownNoInterruptNormal()
81 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptTimeout() local
83 () -> ConcurrentUtils.waitForCountDownNoInterrupt(count, 100, "wait for count")); in testWaitForCountDownNoInterruptTimeout()
88 CountDownLatch count = new CountDownLatch(2); in testWaitForCountDownNoInterruptInterrupted() local
93 () -> ConcurrentUtils.waitForCountDownNoInterrupt(count, 100, "wait for count")); in testWaitForCountDownNoInterruptInterrupted()
98 CountDownLatch count = new CountDownLatch(1); in testDirectExecutor() local
100 count.countDown(); in testDirectExecutor()
[all …]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DSearchCursorManager.java181 int count = 0; in getCount() local
183 count += contactsCursor.getCount(); in getCount()
187 count++; in getCount()
189 count += nearbyPlacesCursor.getCount(); in getCount()
193 count += corpDirectoryCursor.getCount(); in getCount()
196 return count + searchActions.size(); in getCount()
243 int count = contactsCursor.getCount(); in getCursor() local
245 if (position - count < 0) { in getCursor()
249 position -= count; in getCursor()
253 int count = nearbyPlacesCursor.getCount(); in getCursor() local
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/metrics/
DNonUiEventLogger.java175 String authority, int count) { in logPickerAddMediaSyncCompletion() argument
177 authority, instanceId, count); in logPickerAddMediaSyncCompletion()
188 String authority, int count) { in logPickerRemoveMediaSyncCompletion() argument
190 authority, instanceId, count); in logPickerRemoveMediaSyncCompletion()
201 String authority, int count) { in logPickerAddAlbumMediaSyncCompletion() argument
203 authority, instanceId, count); in logPickerAddAlbumMediaSyncCompletion()
226 int count) { in logPickerGetAlbumsEnd() argument
228 instanceId, count); in logPickerGetAlbumsEnd()
239 String packageName, int count) { in logPickerChoiceGrantsAdditionCount() argument
241 packageName, instanceId, count); in logPickerChoiceGrantsAdditionCount()
[all …]
/packages/modules/Bluetooth/system/gd/metrics/
Dcounter_metrics.cc53 bool CounterMetrics::CacheCount(int32_t key, int64_t count) { in CacheCount() argument
58 if (count <= 0) { in CacheCount()
59 log::warn("count is not larger than 0. count: {}, key: {}", count, key); in CacheCount()
67 if (LLONG_MAX - total < count) { in CacheCount()
68 log::warn("Counter metric overflows. count {} current total: {} key: {}", count, total, key); in CacheCount()
72 counters_[key] = total + count; in CacheCount()
76 bool CounterMetrics::Count(int32_t key, int64_t count) { in Count() argument
81 if (count <= 0) { in Count()
82 log::warn("count is not larger than 0. count: {}, key: {}", count, key); in Count()
85 os::LogMetricBluetoothCodePathCounterMetrics(key, count); in Count()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDatabaseStatsCollector.java40 long count = 0L; in getNumberOfIntervalRecordRows() local
44 count += in getNumberOfIntervalRecordRows()
49 return count; in getNumberOfIntervalRecordRows()
55 long count = 0L; in getNumberOfSeriesRecordRows() local
58 count += in getNumberOfSeriesRecordRows()
63 return count; in getNumberOfSeriesRecordRows()
69 long count = 0L; in getNumberOfInstantRecordRows() local
72 count += in getNumberOfInstantRecordRows()
77 return count; in getNumberOfInstantRecordRows()
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DConfigManager.cpp240 size_t count = 0; in readCameraMetadata() local
246 count); in readCameraMetadata()
248 aCamera->cameraMetadata.insert_or_assign(tag, std::make_pair(data, count)); in readCameraMetadata()
254 count); in readCameraMetadata()
581 size_t count = *reinterpret_cast<size_t*>(p); in readConfigDataFromBinary() local
587 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
588 p += count * sizeof(uint8_t); in readConfigDataFromBinary()
592 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
593 p += count * sizeof(int32_t); in readConfigDataFromBinary()
597 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
[all …]
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DConfigManager.cpp243 size_t count = 0; in readCameraMetadata() local
249 count); in readCameraMetadata()
251 aCamera->cameraMetadata.insert_or_assign(tag, std::make_pair(data, count)); in readCameraMetadata()
257 count); in readCameraMetadata()
581 const size_t count = *reinterpret_cast<size_t*>(p); in readConfigDataFromBinary() local
587 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
588 p += count * sizeof(uint8_t); in readConfigDataFromBinary()
592 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
593 p += count * sizeof(int32_t); in readConfigDataFromBinary()
597 add_camera_metadata_entry(aCamera->characteristics, tag, p, count); in readConfigDataFromBinary()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/dot/
DDotInfo.java52 if (prevKey.count == notificationKey.count) { in addOrUpdateNotificationKey()
56 mTotalCount -= prevKey.count; in addOrUpdateNotificationKey()
57 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
58 prevKey.count = notificationKey.count; in addOrUpdateNotificationKey()
63 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
74 mTotalCount -= notificationKey.count; in removeNotificationKey()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/
DCountingOutputStream.java26 private long count; field in CountingOutputStream
34 return count; in getCount()
38 public void write(byte[] buffer, int offset, int count) throws IOException { in write() argument
39 outputStream.write(buffer, offset, count); in write()
40 this.count += count; in write()
46 count++; in write()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/
DCapability.kt129 sealed class Ttl(count: Int, val isInfinite: Boolean = false) : Capability(TAG) {
131 val minutes: Int = count * when (this) {
142 require(count > 0 || isInfinite) { in <lambda>()
144 "but got count=$count and isInfinite=$isInfinite" in <lambda>()
158 data class Minutes(val count: Int) : Ttl(count) constant in com.android.libraries.pcc.chronicle.api.policy.capabilities.Capability.Minutes
159 data class Hours(val count: Int) : Ttl(count) constant in com.android.libraries.pcc.chronicle.api.policy.capabilities.Capability.Hours
160 data class Days(val count: Int) : Ttl(count) constant in com.android.libraries.pcc.chronicle.api.policy.capabilities.Capability.Days
161 data class Infinite(val count: Int = TTL_INFINITE) : Ttl(count, true) constant in com.android.libraries.pcc.chronicle.api.policy.capabilities.Capability.Infinite
178 val (_, count, units) = ttlMatch.groupValues in fromString() constant
182 "m", "minute", "minutes" -> Ttl.Minutes(count.toInt()) in fromString()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTestUtil.java55 expectedBucket.count, actualBucket.count); in assertHistogramBucketsEqual()
62 public static HistogramBucketInt32 buildHistogramBucketInt32(int start, int end, int count) { in buildHistogramBucketInt32() argument
66 bucket.count = count; in buildHistogramBucketInt32()
84 expectedKeyCount.count, actualKeyCount.count); in assertKeyCountsEqual()
91 public static Int32Count buildInt32Count(int key, int count) { in buildInt32Count() argument
94 keyCount.count = count; in buildInt32Count()
119 expectedFailureReasonCount.count, actualFailureReasonCount.count); in assertLinkProbeFailureReasonCountsEqual()
127 int count) { in buildLinkProbeFailureReasonCount() argument
130 failureReasonCount.count = count; in buildLinkProbeFailureReasonCount()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DIntArray.java139 final int count = values.mSize; in addAll() local
140 ensureCapacity(count); in addAll()
142 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
143 mSize += count; in addAll()
150 final int count = values.length; in addAll() local
151 ensureCapacity(count); in addAll()
153 System.arraycopy(values, 0, mValues, mSize, count); in addAll()
154 mSize += count; in addAll()
160 private void ensureCapacity(int count) { in ensureCapacity() argument
162 final int minCapacity = currentSize + count; in ensureCapacity()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java123 int count = mClickedSet.size(); in getSelectedCount() local
125 count = getTotalCount() - count; in getSelectedCount()
127 return count; in getSelectedCount()
139 int count = getSelectedCount(); in toggle() local
140 if (count == getTotalCount()) { in toggle()
145 if (count == 0 && mAutoLeave) { in toggle()
162 int count = index + batch < total in expandMediaSet() local
165 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet()
223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected() local
224 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count); in getSelected()
[all …]
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_ct.cc206 for (int count = 0; count < num_attrib_id; count++) { in avrc_bld_get_current_player_app_values_cmd() local
207 UINT8_TO_BE_STREAM(p_data, attrib_ids[count]); in avrc_bld_get_current_player_app_values_cmd()
236 for (int count = 0; count < num_attrib_id; count++) { in avrc_bld_set_current_player_app_values_cmd() local
237 UINT8_TO_BE_STREAM(p_data, p_val[count].attr_id); in avrc_bld_set_current_player_app_values_cmd()
238 UINT8_TO_BE_STREAM(p_data, p_val[count].attr_val); in avrc_bld_set_current_player_app_values_cmd()
266 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd() local
267 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd()
295 for (int count = 0; count < p_cmd->num_val; count++) { in avrc_bld_get_player_app_setting_value_text_cmd() local
296 UINT8_TO_BE_STREAM(p_data, p_cmd->vals[count]); in avrc_bld_get_player_app_setting_value_text_cmd()
328 for (int count = 0; count < num_attrib; count++) { in avrc_bld_get_element_attr_cmd() local
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DFixedLengthInputStream.java29 private int count; field in FixedLengthInputStream
38 return length - count; in available()
43 if (count < length) { in read()
44 count++; in read()
53 if (count < this.length) { in read()
54 int d = in.read(b, offset, Math.min(this.length - count, length)); in read()
58 count += d; in read()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
46 if (count < 1) break; in getMediaItem()
48 int fetchCount = (start + count <= size) ? count : size - start; in getMediaItem()
51 count -= fetchItems.size(); in getMediaItem()
62 int count = 0; in getMediaItemCount() local
64 count += set.getMediaItemCount(); in getMediaItemCount()
66 return count; in getMediaItemCount()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/cursor/
DCursors.kt23 fun Cursor.limit(count: Int): Cursor = in limit()
25 override fun getCount(): Int = minOf(count, super.getCount()) in limit()
27 override fun getPosition(): Int = super.getPosition().coerceAtMost(count) in limit()
54 override fun moveToNext(): Boolean = super.moveToNext() && position < count in Cursor()
61 override fun isFirst(): Boolean = count != 0 && super.getPosition() == newStartIndex in Cursor()
63 override fun isLast(): Boolean = count != 0 && super.isLast() in Cursor()
65 override fun isBeforeFirst(): Boolean = count == 0 || super.getPosition() < newStartIndex in Cursor()
67 override fun isAfterLast(): Boolean = count == 0 || super.isAfterLast() in Cursor()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherRestoreEventLoggerImpl.kt44 count: Int, in logLauncherItemsRestoreFailed()
48 restoreEventLogger.logItemsRestoreFailed(dataType, count, error) in logLauncherItemsRestoreFailed()
58 override fun logLauncherItemsRestored(@BackupRestoreDataType dataType: String, count: Int) { in logLauncherItemsRestored()
60 restoreEventLogger.logItemsRestored(dataType, count) in logLauncherItemsRestored()
81 override fun logFavoritesItemsRestored(favoritesId: Int, count: Int) { in logFavoritesItemsRestored()
83 restoreEventLogger.logItemsRestored(favoritesIdToDataType(favoritesId), count) in logFavoritesItemsRestored()
111 count: Int, in logFavoritesItemsRestoreFailed()
117 count, in logFavoritesItemsRestoreFailed()

12345678910>>...60