Home
last modified time | relevance | path

Searched refs:newStr (Results 1 – 6 of 6) sorted by relevance

/dalvik/vm/
DMisc.cpp202 char* newStr = strdup(str); in dvmDotToSlash() local
203 char* cp = newStr; in dvmDotToSlash()
205 if (newStr == NULL) in dvmDotToSlash()
218 return newStr; in dvmDotToSlash()
326 char* newStr; in dvmDescriptorToDot() local
333 newStr = (char*)malloc(at + 1); /* Add one for the '\0'. */ in dvmDescriptorToDot()
334 if (newStr == NULL) in dvmDescriptorToDot()
337 newStr[at] = '\0'; in dvmDescriptorToDot()
341 newStr[at] = (str[at] == '/') ? '.' : str[at]; in dvmDescriptorToDot()
344 return newStr; in dvmDescriptorToDot()
[all …]
DUtfString.cpp299 char* newStr = (char*) malloc(byteLen+1); in dvmCreateCstrFromString() local
300 if (newStr == NULL) { in dvmCreateCstrFromString()
303 convertUtf16ToUtf8(newStr, data, len); in dvmCreateCstrFromString()
305 return newStr; in dvmCreateCstrFromString()
DJni.cpp2225 StringObject* newStr = dvmCreateStringFromCstr(bytes); in NewStringUTF() local
2226 jstring result = (jstring) addLocalReference(env, (Object*) newStr); in NewStringUTF()
2227 dvmReleaseTrackedAlloc((Object*)newStr, NULL); in NewStringUTF()
2267 char* newStr = dvmCreateCstrFromString(strObj); in GetStringUTFChars() local
2268 if (newStr == NULL) { in GetStringUTFChars()
2272 return newStr; in GetStringUTFChars()
/dalvik/vm/hprof/
DHprofString.cpp63 const char *newStr; in hprofLookupStringId() local
65 newStr = strdup(str); in hprofLookupStringId()
66 val = dvmHashTableLookup(gStringHashTable, hashValue, (void *)newStr, in hprofLookupStringId()
/dalvik/dexlist/
DDexList.cpp58 char* newStr; in descriptorToDot() local
66 newStr = (char*)malloc(at + 1); /* Add one for the '\0'. */ in descriptorToDot()
67 newStr[at] = '\0'; in descriptorToDot()
71 newStr[at] = (str[at] == '/') ? '.' : str[at]; in descriptorToDot()
74 return newStr; in descriptorToDot()
/dalvik/dexdump/
DDexDump.cpp131 char* newStr; in descriptorToDot() local
155 newStr = (char*)malloc(targetLen + arrayDepth * 2 +1); in descriptorToDot()
161 newStr[i] = (ch == '/' || ch == '$') ? '.' : ch; in descriptorToDot()
166 newStr[i++] = '['; in descriptorToDot()
167 newStr[i++] = ']'; in descriptorToDot()
169 newStr[i] = '\0'; in descriptorToDot()
172 return newStr; in descriptorToDot()
184 char* newStr; in descriptorClassToDot() local
194 newStr = strdup(lastSlash); in descriptorClassToDot()
195 newStr[strlen(lastSlash)-1] = '\0'; in descriptorClassToDot()
[all …]