Searched defs:len (Results 226 - 250 of 309) sorted by relevance

1234567891011>>

/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp122 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n", local
127 len = (len > SIZE - 1) ? SIZE - 1 : len;
128 write(fd, buffer, len);
130 len = snprintf(buffer, SIZE, "Latest set parameters:\n");
131 len = (len > SIZE - 1) ? SIZE - 1 : len;
132 write(fd, buffer, len);
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_NativeActivity.cpp439 size_t len = 0; local
440 jbyte* state = (jbyte*)code->callbacks.onSaveInstanceState(code, &len);
441 if (len > 0) {
442 array = env->NewByteArray(len);
444 env->SetByteArrayRegion(array, 0, len, state);
/frameworks/base/libs/androidfw/
H A DAssetManager2.cpp617 ssize_t len = local
619 if (len < 0) {
622 out->resize(static_cast<size_t>(len));
624 static_cast<size_t>(len + 1));
H A DBackupHelpers.cpp463 int len = strlen(key) + strlen(value) + 4; local
464 if (len > 9) len++;
465 if (len > 99) len++;
466 if (len > 999) len++;
470 return snprintf(buf, buf_size, "%d %s=%s\n", len, key, value);
642 // size header -- calc len in digits by actually rendering the number
836 int len; local
857 compare_file(const char* path, const unsigned char* data, int len) argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java1100 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { argument
1113 if(len < dataSize / 4 * 3) {
1117 if(len < dataSize) {
/frameworks/base/tools/bit/
H A Dmain.cpp912 size_t len = target->name.length(); local
913 if (len > maxNameLength) {
914 maxNameLength = len;
/frameworks/native/cmds/atrace/
H A Datrace.cpp300 ssize_t len = strlen(str); local
301 if (write(fd, str, len) != len) {
327 int len = 0; local
336 len = snprintf(buffer, 128, "trace_event_clock_sync: parent_ts=%f\n", now_in_seconds);
337 if (write(fd, buffer, len) != len) {
342 len = snprintf(buffer, 128, "trace_event_clock_sync: realtime_ts=%" PRId64 "\n", realtime_in_ms);
343 if (write(fd, buffer, len) != len) {
436 int len; local
[all...]
/frameworks/native/cmds/installd/
H A Dutils.cpp362 if ((android_data_dir.len + strlen(PRIMARY_USER_PREFIX) + strlen(pkgname) + strlen(leaf) + 1)
741 size_t dir_len = dir->len;
770 const size_t dir_len = android_system_dirs.dirs[i].len;
843 rec->len = path_len;
864 rec->len = dst - rec->path;
871 dst->len = src->len + strlen(suffix);
872 const size_t dstSize = dst->len + 1;
877 != (ssize_t) dst->len) {
893 if (!strncmp(path, android_app_dir.path, android_app_dir.len)) {
936 int len = len_s1 + len_s2 + 1; local
952 int len = len_s1 + len_s2 + len_s3 + 1; local
[all...]
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp1150 size_t len = cur - start; local
1153 if (strlen(modifiers[i].label) == len
1154 && strncmp(modifiers[i].label, start, len) == 0) {
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp359 const GLfloat len = sqrtf(x*x + y*y + z*z); local
360 if (!isOnef(len)) {
361 const GLfloat recipLen = reciprocalf(len);
/frameworks/native/vulkan/libvulkan/
H A Dapi.cpp184 void AddImplicitLayer(int priority, const char* name, size_t len) { argument
192 layer.name_offset = AddImplicitLayerName(name, len);
197 size_t AddImplicitLayerName(const char* name, size_t len) { argument
198 if (!GrowImplicitLayerArray(0, len + 1))
206 std::copy(name, name + len, dst);
207 dst[len] = '\0';
209 arr.pool_size += len + 1;
/frameworks/opt/net/wifi/libwifi_hal/
H A Dhal_tool.cpp458 const u8* program, u32 len) {
457 wifi_set_packet_filter_stub(wifi_interface_handle handle, const u8* program, u32 len) argument
/frameworks/rs/
H A DrsContext.cpp680 void Context::assignName(ObjectBase *obj, const char *name, uint32_t len) { argument
682 obj->setName(name, len);
704 uint32_t subID, size_t len, bool waitForSpace) const {
707 bool ret = mIO.sendToClient(cmdID, subID, data, len, waitForSpace);
866 void rsi_ContextSendMessage(Context *rsc, uint32_t id, const uint8_t *data, size_t len) { argument
867 rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, id, len, true);
703 sendMessageToClient(const void *data, RsMessageToClientType cmdID, uint32_t subID, size_t len, bool waitForSpace) const argument
H A DrsFont.cpp160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, argument
164 if (!mInitialized || numGlyphs == 0 || text == nullptr || len == 0) {
188 int32_t utfChar = utf32_from_utf8_at(text, len, index, &nextIndex);
744 void FontState::renderText(const char *text, uint32_t len, int32_t x, int32_t y, argument
774 currentFont->renderUTF(text, len, x, y, startIndex, numGlyphs,
783 void FontState::measureText(const char *text, uint32_t len, Font::Rect *bounds) { argument
784 renderText(text, len, 0, 0, 0, -1, Font::MEASURE, bounds);
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DAllocation.java1082 private void data1DChecks(int off, int count, int len, int dataSize, boolean usePadding) { argument
1095 if(len < dataSize / 4 * 3) {
1099 if(len < dataSize) {
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
H A DUT_reduce.java143 private byte[] createInputArrayByte(int len, int seed) { argument
144 byte[] array = new byte[len];
149 private float[] createInputArrayFloat(int len, Random rand) { argument
150 float[] array = new float[len];
151 for (int i = 0; i < len; ++i) {
158 private float[] createInputArrayFloat(int len, int seed) { argument
159 return createInputArrayFloat(len, new Random(seed));
162 private float[] createInputArrayFloatWithInfs(int len, int infs, int seed) { argument
164 float[] array = createInputArrayFloat(len, rand);
166 array[rand.nextInt(len)]
170 createInputArrayInt(int len, int seed) argument
178 createInputArrayInt(int len, int seed, int eltRange) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp236 size_t len = strlen(url); local
237 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) {
255 size_t len = strlen(url); local
271 && ((len >= 4 && !strcasecmp(".sdp", &url[len - 4]))
/frameworks/av/media/libstagefright/
H A DOggExtractor.cpp1044 int32_t len = oggpack_read(&bits, 32); local
1046 if (len < 0 || len > (commentSize - oggpack_bytes(&bits))) {
1049 framingBitOffset += len;
1050 for (int j = 0; j < len; ++j) {
H A DUtils.cpp1843 int len = readlink(buffer, linkto, sizeof(linkto)); local
1844 if(len > 0) {
1845 if(len > 255) {
1851 linkto[len] = 0;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4lib_int.h171 int32 len; member in struct:tagVLCtab
177 int16 len; member in struct:tagVLCshorttab
185 uint8 len; member in struct:tagVLCtab2
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp303 long len; local
309 res = mCluster->Parse(pos, len);
327 mCluster, nextCluster, pos, len);
343 res = mCluster->Parse(pos, len);
420 long len; long long pos; local
421 pSegment->ParseCues(pEntry->pos, pos, len);
620 size_t len = frame.len; local
621 if (SIZE_MAX - len < trackInfo->mHeaderLen) {
625 len
847 long len; local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyHandler.h86 size_t len = local
89 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) {
90 value->setTo(&s[keyLen + 1], len - keyLen - 1);
/frameworks/av/services/audioflinger/
H A DEffects.cpp1053 int len = s.length(); local
1055 (void) s.lockBuffer(len);
1056 s.unlockBuffer(len - 2);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp569 const int len = strlen(str); local
570 const int strWidth = font.char_width * len;
585 for (int i = 0; i < len; i++) {
1173 for (char* ptr = buff; ptr < buff + length; ptr += sizeof(struct inotify_event) + event->len) {
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java622 long len = getAssetRemainingLength(mAsset);
623 return len > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int)len;
643 public final int read(byte[] b, int off, int len) throws IOException { argument
644 return readAsset(mAsset, b, off, len);
809 private native final int readAsset(long asset, byte[] b, int off, int len); argument

Completed in 4023 milliseconds

1234567891011>>