/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 359 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 D | api.cpp | 182 void AddImplicitLayer(int priority, const char* name, size_t len) { argument 190 layer.name_offset = AddImplicitLayerName(name, len); 195 size_t AddImplicitLayerName(const char* name, size_t len) { argument 196 if (!GrowImplicitLayerArray(0, len + 1)) 204 std::copy(name, name + len, dst); 205 dst[len] = '\0'; 207 arr.pool_size += len + 1;
|
/frameworks/opt/net/wifi/service/lib/ |
H A D | wifi_hal_stub.cpp | 385 const u8 *program, u32 len) { 384 wifi_set_packet_filter_stub(wifi_interface_handle handle, const u8 *program, u32 len) argument
|
/frameworks/rs/ |
H A D | rsContext.cpp | 716 void Context::assignName(ObjectBase *obj, const char *name, uint32_t len) { argument 718 obj->setName(name, len); 740 uint32_t subID, size_t len, bool waitForSpace) const { 743 bool ret = mIO.sendToClient(cmdID, subID, data, len, waitForSpace); 905 void rsi_ContextSendMessage(Context *rsc, uint32_t id, const uint8_t *data, size_t len) { argument 906 rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, id, len, true); 739 sendMessageToClient(const void *data, RsMessageToClientType cmdID, uint32_t subID, size_t len, bool waitForSpace) const argument
|
H A D | rsFont.cpp | 161 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, argument 165 if (!mInitialized || numGlyphs == 0 || text == nullptr || len == 0) { 189 int32_t utfChar = utf32_from_utf8_at(text, len, index, &nextIndex); 745 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/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 1082 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/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 225 size_t len = strlen(url); local 226 if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) { 244 size_t len = strlen(url); local 256 && ((len >= 4 && !strcasecmp(".sdp", &url[len - 4]))
|
/frameworks/av/media/libstagefright/ |
H A D | OggExtractor.cpp | 1030 int32_t len = oggpack_read(&bits, 32); local 1032 if (len < 0 || len > (commentSize - oggpack_bytes(&bits))) { 1035 framingBitOffset += len; 1036 for (int j = 0; j < len; ++j) {
|
H A D | Utils.cpp | 1744 int len = readlink(buffer, linkto, sizeof(linkto)); local 1745 if(len > 0) { 1746 if(len > 255) { 1752 linkto[len] = 0;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | mp4lib_int.h | 171 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 D | MatroskaExtractor.cpp | 303 long len; local 309 res = mCluster->Parse(pos, len); 327 mCluster, nextCluster, pos, len); 343 res = mCluster->Parse(pos, len); 410 long len; long long pos; local 411 pSegment->ParseCues(pEntry->pos, pos, len); 610 MediaBuffer *mbuf = new MediaBuffer(frame.len); 826 long len; local 827 ret = mSegment->LoadCluster(pos, len); 1045 sp<ABuffer> abuf = new ABuffer(frame.len); [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyHandler.h | 85 size_t len = local 88 if (len >= keyLen + 1 && s[keyLen] == '=' && !strncmp(s, key, keyLen)) { 89 value->setTo(&s[keyLen + 1], len - keyLen - 1);
|
/frameworks/av/services/audioflinger/ |
H A D | Effects.cpp | 940 int len = s.length(); local 942 (void) s.lockBuffer(len); 943 s.unlockBuffer(len - 2);
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 595 long len = getAssetRemainingLength(mAsset); 596 return len > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int)len; 616 public final int read(byte[] b, int off, int len) throws IOException { argument 617 return readAsset(mAsset, b, off, len); 782 private native final int readAsset(long asset, byte[] b, int off, int len); argument
|
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 241 int len) { 242 int tempLen = 2 * len; 243 if (tempLen < len) { 244 // Integer overflow; len is unreasonably large 249 getChars(one, toffset, toffset + len, temp, 0); 250 getChars(two, ooffset, ooffset + len, temp, len); 253 for (int i = 0; i < len; i++) { 254 if (temp[i] != temp[i + len]) { 469 int len 239 regionMatches(CharSequence one, int toffset, CharSequence two, int ooffset, int len) argument 1319 doesNotNeedBidi(char[] text, int start, int len) argument 1328 obtain(int len) argument [all...] |
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 379 const int len = property_get(key, &temp[0], defaultValue); local 380 if (len < 0) { 383 return std::string(&temp[0], len);
|
H A D | android_os_Debug.cpp | 220 int len, nameLen; local 253 len = strlen(line); 254 if (len < 1) return; 255 line[--len] = 0; 697 int len = read(fd, buffer, sizeof(buffer)-1); local 700 if (len < 0) { 704 buffer[len] = 0; 794 int len = snprintf(compare, 128, "proc %d", getpid()); local 802 } while (strncmp(compare, line, len)); 805 len [all...] |
H A D | android_util_Binder.cpp | 996 static int getprocname(pid_t pid, char *buf, size_t len) { argument 1006 if (!fgets(buf, len, f)) { 1016 jint len = strlen(str); local 1017 int space_needed = 1 + sizeof(len) + len; 1025 memcpy(*pos, &len, sizeof(len)); 1026 *pos += sizeof(len); 1027 memcpy(*pos, str, len); 1028 *pos += len; [all...] |
H A D | android_util_Process.cpp | 357 size_t len = 0; local 358 ssize_t num_read = getline(&line, &len, file); 582 const int len = read(fd, buffer, sizeof(buffer)-1); local 585 if (len < 0) { 589 buffer[len] = 0; 692 int len = read(fd, buffer, BUFFER_SIZE-1); local 695 if (len < 0) { 697 len = 0; 699 buffer[len] = 0; 1006 const int len local 1138 const int len = read(fd, data, sizeof(data)-1); local [all...] |
H A D | android_view_ThreadedRenderer.cpp | 401 jsize len = env->GetArrayLength(atlasMapArray); local 402 if (len <= 0) { 403 ALOGW("Failed to initialize atlas, invalid map length: %d", len); 406 int64_t* map = new int64_t[len]; 407 env->GetLongArrayRegion(atlasMapArray, 0, len, map); 410 proxy->setTextureAtlas(buffer, map, len);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 117 int len; local 122 len = strlen(str); 123 newStr = new char[len+1]; 124 memcpy(newStr, str, len+1);
|
/frameworks/base/libs/hwui/ |
H A D | SpotShadow.cpp | 285 const Vector2* poly, int len) { 289 for (int i = 0, j = len - 1; i < len; j = i++) { 308 * @param len the number of points of the polygon 310 void SpotShadow::makeClockwise(Vector2* polygon, int len) { argument 311 if (polygon == nullptr || len == 0) { 314 if (!ShadowTessellator::isClockwise(polygon, len)) { 315 reverse(polygon, len); 323 * @param len the number of points of the polygon 325 void SpotShadow::reverse(Vector2* polygon, int len) { argument 284 testPointInsidePolygon(const Vector2 testPoint, const Vector2* poly, int len) argument [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 216 int len = phoneNumber.length(); 217 StringBuilder ret = new StringBuilder(len); 219 for (int i = 0; i < len; i++) { 255 int len = phoneNumber.length(); 256 StringBuilder ret = new StringBuilder(len); 259 for (int i = 0; i < len; i++) { 286 int len = phoneNumber.length(); 287 StringBuilder ret = new StringBuilder(len); 289 for (int i = 0; i < len; i++) { 327 int len 2677 matchIntlPrefix(String a, int len) argument 2716 matchIntlPrefixAndCC(String a, int len) argument 2765 matchTrunkPrefix(String a, int len) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 40 size_t len = 0; local 50 len++; 53 if (len < 1 || len > kMaxAssetFileName) 1280 size_t len = entry->getUncompressedLen(); local 1282 void* buf = file->editData(len); 1283 memcpy(buf, data, len); 1288 const unsigned char* end = p+len;
|
/frameworks/base/tools/aapt2/link/ |
H A D | Link.cpp | 206 /*static std::unique_ptr<ResourceTable> loadTable(const Source& source, const void* data, size_t len, 209 BinaryResourceParser parser(diag, table.get(), source, data, len); 217 const void* data, size_t len, 220 if (!pbTable.ParseFromArray(data, len)) { 245 const void* data, size_t len, 247 CompiledFileInputStream inputStream(data, len); 264 const void* data, size_t len, 266 CompiledFileInputStream inputStream(data, len); 216 loadTableFromPb(const Source& source, const void* data, size_t len, IDiagnostics* diag) argument 244 loadBinaryXmlSkipFileExport(const Source& source, const void* data, size_t len, IDiagnostics* diag) argument 263 loadFileExportHeader(const Source& source, const void* data, size_t len, IDiagnostics* diag) argument
|