Searched refs:count (Results 51 - 75 of 1384) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DProfileRenderer.cpp27 void ProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { argument
28 mRenderer.drawRects(rects, count, &paint);
/frameworks/base/libs/hwui/tests/unit/
H A DFatVectorTests.cpp96 int count = 0; local
100 v.emplace_back(&count);
102 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet";
104 EXPECT_EQ(1, count) << "Destruction should happen exactly once";
108 int count = 0; local
113 v.emplace_back(&count);
116 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet";
118 EXPECT_EQ(10, count) << "Destruction should happen exactly once";
/frameworks/base/tools/aapt2/
H A DLocale_test.cpp31 ssize_t count = lv.InitFromParts(std::begin(parts), std::end(parts)); local
32 if (count < 0) {
37 if (count != 1) {
39 << count << " parts were consumed parsing '" << input
58 ssize_t count = lv.InitFromParts(std::begin(parts), std::end(parts)); local
59 if (count < 0) {
64 if (count != 2) {
66 << count << " parts were consumed parsing '" << input
/frameworks/minikin/include/minikin/
H A DGraphemeBreak.h37 size_t count, size_t offset);
42 size_t count, size_t offset, MoveOpt opt);
/frameworks/av/camera/include/camera/ndk/
H A DNdkCaptureRequest.h187 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
191 * @param count number of elements to be set in data argument
196 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
201 ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data);
206 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
210 * @param count number of elements to be set in data argument
215 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
220 ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data);
225 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
229 * @param count numbe
[all...]
/frameworks/av/include/camera/ndk/
H A DNdkCaptureRequest.h187 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
191 * @param count number of elements to be set in data argument
196 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
201 ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data);
206 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
210 * @param count number of elements to be set in data argument
215 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
220 ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data);
225 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
229 * @param count numbe
[all...]
/frameworks/base/tools/aapt2/io/
H A DBigBufferStreams.cpp47 void BigBufferInputStream::BackUp(size_t count) { argument
48 if (count > offset_) {
52 offset_ -= count;
53 bytes_read_ -= count;
79 void BigBufferOutputStream::BackUp(size_t count) { buffer_->BackUp(count); } argument
/frameworks/native/libs/sensor/include/sensor/
H A DBitTube.h54 T const* events, size_t count) {
55 return sendObjects(tube, events, count, sizeof(T));
62 T* events, size_t count) {
63 return recvObjects(tube, events, count, sizeof(T));
83 void const* events, size_t count, size_t objSize);
86 void* events, size_t count, size_t objSize);
53 sendObjects(const sp<BitTube>& tube, T const* events, size_t count) argument
61 recvObjects(const sp<BitTube>& tube, T* events, size_t count) argument
/frameworks/base/core/jni/
H A Dandroid_text_AndroidCharacter.cpp55 jbyteArray destArray, jint count)
66 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) {
71 for (int i = 0; i < count; i++) {
73 i + 1 < count &&
106 jint start, jint count, jbyteArray destArray)
117 if (start < 0 || start > start + count
118 || env->GetArrayLength(srcArray) < (start + count)
119 || env->GetArrayLength(destArray) < count) {
124 for (int i = 0; i < count;
54 getDirectionalities(JNIEnv* env, jobject obj, jcharArray srcArray, jbyteArray destArray, jint count) argument
105 getEastAsianWidths(JNIEnv* env, jobject obj, jcharArray srcArray, jint start, jint count, jbyteArray destArray) argument
148 mirror(JNIEnv* env, jobject obj, jcharArray charArray, jint start, jint count) argument
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DObservableArrayListTest.java49 public void onItemRangeChanged(ObservableList sender, int start, int count) {
50 mNotifications.add(new ListChange(CHANGE, start, count));
54 public void onItemRangeInserted(ObservableList sender, int start, int count) {
55 mNotifications.add(new ListChange(INSERT, start, count));
59 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) {
60 mNotifications.add(new ListChange(MOVE, from, to, count));
64 public void onItemRangeRemoved(ObservableList sender, int start, int count) {
65 mNotifications.add(new ListChange(REMOVE, start, count));
71 public ListChange(int change, int start, int count) { argument
73 this.count
79 ListChange(int change, int from, int to, int count) argument
89 public final int count; field in class:ObservableArrayListTest.ListChange
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
194 * @param count number of bytes to read.
198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
203 if (destOffset < 0 || destOffset > buffer.length || count < 0
204 || count > buffer.length - destOffset
206 || count > mLength - srcOffset) {
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
219 * @param count number of bytes to write.
222 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
50 native_read(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
52 native_write(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
303 read(byte buffer[], int offset, int count) argument
336 write(byte buffer[], int offset, int count) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java52 int count = 0;
56 if (server1 != null) count++;
57 if (server2 != null) count++;
58 if (server3 != null) count++;
68 if (count == 0) {
72 mXtraServers = new String[count];
73 count = 0;
74 if (server1 != null) mXtraServers[count++] = server1;
75 if (server2 != null) mXtraServers[count++] = server2;
76 if (server3 != null) mXtraServers[count
[all...]
/frameworks/av/camera/ndk/impl/
H A DACameraMetadata.cpp66 if (entry.count == 0 || entry.type != TYPE_BYTE) {
67 ALOGE("%s: malformed available capability key! count %zu, type %d",
68 __FUNCTION__, entry.count, entry.type);
73 capabilities.setCapacity(entry.count);
74 for (size_t i = 0; i < entry.count; i++) {
92 if (entry.count == 0 || entry.count % 4 || entry.type != TYPE_INT32) {
93 ALOGE("%s: malformed available stream configuration key! count %zu, type %d",
94 __FUNCTION__, entry.count, entry.type);
99 filteredStreamConfigs.setCapacity(entry.count);
180 update(uint32_t tag, uint32_t count, const uint8_t* data) argument
185 update(uint32_t tag, uint32_t count, const int32_t* data) argument
190 update(uint32_t tag, uint32_t count, const float* data) argument
195 update(uint32_t tag, uint32_t count, const double* data) argument
200 update(uint32_t tag, uint32_t count, const int64_t* data) argument
205 update(uint32_t tag, uint32_t count, const ACameraMetadata_rational* data) argument
[all...]
H A DACameraMetadata.h51 camera_status_t update(uint32_t tag, uint32_t count, const uint8_t* data);
52 camera_status_t update(uint32_t tag, uint32_t count, const int32_t* data);
53 camera_status_t update(uint32_t tag, uint32_t count, const float* data);
54 camera_status_t update(uint32_t tag, uint32_t count, const double* data);
55 camera_status_t update(uint32_t tag, uint32_t count, const int64_t* data);
56 camera_status_t update(uint32_t tag, uint32_t count, const ACameraMetadata_rational* data);
70 camera_status_t updateImpl(uint32_t tag, uint32_t count, const NDK_T* data) { argument
83 if (count == 0 && data == nullptr) {
88 ret = mData.update(tag, reinterpret_cast<const INTERNAL_T*>(data), count);
/frameworks/base/location/tests/locationtests/src/android/location/
H A DGpsStatusTest.java123 int count = 10;
124 generateSatellitesData(count);
129 generateSatellitesData(count);
138 int count = 25;
139 generateSatellitesData(count);
144 generateSatellitesData(count * 2);
153 int count = 25;
154 generateSatellitesData(count * 2);
159 generateSatellitesData(count);
188 int count,
186 verifySatellites( GpsStatus status, int count, int[] prns, float[] cn0s, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument
254 set( GpsStatus status, int count, int[] prns, float[] cn0s, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument
294 generateIntArray(int count) argument
308 generateFloatArray(int count) argument
327 generateSatellitesData(int count) argument
331 generateSatellitesData(int count, boolean reusePrns) argument
[all...]
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp59 mVSyncEvent[i].vsync.count = 0;
115 void EventThread::setVsyncRate(uint32_t count, argument
117 if (int32_t(count) >= 0) { // server must protect against bad params
119 const int32_t new_count = (count == 0) ? -1 : count;
120 if (connection->count != new_count) {
121 connection->count = new_count;
133 if (connection->count < 0) {
134 connection->count = 0;
162 mVSyncEvent[0].vsync.count
188 const size_t count = signalConnections.size(); local
250 size_t count = mDisplayEventConnections.size(); local
410 setVsyncRate(uint32_t count) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dstat_bits.c46 * description: count ms stereo bits demand
75 * description: count tns bit demand core function
84 Word32 count; local
88 count = 0;
105 /*count += 1; */
109 count += 1;
111 count += 2;
114 count += 1;
117 count += 4;
118 count
[all...]
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristics.java148 public boolean isRtl(char[] array, int start, int count) { argument
149 return isRtl(CharBuffer.wrap(array), start, count);
153 public boolean isRtl(CharSequence cs, int start, int count) { argument
154 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) {
160 return doCheck(cs, start, count);
163 private boolean doCheck(CharSequence cs, int start, int count) { argument
164 switch(mAlgorithm.checkRtl(cs, start, count)) {
197 int checkRtl(CharSequence cs, int start, int count); argument
207 public int checkRtl(CharSequence cs, int start, int count) { argument
242 checkRtl(CharSequence cs, int start, int count) argument
[all...]
/frameworks/support/compat/java/android/support/v4/text/
H A DTextDirectionHeuristicsCompat.java124 public boolean isRtl(char[] array, int start, int count) { argument
125 return isRtl(CharBuffer.wrap(array), start, count);
129 public boolean isRtl(CharSequence cs, int start, int count) { argument
130 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) {
136 return doCheck(cs, start, count);
139 private boolean doCheck(CharSequence cs, int start, int count) { argument
140 switch(mAlgorithm.checkRtl(cs, start, count)) {
173 int checkRtl(CharSequence cs, int start, int count); argument
182 public int checkRtl(CharSequence cs, int start, int count) { argument
205 checkRtl(CharSequence cs, int start, int count) argument
[all...]
/frameworks/base/test-runner/src/junit/textui/
H A DResultPrinter.java56 protected void printDefects(Enumeration<TestFailure> booBoos, int count, String type) { argument
57 if (count == 0) return;
58 if (count == 1)
59 getWriter().println("There was " + count + " " + type + ":");
61 getWriter().println("There were " + count + " " + type + "s:");
67 public void printDefect(TestFailure booBoo, int count) { // only public for testing purposes argument
68 printDefectHeader(booBoo, count);
72 protected void printDefectHeader(TestFailure booBoo, int count) { argument
75 getWriter().print(count + ") " + booBoo.failedTest());
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java225 public int read(byte[] buffer, int offset, int count) throws IOException { argument
228 if (count > mRemaining) count = (int)mRemaining;
229 int res = super.read(buffer, offset, count);
234 return super.read(buffer, offset, count);
243 public long skip(long count) throws IOException { argument
246 if (count > mRemaining) count = mRemaining;
247 long res = super.skip(count);
252 return super.skip(count);
300 write(byte[] buffer, int offset, int count) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.h31 int count; member in struct:__anon1290
61 Value MakeIntArrayValue(const int* values, int count);
62 Value MakeFloatArrayValue(const float* values, int count);
69 int SetIntArrayValue(Value* value, const int* new_values, int count);
70 int SetFloatArrayValue(Value* value, const float* new_values, int count);
/frameworks/native/include/gui/
H A DDisplayEventReceiver.h66 uint32_t count; member in struct:android::DisplayEventReceiver::Event::VSync
115 ssize_t getEvents(Event* events, size_t count);
116 static ssize_t getEvents(gui::BitTube* dataChannel, Event* events, size_t count);
122 static ssize_t sendEvents(gui::BitTube* dataChannel, Event const* events, size_t count);
130 status_t setVsyncRate(uint32_t count);
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglDrawElementsInstancedBaseVertex.cpp1 /* void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex ) */
4 (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jobject indices_buf, jint instanceCount, jint basevertex) {
14 if (_remaining < count-basevertex) {
17 _exceptionMessage = "remaining() < count-basevertex < needed";
26 (GLsizei)count,
39 /* void glDrawElementsInstancedBaseVertex ( GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instanceCount, GLint basevertex ) */
42 (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint indicesOffset, jint instanceCount, jint basevertex) {
45 (GLsizei)count,
3 android_glDrawElementsInstancedBaseVertex__IIILjava_nio_Buffer_2II(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jobject indices_buf, jint instanceCount, jint basevertex) argument
41 android_glDrawElementsInstancedBaseVertex__IIIIII(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint indicesOffset, jint instanceCount, jint basevertex) argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierSignalAgentTest.java71 // Broadcast count
72 int count = 0;
83 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture());
88 count++;
92 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture());
98 count += 2;
100 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture());
115 // Broadcast count
116 int count = 0;
125 verify(mContext, times(count))
[all...]

Completed in 591 milliseconds

1234567891011>>