Home
last modified time | relevance | path

Searched refs:strs (Results 1 – 25 of 43) sorted by relevance

12

/external/selinux/libsepol/src/
Dkernel_to_common.h74 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 …]
Dkernel_to_common.c99 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 …]
Dkernel_to_cil.c31 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 …]
Dkernel_to_conf.c30 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 …]
/external/autotest/server/site_tests/bluetooth_Sanity_DefaultState/
Dbluetooth_Sanity_DefaultState.py19 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/
Ddbgutil.cpp25 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/
Dckh.c24 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/
Dwtf_types_unittest.cc65 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/chromium-trace/catapult/common/py_utils/py_utils/
Dcloud_storage_unittest.py67 strs = ['You are attempting to access protected data with no configured',
69 self._AssertRunCommandRaisesError(strs, cloud_storage.CredentialsError)
72 strs = ['status=403', 'status 403', '403 Forbidden']
73 self._AssertRunCommandRaisesError(strs, cloud_storage.PermissionError)
76 strs = ['InvalidUriError', 'No such object', 'No URLs matched',
78 self._AssertRunCommandRaisesError(strs, cloud_storage.NotFoundError)
81 strs = ['500 Internal Server Error']
82 self._AssertRunCommandRaisesError(strs, cloud_storage.ServerError)
85 strs = ['Random string']
86 self._AssertRunCommandRaisesError(strs, cloud_storage.CloudStorageError)
/external/compiler-rt/test/asan/TestCases/Darwin/
Dcrashlog-stacktraces.c19 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DStrings.java382 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/dagger2/compiler/src/it/producers-functional-tests/src/main/java/producerstest/
DMultibindingProducerModule.java50 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()
DMultibindingComponent.java26 ListenableFuture<Set<String>> strs(); in strs() method
/external/clang/tools/arcmt-test/
Darcmt-test.cpp250 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/clang/test/CodeGenCXX/
Dnoinline-template.cpp14 Vector<int> strs; in foo() local
15 strs.growStorageBy(); in foo()
/external/ltp/testscripts/build/
Ddefault_runtest_set.awk37 split ($0,strs," ")
38 for (str in strs) {
/external/python/cpython2/Tools/i18n/
Dmsgfmt.py64 ids = strs = ''
68 offsets.append((len(ids), len(id), len(strs), len(MESSAGES[id])))
70 strs += MESSAGES[id] + '\0'
95 output += strs
/external/llvm/test/CodeGen/X86/
Dreverse_branches.ll18 %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/
Dtest_wtf_types.mojom10 array<string> strs;
23 array<string> strs;
/external/python/cpython2/Lib/
Dtrace.py393 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/
Dfilteredbrk.cpp518 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DTestFmwk.java463 String strs[] = new String[array.length]; in checkArray() local
465 strs[i] = array[i].toString(); in checkArray()
467 return checkArray(msg, strs, expected); in checkArray()
483 String strs[] = new String[array.length]; in checkArray() local
485 strs[i] = array[i].toString(); in checkArray()
487 return checkArray(msg, strs, expected); in checkArray()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestFmwk.java462 String strs[] = new String[array.length]; in checkArray() local
464 strs[i] = array[i].toString(); in checkArray()
466 return checkArray(msg, strs, expected); in checkArray()
482 String strs[] = new String[array.length]; in checkArray() local
484 strs[i] = array[i].toString(); in checkArray()
486 return checkArray(msg, strs, expected); in checkArray()
/external/clang/test/CodeGen/
Dstaticinit.c14 static char* strs[] = { "one", "two", "three", "four" }; in f() local
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js386 function makeSet(strs) { argument
388 for (var i = 0, n = strs.length; i < n; ++i) {
389 s[strs[i]] = s;

12