/frameworks/base/libs/hwui/tests/unit/ |
H A D | FatVectorTests.cpp | 95 int count = 0; local 99 v.emplace_back(&count); 101 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet"; 103 EXPECT_EQ(1, count) << "Destruction should happen exactly once"; 107 int count = 0; local 112 v.emplace_back(&count); 115 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet"; 117 EXPECT_EQ(10, count) << "Destruction should happen exactly once";
|
/frameworks/base/tools/aapt2/ |
H A D | Locale_test.cpp | 31 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 D | GraphemeBreak.h | 33 size_t count, size_t offset); 38 size_t count, size_t offset, MoveOpt opt);
|
/frameworks/base/cmds/statsd/src/guardrail/ |
H A D | MemoryLeakTrackUtil.cpp | 63 size_t count; local 65 (count = overallSize / infoSize) == 0) { 71 oss << totalMemory << " bytes in " << count << " allocations\n"; local 74 if (count > limit) count = limit; 79 for (size_t i = 0; i < count; i++) {
|
/frameworks/base/tools/aapt2/io/ |
H A D | BigBufferStream.cpp | 46 void BigBufferInputStream::BackUp(size_t count) { argument 47 if (count > offset_) { 51 offset_ -= count; 52 bytes_read_ -= count; 88 void BigBufferOutputStream::BackUp(size_t count) { argument 89 buffer_->BackUp(count);
|
H A D | StringStream.cpp | 38 void StringInputStream::BackUp(size_t count) { argument 39 if (count > offset_) { 42 offset_ -= count; 76 void StringOutputStream::BackUp(size_t count) { argument 77 if (count > buffer_offset_) { 80 buffer_offset_ -= count;
|
/frameworks/native/libs/sensor/include/sensor/ |
H A D | BitTube.h | 54 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/java/android/os/ |
H A D | MemoryFile.java | 179 * @param count number of bytes to read. 183 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument 188 mMapping.get(buffer, destOffset, count); 192 return count; 202 * @param count number of bytes to write. 205 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument 210 mMapping.put(buffer, srcOffset, count); 283 public int read(byte buffer[], int offset, int count) throws IOException { argument 284 if (offset < 0 || count < 0 || offset + count > buffe 316 write(byte buffer[], int offset, int count) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_text_AndroidCharacter.cpp | 55 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 D | ObservableArrayListTest.java | 49 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/services/core/java/com/android/server/location/ |
H A D | GpsXtraDownloader.java | 53 int count = 0; 57 if (server1 != null) count++; 58 if (server2 != null) count++; 59 if (server3 != null) count++; 69 if (count == 0) { 73 mXtraServers = new String[count]; 74 count = 0; 75 if (server1 != null) mXtraServers[count++] = server1; 76 if (server2 != null) mXtraServers[count++] = server2; 77 if (server3 != null) mXtraServers[count [all...] |
/frameworks/av/camera/ndk/impl/ |
H A D | ACameraMetadata.cpp | 66 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 D | ACameraMetadata.h | 51 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/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 57 event.vsync.count = 0; 107 void EventThread::setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) { argument 108 if (int32_t(count) >= 0) { // server must protect against bad params 110 const int32_t new_count = (count == 0) ? -1 : count; 111 if (connection->count != new_count) { 112 connection->count = new_count; 125 if (connection->count < 0) { 126 connection->count = 0; 154 mVSyncEvent[0].vsync.count 182 const size_t count = signalConnections.size(); variable 242 size_t count = mDisplayEventConnections.size(); local 396 setVsyncRate(uint32_t count) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | TextDirectionHeuristics.java | 148 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/src/main/java/androidx/core/text/ |
H A D | TextDirectionHeuristicsCompat.java | 124 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/text/format/ |
H A D | DateFormat.java | 424 int count; 430 for (int i = 0; i < len; i += count) { 431 count = 1; 435 count = appendQuotedText(s, i); 440 while ((i + count < len) && (s.charAt(i + count) == c)) { 441 count++; 451 replacement = zeroPad(inDate.get(Calendar.DATE), count); 456 inDate.get(Calendar.DAY_OF_WEEK), count, c); 465 replacement = zeroPad(hour, count); 517 getDayOfWeekString(LocaleData ld, int day, int count, int kind) argument 528 getMonthString(LocaleData ld, int month, int count, int kind) argument 542 getTimeZoneString(Calendar inDate, int count) argument 554 formatZoneOffset(int offset, int count) argument 573 getYearString(int year, int count) argument [all...] |
/frameworks/base/test-runner/src/junit/textui/ |
H A D | ResultPrinter.java | 56 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 D | AssetFileDescriptor.java | 225 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 D | value.h | 31 int count; member in struct:__anon1073 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 D | DisplayEventReceiver.h | 66 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/libs/gui/include/gui/ |
H A D | DisplayEventReceiver.h | 66 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 D | glDrawElementsInstancedBaseVertex.cpp | 1 /* 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/av/media/libnbaio/ |
H A D | MonoPipeReader.cpp | 46 ssize_t MonoPipeReader::read(void *buffer, size_t count) argument 48 // count == 0 is unlikely and not worth checking for explicitly; will be handled automatically 49 ssize_t actual = mFifoReader.read(buffer, count); 50 ALOG_ASSERT(actual <= count);
|
H A D | Pipe.cpp | 48 ssize_t Pipe::write(const void *buffer, size_t count) argument 50 // count == 0 is unlikely and not worth checking for 54 ssize_t actual = mFifoWriter.write(buffer, count); 55 ALOG_ASSERT(actual <= count);
|