/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | GenreItemTest.java | 46 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/Wifi/service/java/com/android/server/wifi/util/ |
D | IntHistogram.java | 55 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 …]
|
D | IntCounter.java | 39 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/evs/sampleDriver/ |
D | ConfigManager.cpp | 265 size_t count = 0; in readCameraMetadata() local 269 count in readCameraMetadata() 273 tag, make_pair(data, count) in readCameraMetadata() 278 get_camera_metadata_tag_type(tag), count in readCameraMetadata() 631 size_t count = *reinterpret_cast<size_t *>(p); p += sizeof(size_t); in readConfigDataFromBinary() local 639 count); in readConfigDataFromBinary() 640 p += count * sizeof(uint8_t); in readConfigDataFromBinary() 647 count); in readConfigDataFromBinary() 648 p += count * sizeof(int32_t); in readConfigDataFromBinary() 655 count); in readConfigDataFromBinary() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/ |
D | SearchCursorManager.java | 181 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTestUtil.java | 55 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/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 123 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/apps/Contacts/src/com/android/contacts/list/ |
D | ContactEntryListAdapter.java | 180 int count = getPartitionCount(); in getPartitionByDirectoryId() local 181 for (int i = 0; i < count; i++) { in getPartitionByDirectoryId() 193 int count = getPartitionCount(); in getDirectoryById() local 194 for (int i = 0; i < count; i++) { in getDirectoryById() 214 int count = getPartitionCount(); in onDataReload() local 215 for (int i = 0; i < count; i++) { in onDataReload() 232 int count = getPartitionCount(); in clearPartitions() local 233 for (int i = 0; i < count; i++) { in clearPartitions() 443 int count = getPartitionCount(); in changeDirectories() local 444 for (int i = count; --i >= 0; ) { in changeDirectories() [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | ModelBuilder.cpp | 539 static void logRemoval(const Operation& operation, uint32_t count, in logRemoval() argument 549 message << "} has trailing optional inputs set to default values. Removing " << count in logRemoval() 556 const uint32_t count = getNumTrailingArgumentsToRemove(operation); in removeTrailingArgumentsWithDefaultValues() local 557 if (count == 0) { in removeTrailingArgumentsWithDefaultValues() 561 logRemoval(operation, count, mOperands); in removeTrailingArgumentsWithDefaultValues() 564 CHECK_LT(count, inputCount); in removeTrailingArgumentsWithDefaultValues() 565 const uint32_t newInputCount = inputCount - count; in removeTrailingArgumentsWithDefaultValues() 617 uint32_t count = 0; in countMatchingTrailingArguments() local 623 ++count; in countMatchingTrailingArguments() 625 return count; in countMatchingTrailingArguments() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dot/ |
D | DotInfo.java | 54 if (prevKey.count == notificationKey.count) { in addOrUpdateNotificationKey() 58 mTotalCount -= prevKey.count; in addOrUpdateNotificationKey() 59 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey() 60 prevKey.count = notificationKey.count; in addOrUpdateNotificationKey() 65 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey() 76 mTotalCount -= notificationKey.count; in removeNotificationKey()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogPerfServiceTest.cpp | 189 .count(), in TEST() 194 .count(), in TEST() 240 ASSERT_EQ(servicePeer.looperStub->numSecondsElapsed(), kTestBoottimeCollectionInterval.count()) in TEST() 242 << kTestBoottimeCollectionInterval.count() << " seconds interval"; in TEST() 272 ASSERT_EQ(servicePeer.looperStub->numSecondsElapsed(), kTestPeriodicMonitorInterval.count()) in TEST() 273 << "First periodic monitor didn't happen at " << kTestPeriodicMonitorInterval.count() in TEST() 283 ASSERT_EQ(servicePeer.looperStub->numSecondsElapsed(), kTestPeriodicMonitorInterval.count()) in TEST() 284 << "Second periodic monitor didn't happen at " << kTestPeriodicMonitorInterval.count() in TEST() 309 args.push_back(String16(std::to_string(kTestCustomCollectionInterval.count()).c_str())); in TEST() 311 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | TlvBufferUtilsTest.java | 172 int count = 0; in testTlvIterate() local 174 if (count == 0) { in testTlvIterate() 178 } else if (count == 1) { in testTlvIterate() 183 } else if (count == 2) { in testTlvIterate() 190 ++count; in testTlvIterate() 192 if (count != 3) { in testTlvIterate() 205 count = 0; in testTlvIterate() 207 if (count == 0) { in testTlvIterate() 211 } else if (count == 1) { in testTlvIterate() 216 } else if (count == 2) { in testTlvIterate() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/ |
D | CountingOutputStream.java | 26 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/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ObjectCounterTest.java | 89 public int count; field in ObjectCounterTest.TestKeyProto 91 public TestKeyProto(int key1, String key2, boolean key3, int count) { in TestKeyProto() argument 95 this.count = count; in TestKeyProto() 105 && count == that.count in equals() 111 return Objects.hash(key1, key2, key3, count); in hashCode() 127 (TestKey key, int count) -> new TestKeyProto(key.key1, key.key2, key.key3, count);
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | SQLiteContentProvider.java | 147 int count = 0; in update() local 155 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 157 if (count > 0) { in update() 168 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 170 if (count > 0) { in update() 175 return count; in update() 180 int count = 0; in delete() local 188 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete() 189 if (count > 0) { in delete() 200 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | ComboAlbum.java | 42 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/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_reader.cpp | 117 int32_t JpegReader::read(int8_t* bytes, int32_t offset, int32_t count) { in read() argument 128 if (count <= 0) { in read() 131 int32_t total_length = count; in read() 133 if (count < mScanlineBytesRemaining) { in read() 138 count * sizeof(int8_t)); in read() 140 mScanlineBytesRemaining -= count; in read() 141 mScanlineIter += count; in read() 143 } else if (count > 0) { in read() 151 count -= mScanlineBytesRemaining; in read() 171 return total_length - count; in read()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | AnglesClassifier.java | 98 private float count; field in AnglesClassifier.Data 113 count = secondCount = 1.0f; in Data() 152 firstAngleVariance = getAnglesVariance(sumSquares, sum, count); in addPoint() 164 count += 1.0f; in addPoint() 170 public float getAnglesVariance(float sumSquares, float sum, float count) { in getAnglesVariance() argument 171 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance() 175 float anglesVariance = getAnglesVariance(sumSquares, sum, count); in getAnglesVariance()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | FixedLengthInputStream.java | 29 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/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 165 final Rect transitionRect, final int count) { in bindAttachments() argument 171 determineLayout(attachments, count); in bindAttachments() 209 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() argument 213 mCurrentLayout = ATTACHMENT_RTL_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout() 216 mCurrentLayout = ATTACHMENT_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout() 223 mPlusNumber = count - mCurrentLayout.tiles.size(); in determineLayout() 230 final int count = mCurrentLayout.tiles.size(); in buildViews() local 233 while (iterator.hasNext() && i < count) { in buildViews() 264 if (count == 2 && i == 1 && transitionRect != null) { in buildViews() 309 final int count = mPreviewViews.size(); in onMeasure() local [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 190 final int count = imiList.size(); in getImiIndexInList() local 191 for (int index = 0; index < count; index++) { in getImiIndexInList() 203 final int count = imiList.size(); in getNextNonAuxiliaryIme() local 204 for (int i = 1; i < count; i++) { in getNextNonAuxiliaryIme() 205 final int nextIndex = (currentIndex + i) % count; in getNextNonAuxiliaryIme() 216 final int count = imi.getSubtypeCount(); in isAuxiliaryIme() local 217 if (count == 0) { in isAuxiliaryIme() 220 for (int index = 0; index < count; index++) { in isAuxiliaryIme() 312 final int count = subtypes.size(); in getSubtypeIndexInList() local 313 for (int index = 0; index < count; index++) { in getSubtypeIndexInList() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | IntArray.java | 96 final int count = values.mSize; in addAll() local 97 ensureCapacity(count); in addAll() 99 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll() 100 mSize += count; in addAll() 114 private void ensureCapacity(int count) { in ensureCapacity() argument 116 final int minCapacity = currentSize + count; in ensureCapacity() 255 int count = 0; in fromConcatString() local 257 array[count] = Integer.parseInt(tokenizer.nextToken().trim()); in fromConcatString() 258 count++; in fromConcatString()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | stack.h | 111 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) { 113 if (stackTop_ + sizeof(T) * count >= stackEnd_) 114 Expand<T>(count); 117 stackTop_ += sizeof(T) * count; 122 T* Pop(size_t count) { in Pop() argument 123 RAPIDJSON_ASSERT(GetSize() >= count * sizeof(T)); in Pop() 124 stackTop_ -= count * sizeof(T); in Pop() 151 void Expand(size_t count) { in Expand() argument 162 size_t newSize = GetSize() + sizeof(T) * count; in Expand()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoPerfCollection.cpp | 58 uint64_t count = 0; member 102 if (it->count < ioBlockedTasksCnt) { in getUidProcessStats() 107 .count = ioBlockedTasksCnt, in getUidProcessStats() 115 if (it->count < stats.process.majorFaults) { in getUidProcessStats() 120 .count = stats.process.majorFaults, in getUidProcessStats() 218 uidStats.packageName.c_str(), uidStats.count, in toString() 219 percentage(uidStats.count, data.totalMajorFaults)); in toString() 222 procStats.count, percentage(procStats.count, uidStats.count)); in toString() 237 uidStats.packageName.c_str(), uidStats.count, in toString() 238 percentage(uidStats.count, data.topNIoBlockedUidsTotalTaskCnt[i])); in toString() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Exif.java | 83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; in getOrientation() local 84 if (count < 10 || count > length) { in getOrientation() 88 offset += count; in getOrientation() 89 length -= count; in getOrientation() 92 count = pack(jpeg, offset - 2, 2, littleEndian); in getOrientation() 93 while (count-- > 0 && length >= 12) { in getOrientation()
|