Searched refs:count (Results 276 - 300 of 1592) sorted by relevance

<<11121314151617181920>>

/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
H A DEmojiTextViewHelper.java166 final int count = filters.length;
167 for (int i = 0; i < count; i++) {
173 System.arraycopy(filters, 0, newFilters, 0, count);
174 newFilters[count] = mEmojiInputFilter;
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/
H A DStringPagedList.kt46 override fun onInitialized(count: Int) {}
54 override fun onPageInserted(start: Int, count: Int) {}
/frameworks/base/test-runner/src/android/test/
H A DViewAsserts.java326 * Assert the specified group's integrity. The children count should be >= 0 and each
332 final int count = parent.getChildCount();
333 assertTrue("child count should be >= 0", count >= 0);
335 for (int i = 0; i < count; i++) {
348 final int count = parent.getChildCount();
349 assertTrue("Child count should be >= 0", count >= 0);
352 for (int i = 0; i < count; i++) {
372 final int count
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DAsyncListUtilTest.java113 mViewCallback.waitForDataSetChanged("increasing item count");
114 mDataCallback.waitForTiles("increasing item count");
119 mViewCallback.waitForDataSetChanged("decreasing item count");
120 mDataCallback.waitForTiles("decreasing item count");
126 final int count = 20;
128 assertLoadedItemsOnUiThread("no new items should be loaded", 0, position, count);
130 mViewCallback.expectItemRangeChanged(position, count);
134 assertLoadedItemsOnUiThread("all new items should be loaded", count, position, count);
172 final int count) throw
169 assertLoadedItemsOnUiThread(final String message, final int expectedCount, final int position, final int count) argument
326 expectRange(int position, int count) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dintbufq.c171 uintptr_t count = 0; local
182 count = count * 10 + (ch - '0');
184 count = ch - '0';
203 expectedContext = (void *) count;
216 for (i = 0; i < (in_count ? count : 1); ++i) {
227 if (bufqstate.count != 0)
228 printf("\rcount=%u\r\n", (unsigned) bufqstate.count);
239 printf("count=%u\r\n", (unsigned) bufqstate.count);
[all...]
/frameworks/base/libs/hwui/
H A DSkiaCanvasProxy.cpp48 void SkiaCanvasProxy::onDrawPoints(PointMode pointMode, size_t count, const SkPoint pts[], argument
50 if (!pts || count == 0) {
56 const size_t floatCount = count << 1;
73 for (size_t i = 0; i < count - 1; i++) {
254 count = byteLength >> 1;
259 count = paint.textToGlyphs(text, byteLength, storage.get());
266 int count; member in class:android::uirenderer::GlyphIDConverter
278 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]);
279 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get());
285 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count <<
[all...]
/frameworks/native/services/sensorservice/
H A DSensorEventConnection.cpp229 int count = 0; local
277 scratch[count++] = buffer[i];
282 scratch[count++] = buffer[i];
294 count = numEvents;
299 scratch[count++] = buffer[i++];
307 if (count == 0) {
313 mEventsReceived += count;
318 if (mCacheSize + count <= mMaxCacheSize) {
319 memcpy(&mEventCache[mCacheSize], scratch, count * sizeof(sensors_event_t));
320 mCacheSize += count;
406 reAllocateCacheLocked(sensors_event_t const* scratch, int count) argument
539 findWakeUpSensorEventLocked( sensors_event_t const* scratch, const int count) argument
[all...]
/frameworks/native/vulkan/libvulkan/
H A Ddriver.cpp124 VkResult QueryExtensionCount(uint32_t& count) const;
125 VkResult EnumerateExtensions(uint32_t& count,
263 uint32_t count; local
264 if (dev_->EnumerateInstanceExtensionProperties(nullptr, &count, nullptr) !=
266 ALOGE("failed to get HAL instance extension count");
271 malloc(sizeof(VkExtensionProperties) * count));
277 if (dev_->EnumerateInstanceExtensionProperties(nullptr, &count, exts) !=
284 for (uint32_t i = 0; i < count; i++) {
422 VkResult CreateInfoWrapper::QueryExtensionCount(uint32_t& count) const {
425 nullptr, &count, nullpt
433 EnumerateExtensions( uint32_t& count, VkExtensionProperties* props) const argument
448 uint32_t count; local
799 uint32_t count = std::min( local
920 uint32_t count = std::min( local
[all...]
/frameworks/base/core/java/android/content/
H A DUndoManager.java225 * Perform undo of last/top <var>count</var> undo states. The states impacted
230 * @param count Number of undo states to pop.
233 public int undo(UndoOwner[] owners, int count) { argument
248 while (count > 0 && (i=findPrevState(mUndos, owners, i)) >= 0) {
252 count--;
262 * Perform redo of last/top <var>count</var> undo states in the transient redo stack.
267 * @param count Number of undo states to pop.
270 public int redo(UndoOwner[] owners, int count) { argument
280 while (count > 0 && (i=findPrevState(mRedos, owners, i)) >= 0) {
284 count
302 forgetUndos(UndoOwner[] owners, int count) argument
323 forgetRedos(UndoOwner[] owners, int count) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java135 final int count = strokes.size();
139 for (int index = 0; index < count; index++) {
284 int count = pts.length / 2;
285 while (i < count) {
288 if (i >= count) {
333 int count = points.length;
334 for (int i = 0; i < count; i++) {
340 center[0] = 2 * centerX / count;
341 center[1] = 2 * centerY / count;
358 int count
[all...]
/frameworks/ml/nn/runtime/
H A DExecutionBuilder.cpp108 uint32_t count = newType->dimensionCount; local
110 count != operand.dimensions.size()) {
115 dimensions = hidl_vec<uint32_t>(count);
116 for (uint32_t i = 0; i < count; i++) {
139 uint32_t count = static_cast<uint32_t>(mInputs.size()); local
140 if (index >= count) {
141 LOG(ERROR) << "ANeuralNetworksExecution_setInput bad index " << index << " " << count; local
163 uint32_t count = static_cast<uint32_t>(mInputs.size()); local
164 if (index >= count) {
166 << count; local
180 uint32_t count = static_cast<uint32_t>(mOutputs.size()); local
182 LOG(ERROR) << "ANeuralNetworksExecution_setOutput bad index " << index << " " << count; local
203 uint32_t count = static_cast<uint32_t>(mOutputs.size()); local
206 << count; local
447 size_t count = argumentInfos.size(); local
615 uint32_t count = mMemories.size(); local
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DEventRecurrence.java53 public int count; field in class:EventRecurrence
296 int count, int[] values)
298 if (count > 0) {
300 count--;
301 for (int i=0; i<count; i++) {
305 s.append(values[count]);
356 if (this.count != 0) {
358 s.append(this.count);
376 int count = this.bydayCount;
377 if (count >
295 appendNumbers(StringBuilder s, String label, int count, int[] values) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java1040 int count = data_length / eSize;
1041 if ((eSize * count) != data_length) {
1045 copy1DRangeFromUnchecked(xoff, count, data);
1100 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { argument
1105 if(count < 1) {
1108 if((off + count) > mCurrentCount) {
1109 throw new RSIllegalArgumentException("Overflow, Available count " + mCurrentCount +
1110 ", got " + count + " at offset " + off + ".");
1137 private void copy1DRangeFromUnchecked(int off, int count, Object array, argument
1141 final int dataSize = mType.mElement.getBytesSize() * count;
1178 copy1DRangeFromUnchecked(int off, int count, Object array) argument
1206 copy1DRangeFromUnchecked(int off, int count, int[] d) argument
1232 copy1DRangeFromUnchecked(int off, int count, short[] d) argument
1258 copy1DRangeFromUnchecked(int off, int count, byte[] d) argument
1284 copy1DRangeFromUnchecked(int off, int count, float[] d) argument
1312 copy1DRangeFrom(int off, int count, Object array) argument
1342 copy1DRangeFrom(int off, int count, int[] d) argument
1371 copy1DRangeFrom(int off, int count, short[] d) argument
1400 copy1DRangeFrom(int off, int count, byte[] d) argument
1429 copy1DRangeFrom(int off, int count, float[] d) argument
1443 copy1DRangeFrom(int off, int count, Allocation data, int dataOff) argument
2091 copy1DRangeToUnchecked(int off, int count, Object array, Element.DataType dt, int arrayLen) argument
2131 copy1DRangeToUnchecked(int off, int count, Object array) argument
2159 copy1DRangeToUnchecked(int off, int count, int[] d) argument
2185 copy1DRangeToUnchecked(int off, int count, short[] d) argument
2211 copy1DRangeToUnchecked(int off, int count, byte[] d) argument
2237 copy1DRangeToUnchecked(int off, int count, float[] d) argument
2265 copy1DRangeTo(int off, int count, Object array) argument
2295 copy1DRangeTo(int off, int count, int[] d) argument
2324 copy1DRangeTo(int off, int count, short[] d) argument
2353 copy1DRangeTo(int off, int count, byte[] d) argument
2382 copy1DRangeTo(int off, int count, float[] d) argument
2721 createSized(RenderScript rs, Element e, int count, int usage) argument
2749 createSized(RenderScript rs, Element e, int count) argument
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES30.spec2 void glDrawRangeElements ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices )
3 void glDrawRangeElements ( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLsizei offset )
23 void glUniformMatrix2x3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
24 void glUniformMatrix3x2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
25 void glUniformMatrix2x4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
26 void glUniformMatrix4x2fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
27 void glUniformMatrix3x4fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
28 void glUniformMatrix4x3fv ( GLint location, GLsizei count, GLboolean transpose, const GLfloat *value )
43 void glTransformFeedbackVaryings ( GLuint program, GLsizei count, const GLchar *varyings, GLenum bufferMode )
59 void glUniform1uiv ( GLint location, GLsizei count, cons
[all...]
/frameworks/base/core/java/android/util/
H A DBase64.java574 private int count; field in class:Base64.Encoder
592 count = do_newline ? LINE_GROUPS : -1;
608 int count = this.count;
650 if (--count == 0) {
653 count = LINE_GROUPS;
672 if (--count == 0) {
675 count = LINE_GROUPS;
714 } else if (do_newline && op > 0 && count != LINE_GROUPS) {
734 this.count
[all...]
/frameworks/av/camera/
H A DCameraUtils.cpp42 if (entry.count == 0) {
48 if (entryFacing.count == 0) {
/frameworks/av/camera/ndk/include/camera/
H A DNdkCameraMetadata.h110 * Count of elements (NOT count of bytes) in this metadata entry.
112 uint32_t count; member in struct:ACameraMetadata_entry
117 * <p>The type field above defines which union member pointer is valid. The count field above
155 * Count of elements (NOT count of bytes) in this metadata entry.
157 uint32_t count; member in struct:ACameraMetadata_const_entry
162 * <p>The type field above defines which union member pointer is valid. The count field above
/frameworks/av/media/img_utils/src/
H A DFileInput.cpp48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { argument
54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp);
H A DFileOutput.cpp47 status_t FileOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp);
/frameworks/av/media/libnbaio/
H A DLibsndfileSource.cpp46 ssize_t LibsndfileSource::read(void *buffer, size_t count) argument
54 sf_count_t actual = sf_readf_short(mSndfile, (short *) buffer, (sf_count_t) count);
/frameworks/av/media/mtp/
H A DPosixAsyncIO.cpp72 void aio_prepare(struct aiocb *aiocbp, void* buf, size_t count, off_t offset) { argument
75 aiocbp->aio_nbytes = count;
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DNumericalWatcher.java57 final public void beforeTextChanged(CharSequence s, int start, int count, int after) {} argument
60 final public void onTextChanged(CharSequence s, int start, int before, int count) {} argument
/frameworks/base/core/java/android/nfc/
H A DApduList.java41 int count = in.readInt();
43 for (int i = 0 ; i < count ; i++) {
/frameworks/base/core/java/android/os/health/
H A DHealthStatsWriter.java92 public void addTimer(int timerId, int count, long time) { argument
96 mTimerCounts[index] = count;
225 int count = 0;
229 count++;
232 return count;
239 int count = 0;
243 count++;
246 return count;
/frameworks/base/core/java/android/service/voice/
H A DIVoiceInteractionSession.aidl34 int index, int count);

Completed in 229 milliseconds

<<11121314151617181920>>