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

1234567891011>>

/frameworks/av/media/img_utils/include/img_utils/
H A DInput.h43 * count argument will be read. Bytes will be written into the given buffer starting
49 virtual ssize_t read(uint8_t* buf, size_t offset, size_t count) = 0;
57 virtual ssize_t skip(size_t count);
/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.cpp28 ssize_t count = lv.initFromParts(std::begin(parts), std::end(parts)); local
29 if (count < 0) {
33 if (count != 1) {
34 return ::testing::AssertionFailure() << count
50 ssize_t count = lv.initFromParts(std::begin(parts), std::end(parts)); local
51 if (count < 0) {
55 if (count != 2) {
56 return ::testing::AssertionFailure() << count
/frameworks/minikin/include/minikin/
H A DGraphemeBreak.h37 static bool isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset);
41 static size_t getTextRunCursor(const uint16_t* buf, size_t start, size_t count,
/frameworks/av/include/camera/ndk/
H A DNdkCaptureRequest.h184 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
188 * @param count number of elements to be set in data argument
193 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
198 ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data);
203 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
207 * @param count number of elements to be set in data argument
212 * <li>{@link ACAMERA_ERROR_INVALID_PARAMETER} if request is NULL, count is larger than
217 ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data);
222 * <p>Set count to 0 and data to NULL to remove a tag from the capture request.</p>
226 * @param count numbe
[all...]
/frameworks/native/include/gui/
H A DBitTube.h57 T const* events, size_t count) {
58 return sendObjects(tube, events, count, sizeof(T));
65 T* events, size_t count) {
66 return recvObjects(tube, events, count, sizeof(T));
86 void const* events, size_t count, size_t objSize);
89 void* events, size_t count, size_t objSize);
56 sendObjects(const sp<BitTube>& tube, T const* events, size_t count) argument
64 recvObjects(const sp<BitTube>& tube, T* events, size_t count) argument
H A DDisplayEventReceiver.h56 uint32_t count; member in struct:android::DisplayEventReceiver::Event::VSync
104 ssize_t getEvents(Event* events, size_t count);
106 Event* events, size_t count);
113 Event const* events, size_t count);
121 status_t setVsyncRate(uint32_t count);
/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/av/media/mtp/
H A DMtpDataPacket.cpp100 uint32_t count; local
101 if (!getUInt32(count))
104 for (uint32_t i = 0; i < count; i++) {
116 uint32_t count; local
117 if (!getUInt32(count))
120 for (uint32_t i = 0; i < count; i++) {
132 uint32_t count; local
133 if (!getUInt32(count))
136 for (uint32_t i = 0; i < count; i++) {
148 uint32_t count; local
164 uint32_t count; local
180 uint32_t count; local
196 uint32_t count; local
212 uint32_t count; local
[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.java55 int count = 0;
59 if (server1 != null) count++;
60 if (server2 != null) count++;
61 if (server3 != null) count++;
71 if (count == 0) {
75 mXtraServers = new String[count];
76 count = 0;
77 if (server1 != null) mXtraServers[count++] = server1;
78 if (server2 != null) mXtraServers[count++] = server2;
79 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
247 size_t count = mDisplayEventConnections.size(); local
406 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/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:__anon1104
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/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/base/tools/layoutlib/bridge/src/android/text/
H A DAndroidBidi_Delegate.java35 /*package*/ static int runBidi(int dir, char[] chars, byte[] charInfo, int count, argument
56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir);
58 for (int i = 0; i < count; ++i)
/frameworks/opt/net/voip/src/jni/rtp/
H A DGsmCodec.cpp47 int decode(int16_t *samples, int count, void *payload, int length);
60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) argument
64 while (n + 160 <= count && length >= 33 &&
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java231 int count;
240 count = (int)(duration / MINUTE_IN_MILLIS);
244 count),
245 count);
248 count = (int)(duration / HOUR_IN_MILLIS);
252 count),
253 count);
258 count = Math.max(Math.abs(dayDistance(timeZone, mTimeMillis, now)), 1);
262 count),
263 count);
[all...]

Completed in 720 milliseconds

1234567891011>>