/external/selinux/libsepol/src/ |
D | kernel_to_common.c | 99 int strs_init(struct strs **strs, size_t size) in strs_init() argument 101 struct strs *new; in strs_init() 103 *strs = NULL; in strs_init() 105 new = malloc(sizeof(struct strs)); in strs_init() 121 *strs = new; in strs_init() 126 void strs_destroy(struct strs **strs) in strs_destroy() argument 128 if (!strs || !*strs) { in strs_destroy() 132 free((*strs)->list); in strs_destroy() 133 (*strs)->list = NULL; in strs_destroy() 134 (*strs)->num = 0; in strs_destroy() [all …]
|
D | kernel_to_common.h | 74 struct strs { struct 89 int strs_init(struct strs **strs, size_t size); argument 90 void strs_destroy(struct strs **strs); 91 void strs_free_all(struct strs *strs); 92 int strs_add(struct strs *strs, char *s); 94 int strs_create_and_add(struct strs *strs, const char *fmt, int num, ...); 95 char *strs_remove_last(struct strs *strs); 96 int strs_add_at_index(struct strs *strs, char *s, unsigned index); 97 char *strs_read_at_index(struct strs *strs, unsigned index); 98 void strs_sort(struct strs *strs); [all …]
|
D | kernel_to_conf.c | 30 struct strs *stack; in cond_expr_to_str() 117 struct strs *stack = NULL; in constraint_expr_to_str() 258 struct strs *mls_list, in class_constraint_rules_to_strs() 259 struct strs *non_mls_list) in class_constraint_rules_to_strs() 262 struct strs *strs; in class_constraint_rules_to_strs() local 283 strs = mls_list; in class_constraint_rules_to_strs() 286 strs = non_mls_list; in class_constraint_rules_to_strs() 289 rc = strs_create_and_add(strs, format_str, 4, in class_constraint_rules_to_strs() 305 struct strs *mls_list, in class_validatetrans_rules_to_strs() 306 struct strs *non_mls_list) in class_validatetrans_rules_to_strs() [all …]
|
D | kernel_to_cil.c | 31 struct strs *stack; in cond_expr_to_str() 119 struct strs *stack = NULL; in constraint_expr_to_str() 262 struct strs *mls_list, in class_constraint_rules_to_strs() 263 struct strs *non_mls_list) in class_constraint_rules_to_strs() 271 struct strs *strs; in class_constraint_rules_to_strs() local 284 strs = mls_list; in class_constraint_rules_to_strs() 287 strs = non_mls_list; in class_constraint_rules_to_strs() 290 rc = strs_create_and_add(strs, format_str, 3, classkey, perms+1, expr); in class_constraint_rules_to_strs() 305 struct strs *mls_list, in class_validatetrans_rules_to_strs() 306 struct strs *non_mls_list) in class_validatetrans_rules_to_strs() [all …]
|
/external/autotest/server/site_tests/bluetooth_Sanity_DefaultState/ |
D | bluetooth_Sanity_DefaultState.py | 19 strs = [] 21 strs.append("POWERED") 23 strs.append("CONNECTABLE") 25 strs.append("FAST-CONNECTABLE") 27 strs.append("DISCOVERABLE") 29 strs.append("PAIRABLE") 31 strs.append("LINK-SECURITY") 33 strs.append("SSP") 35 strs.append("BR/EDR") 37 strs.append("HS") [all …]
|
/external/icu/icu4c/source/tools/toolutil/ |
D | dbgutil.cpp | 25 static UnicodeString **strs = NULL; variable 38 if(strs != NULL) { in udbg_cleanup() 40 delete [] strs[t]; in udbg_cleanup() 42 delete[] strs; in udbg_cleanup() 43 strs = NULL; in udbg_cleanup() 59 if(strs == NULL) { in udbg_setup() 73 strs = newStrs; in udbg_setup() 80 if(strs == NULL ) { in udbg_enumString() 87 return strs[UDBG_ENUM_COUNT][0]; in udbg_enumString() 93 return strs[type][count]; in udbg_enumString() [all …]
|
/external/jemalloc/test/unit/ |
D | ckh.c | 24 const char *strs[] = { in TEST_BEGIN() local 42 for (i = 0; i < sizeof(strs)/sizeof(const char *); i++) { in TEST_BEGIN() 43 ckh_insert(tsd, &ckh, strs[i], strs[i]); in TEST_BEGIN() 50 for (i = 0; i < sizeof(strs)/sizeof(const char *); i++) { in TEST_BEGIN() 62 assert_false(ckh_search(&ckh, strs[i], kp, vp), in TEST_BEGIN() 65 ks = (i & 1) ? strs[i] : (const char *)NULL; in TEST_BEGIN() 66 vs = (i & 2) ? strs[i] : (const char *)NULL; in TEST_BEGIN() 76 for (i = 0; i < sizeof(strs)/sizeof(const char *); i++) { in TEST_BEGIN() 88 assert_false(ckh_remove(tsd, &ckh, strs[i], kp, vp), in TEST_BEGIN() 91 ks = (i & 1) ? strs[i] : (const char *)NULL; in TEST_BEGIN() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | wtf_types_unittest.cc | 65 WTF::Vector<WTF::String> strs(4); in ConstructStringArray() local 68 strs[1] = ""; in ConstructStringArray() 69 strs[2] = kHelloWorld; in ConstructStringArray() 70 strs[3] = WTF::String::fromUTF8(kUTF8HelloWorld); in ConstructStringArray() 72 return strs; in ConstructStringArray() 110 WTFArray<WTF::String> strs = ConstructStringArray(); in TEST_F() local 111 auto cloned_strs = strs.Clone(); in TEST_F() 127 EXPECT_TRUE(strs.Equals(strs2)); in TEST_F() 131 WTF::Vector<WTF::String> strs = ConstructStringArray(); in TEST_F() local 132 auto cloned_strs = strs; in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | strcat_test.cc | 68 string strs[] = {"Hello", "Cruel", "World"}; in TEST() local 86 result = tensorflow::strings::StrCat(strs[1], pieces[2]); in TEST() 89 result = tensorflow::strings::StrCat(strs[0], ", ", pieces[2]); in TEST() 93 tensorflow::strings::StrCat(strs[0], ", ", strs[1], " ", strs[2], "!"); in TEST() 215 string strs[] = {"Hello", "Cruel", "World"}; in TEST() local 225 tensorflow::strings::StrAppend(&result, strs[0]); in TEST() 229 tensorflow::strings::StrAppend(&result, strs[1], pieces[2]); in TEST() 233 tensorflow::strings::StrAppend(&result, strs[0], ", ", pieces[2]); in TEST() 237 tensorflow::strings::StrAppend(&result, strs[0], ", ", strs[1], " ", strs[2], in TEST()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | cloud_storage_unittest.py | 70 strs = ['You are attempting to access protected data with no configured', 72 self._AssertRunCommandRaisesError(strs, cloud_storage.CredentialsError) 75 strs = ['status=403', 'status 403', '403 Forbidden'] 76 self._AssertRunCommandRaisesError(strs, cloud_storage.PermissionError) 79 strs = ['InvalidUriError', 'No such object', 'No URLs matched', 81 self._AssertRunCommandRaisesError(strs, cloud_storage.NotFoundError) 84 strs = ['500 Internal Server Error'] 85 self._AssertRunCommandRaisesError(strs, cloud_storage.ServerError) 88 strs = ['Random string'] 89 self._AssertRunCommandRaisesError(strs, cloud_storage.CloudStorageError)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
D | Strings.java | 382 String[] strs = new String[this.size()]; in toStringArray() local 384 for (int i = 0; i != strs.length; i++) in toStringArray() 386 strs[i] = this.get(i); in toStringArray() 389 return strs; in toStringArray() 394 String[] strs = new String[to - from]; in toStringArray() local 398 strs[i - from] = this.get(i); in toStringArray() 401 return strs; in toStringArray()
|
/external/compiler-rt/test/asan/TestCases/Darwin/ |
D | crashlog-stacktraces.c | 19 char** strs = backtrace_symbols(callstack, frames); in death_function() local 21 fprintf(stderr, "%s\n", strs[i]); in death_function() 23 free(strs); in death_function()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | as_string_op_test.py | 41 s = lambda strs: [x.decode("ascii") for x in strs] argument 85 s = lambda strs: [x.decode("ascii") for x in strs] argument 118 s = lambda strs: [x.decode("ascii") for x in strs] argument 135 s = lambda strs: [x.decode("ascii") for x in strs] argument
|
/external/clang/tools/arcmt-test/ |
D | arcmt-test.cpp | 250 SmallVector<StringRef, 8> strs; in verifyTransformedFiles() local 251 inputBuf.get()->getBuffer().split(strs, "\n", /*MaxSplit=*/-1, in verifyTransformedFiles() 254 if (strs.empty()) { in verifyTransformedFiles() 258 if (strs.size() % 2 != 0) { in verifyTransformedFiles() 263 for (unsigned i = 0, e = strs.size(); i != e; i += 2) { in verifyTransformedFiles() 264 StringRef inputOrigFname = strs[i]; in verifyTransformedFiles() 265 StringRef inputResultFname = strs[i+1]; in verifyTransformedFiles()
|
/external/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/ |
D | MultibindingProducerModule.java | 50 static Set<String> strs() { in strs() method in MultibindingProducerModule 55 static int strCount(Set<String> strs) { in strCount() argument 56 return strs.size(); in strCount()
|
/external/python/cpython2/Tools/i18n/ |
D | msgfmt.py | 64 ids = strs = '' 68 offsets.append((len(ids), len(id), len(strs), len(MESSAGES[id]))) 70 strs += MESSAGES[id] + '\0' 95 output += strs
|
/external/python/cpython3/Tools/i18n/ |
D | msgfmt.py | 63 ids = strs = b'' 67 offsets.append((len(ids), len(id), len(strs), len(MESSAGES[id]))) 69 strs += MESSAGES[id] + b'\0' 94 output += strs
|
/external/clang/test/CodeGenCXX/ |
D | noinline-template.cpp | 14 Vector<int> strs; in foo() local 15 strs.growStorageBy(); in foo()
|
/external/ltp/testscripts/build/ |
D | default_runtest_set.awk | 37 split ($0,strs," ") 38 for (str in strs) {
|
/external/llvm/test/CodeGen/X86/ |
D | reverse_branches.ll | 18 %strs = alloca [1000 x [1001 x i8]], align 16 33 …%arraydecay = getelementptr inbounds [1000 x [1001 x i8]], [1000 x [1001 x i8]]* %strs, i64 0, i64… 35 …%add.ptr = getelementptr inbounds [1000 x [1001 x i8]], [1000 x [1001 x i8]]* %strs, i64 0, i64 %i… 65 …%arraydecay24 = getelementptr inbounds [1000 x [1001 x i8]], [1000 x [1001 x i8]]* %strs, i64 0, i… 82 …%add.ptr30 = getelementptr inbounds [1000 x [1001 x i8]], [1000 x [1001 x i8]]* %strs, i64 0, i64 …
|
/external/libmojo/mojo/public/interfaces/bindings/tests/ |
D | test_wtf_types.mojom | 10 array<string> strs; 23 array<string> strs;
|
/external/python/cpython2/Lib/ |
D | trace.py | 393 def find_lines_from_code(code, strs): argument 398 if lineno not in strs: 403 def find_lines(code, strs): argument 406 linenos = find_lines_from_code(code, strs) 412 linenos.update(find_lines(c, strs)) 447 strs = find_strings(filename) 448 return find_lines(code, strs)
|
/external/icu/icu4c/source/common/ |
D | filteredbrk.cpp | 518 LocalUResourceBundlePointer strs; in SimpleFilteredBreakIteratorBuilder() local 521 strs.adoptInstead(ures_getNextResource(breaks.getAlias(), strs.orphan(), &subStatus)); in SimpleFilteredBreakIteratorBuilder() 522 if(strs.isValid() && U_SUCCESS(subStatus)) { in SimpleFilteredBreakIteratorBuilder() 523 UnicodeString str(ures_getUnicodeString(strs.getAlias(), &status)); in SimpleFilteredBreakIteratorBuilder() 526 } while (strs.isValid() && U_SUCCESS(subStatus)); in SimpleFilteredBreakIteratorBuilder()
|
/external/python/cpython3/Lib/ |
D | trace.py | 348 def _find_lines_from_code(code, strs): argument 353 if lineno not in strs: 358 def _find_lines(code, strs): argument 361 linenos = _find_lines_from_code(code, strs) 367 linenos.update(_find_lines(c, strs)) 404 strs = _find_strings(filename, encoding) 405 return _find_lines(code, strs)
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
D | TestFmwk.java | 495 String strs[] = new String[array.length]; in checkArray() local 497 strs[i] = array[i].toString(); in checkArray() 499 return checkArray(msg, strs, expected); in checkArray() 515 String strs[] = new String[array.length]; in checkArray() local 517 strs[i] = array[i].toString(); in checkArray() 519 return checkArray(msg, strs, expected); in checkArray()
|