/external/tensorflow/tensorflow/core/profiler/internal/ |
tfprof_utils.cc | 84 tensorflow::Status ReturnError(const std::vector<string>& pieces, int idx) { 86 if (pieces.size() > idx + 1) { 87 val = pieces[idx + 1]; 91 strings::StrCat("Invalid option '", pieces[idx], "' value: '", val, "'")); 117 std::vector<string> pieces = local 121 if (std::find(cmds_str.begin(), cmds_str.end(), pieces[0]) == 126 *cmd = pieces[0]; 128 for (int i = 1; i < pieces.size(); ++i) { 129 if (pieces[i] == string(tensorflow::tfprof::kOptions[0])) { 130 if (pieces.size() <= i + 1 | [all...] |
/tools/loganalysis/src/com/android/loganalysis/util/ |
ArrayUtil.java | 75 private static String internalJoin(String sep, Collection<Object> pieces) { 78 Iterator<Object> iter = pieces.iterator(); 103 * @param pieces A {@link Collection} or a varargs {@code Array} of objects. 106 public static String join(String sep, Object... pieces) { 107 if ((pieces.length == 1) && (pieces[0] instanceof Collection)) { 109 return internalJoin(sep, (Collection<Object>) pieces[0]); 111 return internalJoin(sep, Arrays.asList(pieces));
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
ArrayUtil.java | 74 private static String internalJoin(String sep, Collection<Object> pieces) { 77 Iterator<Object> iter = pieces.iterator(); 102 * @param pieces A {@link Collection} or a varargs {@code Array} of objects. 105 public static String join(String sep, Object... pieces) { 106 if ((pieces.length == 1) && (pieces[0] instanceof Collection)) { 108 return internalJoin(sep, (Collection<Object>) pieces[0]); 110 return internalJoin(sep, Arrays.asList(pieces));
|
/system/netd/netutils_wrappers/ |
NetUtilsWrapperTest-1.0.cpp | 62 std::vector<std::string> pieces = android::base::Split(cmd.cmdString, " "); local 63 ASSERT_LE(pieces.size(), ARRAY_SIZE(argv)); 64 for (size_t i = 0; i < pieces.size(); i++) { 65 argv[i] = const_cast<char*>(pieces[i].c_str()); 67 EXPECT_EQ(cmd.valid, checkExpectedCommand(pieces.size(), argv)) <<
|
/system/core/base/ |
parsenetaddress.cpp | 51 std::vector<std::string> pieces = Split(address, ":"); local 52 *host = pieces[0]; 53 if (pieces.size() > 1) { 54 port_str = pieces[1];
|
/system/core/fs_mgr/ |
fs_mgr_boot_config.cpp | 35 std::vector<std::string> pieces = android::base::Split(entry, "="); local 36 if (pieces.size() == 2) { 37 if (pieces[0] == cmdline_key) { 38 *out_val = pieces[1];
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
test_macros.cc | 56 std::vector<string> pieces = tensorflow::str_util::Split(line, ' '); local 57 CHECK_GE(pieces.size(), 1); 58 auto& platforms = manifest[pieces[0]]; 59 for (int64 i = 1; i < pieces.size(); ++i) { 60 platforms.push_back(pieces[i]);
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
buffer_liveness.cc | 78 std::vector<string> pieces; local 79 pieces.push_back(tensorflow::strings::Printf("BufferLiveness(module=%s):", 81 pieces.push_back("HloOrdering:"); 82 pieces.push_back(hlo_ordering_->ToString()); 83 pieces.push_back(tensorflow::strings::Printf("Aliased buffers:")); 85 pieces.push_back( 88 pieces.push_back(tensorflow::strings::Printf("Live out buffers:")); 90 pieces.push_back( 93 return tensorflow::str_util::Join(pieces, "\n");
|
hlo_ordering.cc | 266 std::vector<string> pieces; local 267 pieces.push_back(name); 269 pieces.push_back(tensorflow::strings::Printf("computation %s:", 273 pieces.push_back(tensorflow::strings::Printf( 278 pieces.push_back( 284 return tensorflow::str_util::Join(pieces, "\n"); 332 std::vector<string> pieces; local 333 pieces.push_back("SequentialHloOrdering"); 335 pieces.push_back(tensorflow::strings::Printf("computation %s order:", 351 pieces.push_back [all...] |
/external/turbine/javatests/com/google/turbine/parse/ |
ParserIntegrationTest.java | 100 String[] pieces = result.split("===+"); 101 String input = pieces[0].trim(); 102 String expected = pieces.length > 1 ? pieces[1].trim() : input;
|
/external/v8/tools/ |
objdump-v8 | 48 pieces = line.split(None, 3) 49 return " " + pieces[0][2:] + ":\t" + pieces[3]
|
/frameworks/ex/common/java/com/android/common/ |
OperationScheduler.java | 111 String[] pieces = param.substring(8).split("\\+"); local 112 if (pieces.length > 3) { 115 if (pieces.length > 0 && pieces[0].length() > 0) { 116 options.backoffFixedMillis = parseSeconds(pieces[0]); 118 if (pieces.length > 1 && pieces[1].length() > 0) { 119 options.backoffIncrementalMillis = parseSeconds(pieces[1]); 121 if (pieces.length > 2 && pieces[2].length() > 0) [all...] |
/external/python/cpython2/Demo/tkinter/guido/ |
electrons.py | 35 self.pieces = [] 39 self.pieces.append(p) 45 for p in self.pieces:
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
cuda_diagnostics.cc | 78 std::vector<string> pieces = port::Split(value, '.'); local 79 if (pieces.size() < 2 || pieces.size() > 4) { 89 if (!port::safe_strto32(pieces[0], &major)) { 94 pieces[0].c_str(), value.c_str())}; 96 if (!port::safe_strto32(pieces[1], &minor)) { 101 pieces[1].c_str(), value.c_str())}; 103 if (pieces.size() == 3 && !port::safe_strto32(pieces[2], &patch)) { 108 pieces[2].c_str(), value.c_str())} 172 std::vector<string> pieces = port::Split(library_path, ':'); local [all...] |
/external/skia/tools/lua/ |
count_dashes.lua | 51 local pieces = 2*p 52 if pieces < 5 then 55 if pieces > 5 and pieces < 10 then
|
/external/skqp/tools/lua/ |
count_dashes.lua | 51 local pieces = 2*p 52 if pieces < 5 then 55 if pieces > 5 and pieces < 10 then
|
/external/icu/icu4c/source/common/ |
caniter.cpp | 71 pieces(NULL), 90 if(pieces != NULL) { 92 if(pieces[i] != NULL) { 93 delete[] pieces[i]; 96 uprv_free(pieces); 97 pieces = NULL; 146 buffer.append(pieces[i][current[i]]); 185 pieces = (UnicodeString **)uprv_malloc(sizeof(UnicodeString *)); 190 if (pieces == NULL || pieces_lengths == NULL || current == NULL) { 195 pieces[0] = new UnicodeString[1] [all...] |
/bootable/recovery/applypatch/ |
applypatch_modes.cpp | 55 std::vector<std::string> pieces = android::base::Split(argv[i], ":"); local 56 if (pieces.size() != 2) { 62 if (ParseSha1(pieces[0].c_str(), digest) != 0) { 67 sha1s->push_back(pieces[0]); 69 if (LoadFileContents(pieces[1].c_str(), &fc) != 0) {
|
applypatch.cpp | 98 std::vector<std::string> pieces = android::base::Split(filename, ":"); local 99 if (pieces.size() < 4 || pieces.size() % 2 != 0 || pieces[0] != "EMMC") { 104 size_t pair_count = (pieces.size() - 2) / 2; // # of (size, sha1) pairs in filename 108 if (!android::base::ParseUint(pieces[i * 2 + 2], &size) || size == 0) { 109 printf("LoadPartitionContents called with bad size \"%s\"\n", pieces[i * 2 + 2].c_str()); 112 pairs.push_back({ size, pieces[i * 2 + 3] }); 118 const char* partition = pieces[1].c_str(); 219 std::vector<std::string> pieces = android::base::Split(target, ":") local 560 std::vector<std::string> pieces = android::base::Split(target_str, ":"); local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
repr.py | 48 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)]
49 if n > maxiter: pieces.append('...')
50 s = ', '.join(pieces)
82 pieces = []
86 pieces.append('%s: %s' % (keyrepr, valrepr))
87 if n > self.maxdict: pieces.append('...')
88 s = ', '.join(pieces)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
repr.py | 48 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)]
49 if n > maxiter: pieces.append('...')
50 s = ', '.join(pieces)
82 pieces = []
86 pieces.append('%s: %s' % (keyrepr, valrepr))
87 if n > self.maxdict: pieces.append('...')
88 s = ', '.join(pieces)
|
/external/python/cpython2/Lib/ |
repr.py | 48 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)] 49 if n > maxiter: pieces.append('...') 50 s = ', '.join(pieces) 82 pieces = [] 86 pieces.append('%s: %s' % (keyrepr, valrepr)) 87 if n > self.maxdict: pieces.append('...') 88 s = ', '.join(pieces)
|
/external/python/cpython3/Lib/ |
reprlib.py | 74 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)] 75 if n > maxiter: pieces.append('...') 76 s = ', '.join(pieces) 114 pieces = [] 118 pieces.append('%s: %s' % (keyrepr, valrepr)) 119 if n > self.maxdict: pieces.append('...') 120 s = ', '.join(pieces)
|
/frameworks/minikin/include/minikin/ |
MeasuredText.h | 52 const LayoutPieces& pieces) const = 0; 66 LayoutPieces* /* pieces */) const { 86 LayoutPieces* pieces) const override { 89 EndHyphenEdit::NO_EDIT, advances, extents, pieces); 93 const LayoutPieces& pieces) const override { 95 return Layout::getBoundsWithPrecomputedPieces(text, range, bidiFlag, mPaint, pieces); 102 LayoutPieces* pieces) const override { 105 nullptr /* extent */, pieces); 123 MinikinExtent* /* unused */, LayoutPieces* /* pieces */) const override { 130 const LayoutPieces& /* pieces */) const override [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
repr.py | 48 pieces = [repr1(elem, newlevel) for elem in islice(x, maxiter)] 49 if n > maxiter: pieces.append('...') 50 s = ', '.join(pieces) 82 pieces = [] 86 pieces.append('%s: %s' % (keyrepr, valrepr)) 87 if n > self.maxdict: pieces.append('...') 88 s = ', '.join(pieces)
|