Searched refs:count (Results 251 - 275 of 1384) sorted by relevance

<<11121314151617181920>>

/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/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DFlowLayout.java41 final int count = getChildCount();
54 for (int i = 0; i < count; i++) {
92 final int count = getChildCount();
97 for (int i = 0; i < count; i++) {
/frameworks/base/tools/aapt/
H A DWorkQueue.cpp82 size_t count = mWorkUnits.size(); local
83 for (size_t i = 0; i < count; i++) {
107 size_t count = mWorkThreads.size(); local
108 for (size_t i = 0; i < count; i++) {
/frameworks/base/tools/aapt2/io/
H A DBigBufferInputStream.h34 void BackUp(size_t count) override;
/frameworks/minikin/include/minikin/
H A DLayout.h74 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
78 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
93 // buffer must match the length of the string (count arg to doLayout).
96 // The i parameter is an offset within the buf relative to start, it is < count, where
97 // start and count are the parameters to doLayout
122 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
127 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
/frameworks/native/cmds/installd/
H A Dglobals.h39 size_t count; member in struct:android::installd::dir_rec_array_t
/frameworks/native/libs/vr/libbufferhubqueue/tests/
H A Dbuffer_hub_queue-test.cpp107 ASSERT_EQ(producer_queue_->count(), i + 1);
111 ASSERT_EQ(consumer_queue_->count(), 0U);
158 ASSERT_EQ(kBufferCount, producer_queue_->count());
179 EXPECT_EQ(0u, silent_queue->count());
181 EXPECT_EQ(0u, silent_queue->count());
189 EXPECT_EQ(1u, consumer_queue_->count());
193 ASSERT_EQ(kBufferCount - 1, producer_queue_->count());
203 EXPECT_EQ(1u, consumer_queue_->count());
205 EXPECT_EQ(2u, consumer_queue_->count());
216 EXPECT_EQ(1u, consumer_queue_->count());
[all...]
/frameworks/native/services/sensorservice/
H A DBatteryService.cpp44 info.count++;
45 return info.count == 1;
53 info.count--;
54 return info.count == 0;
H A DCorrectedGyroSensor.h38 CorrectedGyroSensor(sensor_t const* list, size_t count);
H A DGravitySensor.h38 GravitySensor(sensor_t const* list, size_t count);
H A DLinearAccelerationSensor.h41 LinearAccelerationSensor(sensor_t const* list, size_t count);
H A DSensorEventConnection.cpp213 int count = 0; local
261 scratch[count++] = buffer[i];
266 scratch[count++] = buffer[i++];
275 count = numEvents;
280 if (count == 0) {
285 mEventsReceived += count;
290 if (mCacheSize + count <= mMaxCacheSize) {
291 memcpy(&mEventCache[mCacheSize], scratch, count * sizeof(sensors_event_t));
292 mCacheSize += count;
296 if (mCacheSize + count < computeMaxCacheSizeLocke
366 reAllocateCacheLocked(sensors_event_t const* scratch, int count) argument
489 findWakeUpSensorEventLocked( sensors_event_t const* scratch, const int count) argument
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DFakeSmsContentProvider.java57 "count INTEGER," + // the number of parts
95 int count = 0;
100 count = db.update(RAW_TABLE_NAME, cv, selection, selectionArgs);
104 count = db.delete(RAW_TABLE_NAME, selection, selectionArgs);
107 return count;
/frameworks/support/design/src/android/support/design/internal/
H A DBaselineLayout.java47 final int count = getChildCount();
54 for (int i = 0; i < count; i++) {
85 final int count = getChildCount();
91 for (int i = 0; i < count; i++) {
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
H A DEmojiTextViewHelper.java165 final int count = filters.length;
166 for (int i = 0; i < count; i++) {
172 System.arraycopy(filters, 0, newFilters, 0, count);
173 newFilters[count] = mEmojiInputFilter;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
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/native/vulkan/libvulkan/
H A Ddriver.cpp116 VkResult QueryExtensionCount(uint32_t& count) const;
117 VkResult EnumerateExtensions(uint32_t& count,
253 uint32_t count; local
254 if (dev_->EnumerateInstanceExtensionProperties(nullptr, &count, nullptr) !=
256 ALOGE("failed to get HAL instance extension count");
261 malloc(sizeof(VkExtensionProperties) * count));
267 if (dev_->EnumerateInstanceExtensionProperties(nullptr, &count, exts) !=
274 for (uint32_t i = 0; i < count; i++) {
406 VkResult CreateInfoWrapper::QueryExtensionCount(uint32_t& count) const {
409 nullptr, &count, nullpt
417 EnumerateExtensions( uint32_t& count, VkExtensionProperties* props) const argument
432 uint32_t count; local
727 uint32_t count = std::min( local
835 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/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++) {
266 count = byteLength >> 1;
271 count = paint.textToGlyphs(text, byteLength, storage.get());
278 int count; member in class:android::uirenderer::GlyphIDConverter
289 std::unique_ptr<SkPoint[]> pointStorage(new SkPoint[glyphs.count]);
290 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]);
291 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count <<
[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...]

Completed in 9052 milliseconds

<<11121314151617181920>>