/frameworks/base/tools/aapt/ |
H A D | SourcePos.cpp | 20 int line; member in struct:ErrorPos 26 ErrorPos(const String8& file, int line, const String8& error, Level level); 35 :line(-1), level(NOTE) 41 line(that.line), 49 line(l), 59 this->line = rhs.line; 82 if (this->line >= 0) { 83 fprintf(to, "%s:%d: %s%s\n", this->file.string(), this->line, typ [all...] |
/frameworks/base/tools/aapt2/jni/ |
H A D | aapt2_jni.cpp | 105 jlong line = -1; variable 106 if (actual_msg.source.line) { 107 line = actual_msg.source.line.value(); 113 env_->CallVoidMethod(diagnostics_obj_, mid_, level_value, path, line, message);
|
/frameworks/base/tools/preload/ |
H A D | MemoryUsage.java | 52 public MemoryUsage(String line) { argument 53 String[] parsed = line.split(","); 248 String line = in.readLine(); 249 if (line == null || !line.startsWith("DECAFBAD,")) { 251 + ": " + line + "; command was " + Arrays.toString(commands)); 260 return new MemoryUsage(line);
|
/frameworks/opt/net/wifi/libwifi_hal/ |
H A D | wifi_hal_common.cpp | 117 char line[sizeof(DRIVER_MODULE_TAG) + 10]; local 136 while ((fgets(line, sizeof(line), proc)) != NULL) { 137 if (strncmp(line, DRIVER_MODULE_TAG, strlen(DRIVER_MODULE_TAG)) == 0) {
|
/frameworks/wilhelm/src/ |
H A D | locks.cpp | 44 void object_lock_exclusive_(IObject *thiz, const char *file, int line) argument 67 SL_LOGE("%s:%d: recursive lock detected", file, line); 70 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok); 87 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, 107 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz, 111 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), 118 thiz->mLine = line; 135 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) argument 142 thiz->mLine = line; 163 const char *file, int line) 162 object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes, const char *file, int line) argument 288 object_cond_wait_(IObject *thiz, const char *file, int line) argument [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestBassBoostPath.cpp | 38 void ExitOnErrorFunc( SLresult result , int line) argument 41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line);
|
H A D | slesTestPlayFdPath.cpp | 40 void ExitOnErrorFunc( SLresult result , int line) argument 43 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line);
|
H A D | slesTestVirtualizerPath.cpp | 38 void ExitOnErrorFunc( SLresult result , int line) argument 41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line);
|
/frameworks/wilhelm/tests/mimeUri/ |
H A D | slesTestPlayStreamType.cpp | 36 void ExitOnErrorFunc( SLresult result , int line) argument 39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line);
|
H A D | slesTestPlayUri.cpp | 60 void ExitOnErrorFunc( SLresult result , int line) argument 63 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line);
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ParsedMessage.cpp | 106 AString line(&data[offset], lineEndOffset - offset); 109 // Special handling for the request/status line. 111 mDict.add(AString("_"), line); 118 // An empty line separates headers from body. 124 if (line.c_str()[0] == ' ' || line.c_str()[0] == '\t') { 128 // Otherwise it's malformed since the first header line 132 value.append(line); 139 ssize_t colonPos = line.find(":"); 141 AString key(line, 181 AString line; local 226 AString line; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 65 AString line; local 67 // We accept both '\n' and '\r\n' line endings, if it's 69 line.setTo(desc, i, eolPos - i - 1); 71 line.setTo(desc, i, eolPos - i); 74 if (line.empty()) { 79 if (line.size() < 2 || line.c_str()[1] != '=') { 83 ALOGI("%s", line.c_str()); 85 switch (line.c_str()[0]) { 88 if (strcmp(line [all...] |
/frameworks/base/core/java/android/text/ |
H A D | BoringLayout.java | 26 * fits on a single line and is all left-to-right characters. 49 * line width 70 * line width 98 * line width 127 * line width 168 * line width 192 * line width 259 TextLine line = TextLine.obtain(); 260 line.set(paint, source, 0, source.length(), Layout.DIR_LEFT_TO_RIGHT, 262 mMax = (int) Math.ceil(line 367 getLineTop(int line) argument 375 getLineDescent(int line) argument 380 getLineStart(int line) argument 388 getParagraphDirection(int line) argument 393 getLineContainsTab(int line) argument 398 getLineMax(int line) argument 403 getLineWidth(int line) argument 408 getLineDirections(int line) argument 423 getEllipsisCount(int line) argument 428 getEllipsisStart(int line) argument [all...] |
H A D | Selection.java | 194 * offset, to the beginning if it is on the top line but not at the 195 * start, or return false if the cursor is already on the top line. 213 int line = layout.getLineForOffset(end); 215 if (line > 0) { 217 text, layout, line, end, -1 /* direction */, false /* extend */); 231 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, argument 236 if (layout.getParagraphDirection(line) 237 == layout.getParagraphDirection(line + direction)) { 242 move = layout.getOffsetForHorizontal(line + direction, h); 247 move = layout.getOffsetForHorizontal(line [all...] |
/frameworks/base/core/java/com/android/internal/alsa/ |
H A D | AlsaCardsParser.java | 77 private boolean parse(String line, int lineIndex) { argument 82 // line # (skip) 83 tokenIndex = mTokenizer.nextToken(line, tokenIndex); 84 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex); 88 mCardNum = Integer.parseInt(line.substring(tokenIndex, delimIndex)); 90 Slog.e(TAG, "Failed to parse line " + lineIndex + " of " + kCardsFilePath 91 + ": " + line.substring(tokenIndex, delimIndex)); 96 tokenIndex = mTokenizer.nextToken(line, delimIndex); 97 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex); 98 mField1 = line [all...] |
H A D | AlsaDevicesParser.java | 75 public boolean parse(String line) { argument 93 tokenOffset = mTokenizer.nextToken(line, delimOffset); 97 delimOffset = mTokenizer.nextDelimiter(line, tokenOffset); 99 delimOffset = line.length(); 101 String token = line.substring(tokenOffset, delimOffset); 111 if (line.charAt(delimOffset) != '-') { 248 private boolean isLineDeviceRecord(String line) { argument 249 return line.charAt(kIndex_CardDeviceField) == '['; 263 String line = ""; 264 while ((line [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | LoggingPrintStream.java | 34 * A print stream which logs output line by line. 73 * Logs the given line. 75 protected abstract void log(String line); argument 83 * Searches buffer for line breaks and logs a message for each one. 85 * @param completely true if the ending chars should be treated as a line 86 * even though they don't end in a line break 94 // Log one line for each line break. 306 // Log one line fo [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 180 * Sends HTTP request-line (i.e. the first line in the request) 187 * @throws IOException if the request-line cannot be sent. 240 private void sendLine(Socket socket, String line) throws IOException { argument 242 os.write(line.getBytes()); 249 * Reads from socket until an empty line is read which indicates the end of HTTP headers. 280 // Sends and empty line that indicates termination of the header section. 292 String line; 294 line = getLine(src.getInputStream()); 295 if (line 307 shouldRemoveHeaderLine(String line) argument [all...] |
/frameworks/base/test-runner/src/junit/runner/ |
H A D | BaseTestRunner.java | 151 * Processes the command line arguments and 304 String line; 306 while ((line= br.readLine()) != null) { 307 if (!filterLine(line)) 308 pw.println(line); 320 static boolean filterLine(String line) { argument 332 if (line.indexOf(patterns[i]) > 0)
|
/frameworks/base/tools/bit/ |
H A D | aapt.cpp | 26 const regex ELEMENT_REGEX("( *)E: ([^ ]+) \\(line=(\\d+)\\)"); 180 const string& line = lines[i]; local 182 if (regex_match(line, match, NS_REGEX)) { 191 } else if (regex_match(line, match, ELEMENT_REGEX)) { 216 } else if (regex_match(line, match, ATTR_REGEX)) {
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | XmlEditor.java | 128 int lineCmp = start2.line - start1.line; 140 String line = lines.get(endTagPosition.line); 141 String newLine = line.substring(0, endTagPosition.charIndex) + " " + tag + 142 line.substring(endTagPosition.charIndex); 143 lines.set(endTagPosition.line, newLine); 245 if (start.line != end.line) { 246 String startLine = lines.get(start.line); 272 replaceRange(String line, int start, int end, String newText) argument 397 replaceWithSpaces(String line, int start, int end) argument 414 int line; field in class:XmlEditor.Position 417 Position(int line, int charIndex) argument [all...] |
/frameworks/minikin/tests/unittest/ |
H A D | LineBreakerTestHelper.h | 145 const LineBreakExpectation& line = lines[i]; local 149 "Line %2d, Width: %5.1f, Hyphen(%hhu, %hhu), Text: \"%s\"\n", i, line.mWidth, 150 line.mStartEdit, line.mEndEdit, line.mLineContent.c_str());
|
/frameworks/ml/nn/runtime/test/ |
H A D | TestMemoryInternal.cpp | 82 std::string line; local 84 while (std::getline(mappingsStream, line)) { 85 if (line.find("/dev/ashmem") != std::string::npos) {
|
/frameworks/native/services/vr/performanced/ |
H A D | cpu_set.cpp | 266 for (std::string line; std::getline(file_stream, line);) { 267 pid_t task_id = std::strtol(line.c_str(), nullptr, 10); 280 std::string line; local 281 if (std::getline(file_stream, line)) 282 return line;
|
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/ |
H A D | LinkAccessibilityHelper.java | 258 // the section on the first line. 274 // If the span is on a single line, adjust both the left and right bounds 279 // If the span wraps across multiple lines, only use the first line (as 282 // of the line. ("start" being left for LTR, and right for RTL) 301 final int line = getLineAtCoordinate(view, y); 302 return getOffsetAtCoordinate(view, line, x); 323 private static int getOffsetAtCoordinate(TextView view, int line, float x) { argument 325 return view.getLayout().getOffsetForHorizontal(line, x);
|