Searched refs:count (Results 201 - 225 of 1592) sorted by relevance

1234567891011>>

/frameworks/av/media/img_utils/include/img_utils/
H A DTiffWriter.h121 * - BAD_VALUE - The given count doesn't match the required count for
132 * was constructed with. The count and type are validated.
137 * - BAD_VALUE - The given count doesn't match the required count for
144 status_t addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd);
149 * with. The count and type are validated. If this succeeds, the resulting
155 * - BAD_VALUE - The given count doesn't match the required count for
161 status_t buildEntry(uint16_t tag, uint32_t count, cons
272 buildEntry(uint16_t tag, uint32_t count, const T* data, sp<TiffEntry>* outEntry) const argument
301 addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd) argument
314 uncheckedBuildEntry(uint16_t tag, TagType type, uint32_t count, Endianness end, const T* data) argument
[all...]
/frameworks/av/drm/mediacas/plugins/clearkey/
H A Decm.h58 // This contains 1 or 2 EcmDescriptors and a count. It contains no
249 // Contains a count and 1 or 2 EcmDescriptors. This is included in the video
254 // Wire size of the count field.
272 // - INTERNAL if the EcmContainer is in a bad state (count != 0, 1, or 2).
274 // - count() is within bounds (1 or 2).
282 // - ERROR_OUT_OF_RANGE if the count contained in the serialized EcmContainer
286 // - count() is within bounds (1 or 2) and.
291 // Sets the |count| of contained EcmDecriptors. Illegal values are silently
293 inline void set_count(size_t count) { argument
294 if (!CountLegal(count)) retur
299 inline size_t count() const { return count_; } function in class:android::clearkeycas::EcmContainer
[all...]
H A Decm.cpp155 size_t count = (count_bytes[0] << 8) | count_bytes[1]; local
156 // Check that count is a legal value.
157 if (!CountLegal(count)) {
158 ALOGE("Invalid descriptor count: expected %zu <= count <= %zu, received %zu.",
159 kMinDescriptorCount, kMaxDescriptorCount, count);
163 if (count > kMinDescriptorCount) {
165 kCountSizeBytes + (count * EcmDescriptor::kSizeBytes);
172 set_count(count);
/frameworks/av/include/media/
H A DMediaAnalyticsItem.h112 int32_t count() const;
118 void setRate(Attr, int64_t count, int64_t duration);
126 void addRate(Attr, int64_t count, int64_t duration);
134 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate);
149 int32_t filter(int count, Attr attrs[]);
150 int32_t filterNot(int count, Attr attrs[]);
228 struct { int64_t count, duration; } rate; member in struct:android::MediaAnalyticsItem::Prop::__anon79::__anon80
/frameworks/av/media/libmediametrics/include/
H A DMediaAnalyticsItem.h112 int32_t count() const;
118 void setRate(Attr, int64_t count, int64_t duration);
126 void addRate(Attr, int64_t count, int64_t duration);
134 bool getRate(Attr, int64_t *count, int64_t *duration, double *rate);
149 int32_t filter(int count, Attr attrs[]);
150 int32_t filterNot(int count, Attr attrs[]);
228 struct { int64_t count, duration; } rate; member in struct:android::MediaAnalyticsItem::Prop::__anon432::__anon433
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaMemoryTracer.cpp46 // Only count elements that contain "size", other values just provide metadata.
50 mTotalSize.count++;
61 mPurgeableSize.count++;
104 typeResult->second.count++;
137 const char* entry = (traceValue.count > 1) ? "entries" : "entry";
139 traceValue.value, traceValue.units, traceValue.count, entry);
145 const char* entry = (traceValue.count > 1) ? "entries" : "entry";
147 traceValue.value, traceValue.units, traceValue.count, entry);
/frameworks/native/libs/sensor/
H A DSensorEventQueue.cpp75 size_t count = min(numEvents, mAvailable); local
76 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent));
77 mAvailable -= count;
78 mConsumed += count;
79 return static_cast<ssize_t>(count);
172 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument
173 for (int i = 0; i < count; ++i) {
/frameworks/support/wear/src/main/java/androidx/wear/internal/widget/drawer/
H A DSinglePageUi.java100 public void initialize(int count) { argument
101 if (count < 0 || count >= SINGLE_PAGE_LAYOUT_RES.length
102 || SINGLE_PAGE_LAYOUT_RES[count] == 0) {
107 @LayoutRes int layoutRes = SINGLE_PAGE_LAYOUT_RES[count];
116 mSinglePageImageViews = new CircledImageView[count];
117 for (int i = 0; i < count; i++) {
/frameworks/base/libs/hwui/
H A DGradientCache.cpp44 uint32_t hash = JenkinsHashMix(0, count);
45 for (uint32_t i = 0; i < count; i++) {
53 int deltaInt = int(lhs.count) - int(rhs.count);
56 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t));
59 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float));
110 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
111 GradientCacheEntry gradient(colors, positions, count);
115 texture = addLinearGradient(gradient, colors, positions, count);
125 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, GradientInf argument
147 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DPagedStorage.java139 // Pages can only be null while tiled, so accessing page count is safe.
192 void onInitialized(int count); argument
196 void onPageInserted(int start, int count); argument
249 final int count = page.size();
250 if (count == 0) {
254 if (mPageSize > 0 && count != mPageSize) {
255 if (mPages.size() == 1 && count > mPageSize) {
257 mPageSize = count;
265 mStorageCount += count;
267 final int changedCount = Math.min(mLeadingNullCount, count);
[all...]
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/
H A Dwriter.kt103 val count = it.parameters.size
104 val paramString = generateParamString(count)
106 *takeParams(count, OWNER_PARAM, EVENT_PARAM))
170 val count = method.method.parameters.size
171 val callType = 1 shl count
177 val paramString = generateParamString(count)
180 *takeParams(count, OWNER_PARAM, EVENT_PARAM))
183 val paramString = generateParamString(count + 1)
188 *takeParams(count + 1, receiverField, OWNER_PARAM, EVENT_PARAM))
195 private fun takeParams(count
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java40 int count; field in class:CompositeCursorAdapter.Partition
59 return count == 0;
173 int count;
175 count = 0;
177 count = cursor.getCount();
180 if (count != 0 || partition.showIfEmpty) {
181 count++;
184 partition.count = count;
185 mCount += count;
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DSmsMessageConverter.java75 byte count;
101 count = (byte) cdmaSmsMessage.address.digits.size();
102 addr.numberOfDigits = count;
103 data = new byte[count];
104 for (int index=0; index < count; index++) {
117 count = (byte) cdmaSmsMessage.subAddress.digits.size();
119 if (count < 0) {
120 count = 0;
125 data = new byte[count];
127 for (int index = 0; index < count;
[all...]
/frameworks/av/services/camera/libcameraservice/utils/
H A DTagMonitor.cpp129 if (entry.count > 0) {
131 if (lastEntry.count > 0) {
134 lastEntry.count == entry.count) {
135 // Same type and count, compare values
137 size_t entryBytes = bytesPerValue * lastEntry.count;
158 } else if (lastEntry.count > 0) {
167 entry.count = 0;
217 int type, int count, int indentation) {
230 int lines = count / values_per_lin
216 printData(int fd, const uint8_t *data_ptr, uint32_t tag, int type, int count, int indentation) argument
[all...]
/frameworks/support/v7/recyclerview/src/test/java/androidx/recyclerview/widget/
H A DAdapterHelperTest.java203 void setupBasic(int count, int visibleStart, int visibleCount) { argument
205 log("setupBasic(" + count + "," + visibleStart + "," + visibleCount + ");");
207 mTestAdapter = new TestAdapter(count, mAdapterHelper);
867 final int count = 10;// + nextInt(random,100);
868 final int start = nextInt(random, count - 1);
869 final int layoutCount = Math.max(1, nextInt(random, count - start));
870 setupBasic(count, start, layoutCount);
984 private AdapterHelper.UpdateOp op(int cmd, int start, int count) { argument
985 return new AdapterHelper.UpdateOp(cmd, start, count, null);
988 private AdapterHelper.UpdateOp op(int cmd, int start, int count, Objec argument
992 rmOp(int start, int count) argument
996 upOp(int start, int count, @SuppressWarnings (�) Object payload) argument
1001 add(int start, int count) argument
1024 rm(int start, int count) argument
1037 up(int start, int count) argument
1044 up(int start, int count, Object payload) argument
1068 add(int index, int count) argument
1086 remove(int index, int count) argument
1095 update(int index, int count) argument
1099 update(int index, int count, Object payload) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTableLayout.java209 final int count = getChildCount();
210 for (int i = 0; i < count; i++) {
222 int count = getChildCount();
223 for (int i = 0; i < count; i++) {
292 int count = getChildCount();
293 for (int i = 0; i < count; i++) {
381 final int count = collapsedColumns.size();
382 for (int i = 0; i < count; i++) {
493 final int count = getChildCount();
494 for (int i = 0; i < count;
[all...]
H A DRemoteViewsService.java152 int count = 0;
154 count = mFactory.getCount();
159 return count;
185 int count = 0;
187 count = mFactory.getViewTypeCount();
192 return count;
H A DSimpleCursorAdapter.java137 final int count = mTo.length;
141 for (int i = 0; i < count; i++) {
328 int count = from.length;
329 if (mFrom == null || mFrom.length != count) {
330 mFrom = new int[count];
332 for (i = 0; i < count; i++) {
/frameworks/av/drm/libmediadrm/tests/
H A DEventMetric_test.cpp62 EXPECT_EQ(1, values[7].count);
68 EXPECT_EQ(6, values[8].count);
91 EXPECT_EQ(1, values["a"].count);
96 EXPECT_EQ(4, values["b"].count);
133 EXPECT_EQ(3, values[0].count);
139 EXPECT_EQ(2, values[1].count);
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp66 ssize_t MonoPipe::write(const void *buffer, size_t count) argument
72 while (count > 0) {
73 ssize_t actual = mFifoWriter.write(buffer, count);
74 ALOG_ASSERT(actual <= count);
86 count -= written;
121 ns = count * (1350000000 / Format_sampleRate(mFormat));
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
H A DMediaRouteProviderDescriptor.java57 final int count = routeBundles.size();
58 mRoutes = new ArrayList<MediaRouteDescriptor>(count);
59 for (int i = 0; i < count; i++) {
198 final int count = mRoutes.size();
199 ArrayList<Bundle> routeBundles = new ArrayList<Bundle>(count);
200 for (int i = 0; i < count; i++) {
/frameworks/base/core/java/android/text/
H A DAutoGrowArray.java95 * Ensures capacity to append at least <code>count</code> values.
97 private void ensureCapacity(@IntRange int count) { argument
98 final int requestedSize = mSize + count;
204 * Ensures capacity to append at least <code>count</code> values.
206 private void ensureCapacity(@IntRange(from = 0) int count) { argument
207 final int requestedSize = mSize + count;
313 * Ensures capacity to append at least <code>count</code> values.
315 private void ensureCapacity(int count) { argument
316 final int requestedSize = mSize + count;
/frameworks/base/core/java/android/util/
H A DIntArray.java137 final int count = values.mSize;
138 ensureCapacity(count);
140 System.arraycopy(values.mValues, 0, mValues, mSize, count);
141 mSize += count;
145 * Ensures capacity to append at least <code>count</code> values.
147 private void ensureCapacity(int count) { argument
149 final int minCapacity = currentSize + count;
H A DLongArray.java123 final int count = values.mSize;
124 ensureCapacity(count);
126 System.arraycopy(values.mValues, 0, mValues, mSize, count);
127 mSize += count;
131 * Ensures capacity to append at least <code>count</code> values.
133 private void ensureCapacity(int count) { argument
135 final int minCapacity = currentSize + count;
/frameworks/base/libs/common_time/
H A Dutils.cpp96 ++last->count;
100 mRingBuffer[mWr].count = 1;
125 size_t count = mIsFull ? mSize : mWr; local
132 for (size_t i = 0; i < count; ++i) {
138 if (1 != mRingBuffer[ndx].count) {
143 mRingBuffer[ndx].count,

Completed in 458 milliseconds

1234567891011>>