Searched refs:set (Results 1 - 24 of 24) sorted by relevance

/system/extras/tests/bionic/libc/common/
H A Dtest_cpu_set.c67 test_1(cpu_set_t* set) argument
76 CPU_ZERO(set);
77 TEST_INT_EQ(CPU_COUNT(set),0);
78 T(CPU_EQUAL(set, other));
79 T(CPU_EQUAL(other, set));
82 F(CPU_ISSET(nn, set));
87 CPU_SET(nn, set);
88 TEST_INT_EQ(CPU_COUNT(set),1);
90 T(CPU_ISSET(mm, set) == (mm == nn));
92 CPU_CLR(nn, set);
130 test_1_s(size_t setsize, cpu_set_t* set) argument
203 cpu_set_t* set = CPU_ALLOC(count); local
[all...]
/system/keymaster/
H A Dgoogle_keymaster_test_utils.h39 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set);
44 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, argument
46 int pos = set.find(tag);
47 return pos != -1 && set[pos].enumerated == val;
51 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, argument
54 while ((pos = set.find(tag, pos)) != -1)
55 if (set[pos].enumerated == val)
61 bool contains(const AuthorizationSet& set, TypedTag<KM_INT, Tag> tag, uint32_t val) { argument
62 int pos = set.find(tag);
63 return pos != -1 && set[po
67 contains(const AuthorizationSet& set, TypedTag<KM_INT_REP, Tag> tag, uint32_t val) argument
76 contains(const AuthorizationSet& set, TypedTag<KM_LONG, Tag> tag, uint64_t val) argument
82 contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) argument
89 contains(const AuthorizationSet& set, keymaster_tag_t tag) argument
[all...]
H A Dauthorization_set_test.cpp45 AuthorizationSet set(params, array_length(params));
46 EXPECT_EQ(8U, set.size());
60 AuthorizationSet set(params, array_length(params));
61 AuthorizationSet set2(set);
62 EXPECT_EQ(set, set2);
76 AuthorizationSet set(params, array_length(params));
77 EXPECT_EQ(8U, set.size());
79 int pos = set.find(TAG_ALGORITHM);
81 EXPECT_EQ(KM_TAG_ALGORITHM, set[pos].tag);
82 EXPECT_EQ(KM_ALGORITHM_RSA, set[po
[all...]
H A Dgoogle_keymaster_test_utils.cpp99 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set) { argument
100 if (set.size() == 0)
102 for (size_t i = 0; i < set.size(); ++i) {
103 os << set[i] << std::endl;
H A Dauthorization_set.cpp34 AuthorizationSet::AuthorizationSet(const AuthorizationSet& set) argument
36 Reinitialize(set.elems_, set.elems_size_);
182 bool AuthorizationSet::push_back(const AuthorizationSet& set) { argument
186 if (!reserve_elems(elems_size_ + set.elems_size_))
189 if (!reserve_indirect(indirect_data_size_ + set.indirect_data_size_))
192 for (size_t i = 0; i < set.size(); ++i)
193 if (!push_back(set[i]))
H A Dgoogle_keymaster_test.cpp436 void AddClientParams(AuthorizationSet* set) { set->push_back(TAG_APPLICATION_ID, "app_id", 6); } argument
/system/netd/server/
H A DNetwork.h22 #include <set>
43 const std::set<std::string>& getInterfaces() const;
54 std::set<std::string> mInterfaces;
H A DNatController.h48 int setForwardRules(bool set, const char *intIface, const char *extIface);
H A DNetwork.cpp36 const std::set<std::string>& Network::getInterfaces() const {
43 // removes the string from the set.
H A DNetworkController.h27 #include <set>
38 * by netid. In all set* commands netid == 0 means "unspecified" and is
53 // set to a non-NETID_UNSET value if the user already has indicated a preference. Returns the
54 // fwmark value to set on the socket when performing the DNS request.
110 std::set<uid_t> mProtectableUsers;
/system/core/libutils/tests/
H A DBlobCache_test.cpp48 mBC->set("abcd", 4, "efgh", 4);
58 mBC->set("ab", 2, "cd", 2);
59 mBC->set("ef", 2, "gh", 2);
70 mBC->set("abcd", 4, "efgh", 4);
82 mBC->set("abcd", 4, "efgh", 4);
90 mBC->set("abcd", 4, "efgh", 4);
96 mBC->set("abcd", 4, "efgh", 4);
97 mBC->set("abcd", 4, "ijkl", 4);
107 mBC->set("abcd", 4, "efgh", 4);
108 mBC->set("abc
[all...]
H A DBasicHashtable_test.cpp390 bool set[N]; local
391 memset(set, 0, sizeof(bool) * N);
400 ASSERT_FALSE(set[entry.key]);
403 set[entry.key] = true;
/system/core/toolbox/
H A Dr.c52 bool set = false; local
55 set = true;
81 if(set) *x = value;
87 if(set) *x = value;
93 if(set) *x = value;
H A Difconfig.c22 static void setflags(int s, struct ifreq *ifr, int set, int clr) argument
25 ifr->ifr_flags = (ifr->ifr_flags & (~clr)) | set;
/system/core/libpixelflinger/arch-mips/
H A Dt32cb16blend.S41 DBG .set noat
43 DBG .set at
75 DBG .set noat
82 DBG .set at
92 DBG .set push
93 DBG .set noat
94 DBG .set mips32r2
96 DBG .set pop
160 DBG .set push
161 DBG .set noa
[all...]
/system/core/debuggerd/mips/
H A Dcrashglue.S1 .set noat
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dargs.c88 u_int set, noset; member in struct:arg
144 "%s: illegal argument combination or already set",
148 ddflags |= ap->set;
157 * just wanted to set both the input and output block sizes
336 u_int set, noset; member in struct:conv
377 ddflags |= cp->set;
/system/keymaster/include/keymaster/
H A Dauthorization_set.h29 * A container that manages a set of keymaster_key_param_t objects, providing serialization,
49 * set, if allocations might fail.
72 bool Reinitialize(const AuthorizationSet& set) { argument
73 return Reinitialize(set.elems_, set.elems_size_);
87 * Returns the size of the set.
92 * Returns the total size of all indirect data referenced by set elements.
97 * Returns the data in the set, directly. Be careful with this.
108 * Returns the nth element of the set.
210 bool push_back(const AuthorizationSet& set);
[all...]
/system/core/libsync/tests/
H A Dsync_test.cpp281 fd_set set; local
282 FD_ZERO(&set);
283 FD_SET(fence.getFd(), &set);
287 ASSERT_EQ(select(fence.getFd() + 1, &set, nullptr, nullptr, &time), 0);
294 FD_ZERO(&set);
295 FD_SET(fence.getFd(), &set);
297 ASSERT_EQ(select(fence.getFd() + 1, &set, nullptr, nullptr, &time), 1);
298 ASSERT_TRUE(FD_ISSET(fence.getFd(), &set));
569 // Randomly create syncpoints out of a fixed set of timelines, and merge them together.
/system/core/include/utils/
H A DBlobCache.h46 // set inserts a new binary value into the cache and associates it with the
53 // will be in the cache after set returns. Note, however, that a subsequent
54 // call to set may evict old key/value pairs from the cache.
61 void set(const void* key, size_t keySize, const void* value,
112 // clean evicts a randomly chosen set of entries from the cache such that
212 // BlobCache::set with a keySize parameter larger than mMaxKeySize will
217 // BlobCache::set with a valueSize parameter larger than mMaxValueSize will
222 // includes space for both keys and values. When a call to BlobCache::set
224 // pair passed to BlobCache::set will not be cached or other cache entries
237 // Cache entries are added to it by the 'set' metho
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp96 static ostream &operator<<(ostream &stream, const cpu_set_t& set);
374 static ostream &operator<<(ostream &stream, const cpu_set_t& set) argument
377 if (CPU_ISSET(n1, &set)) {
/system/core/libutils/
H A DBlobCache.cpp55 void BlobCache::set(const void* key, size_t keySize, const void* value, function in class:android::BlobCache
58 ALOGV("set: not caching because the key is too large: %zu (limit: %zu)",
63 ALOGV("set: not caching because the value is too large: %zu (limit: %zu)",
68 ALOGV("set: not caching because the combined key/value size is too "
73 ALOGW("set: not caching because keySize is 0");
77 ALOGW("set: not caching because valueSize is 0");
97 ALOGV("set: not caching new key/value pair because the "
106 ALOGV("set: created new cache entry with %zu byte key and %zu byte value",
119 ALOGV("set: not caching new value because the total cache "
127 ALOGV("set
[all...]
/system/core/libnetutils/
H A Difc_utils.c198 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) argument
204 ifr.ifr_flags = (ifr.ifr_flags & (~clr)) | set;
681 printerr("failed to set ipaddr %s: %s\n", ipaddr_to_string(address), strerror(errno));
686 printerr("failed to set prefixLength %d: %s\n", prefixLength, strerror(errno));
691 printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno));
/system/media/camera/docs/
H A Dmetadata_helpers.py18 A set of helpers for rendering Mako templates with a Metadata model.
253 raise ValueError("Context buffer was not set")
705 javadoc comment section, given a set of metadata
880 tag_set = set()

Completed in 405 milliseconds