/system/bt/btif/src/ |
H A D | btif_uid.cc | 41 uid_set_t* set = (uid_set_t*)osi_calloc(sizeof(uid_set_t)); local 42 return set; 45 void uid_set_destroy(uid_set_t* set) { argument 46 std::unique_lock<std::mutex> lock(set->lock); 47 uid_set_node_t* node = set->head; 53 set->head = NULL; 54 osi_free(set); 58 static uid_set_node_t* uid_set_find_or_create_node(uid_set_t* set, argument 60 uid_set_node_t* node = set->head; 68 node->next = set 74 uid_set_add_tx(uid_set_t* set, int32_t app_uid, uint64_t bytes) argument 82 uid_set_add_rx(uid_set_t* set, int32_t app_uid, uint64_t bytes) argument 90 uid_set_read_and_clear(uid_set_t* set) argument [all...] |
H A D | btif_sock_l2cap.cc | 338 bt_status_t btsock_l2cap_init(int handle, uid_set_t* set) { argument 343 uid_set = set; 497 // if we do not set a callback, this socket will be dropped */ 804 * mtu will be set below */ 822 * mtu will be set below */ 906 * mtu will be set below */
|
H A D | btif_sock_rfc.cc | 115 bt_status_t btsock_rfc_init(int poll_thread_handle, uid_set_t* set) { argument 117 uid_set = set; 290 "BTA_JvGetChannelId: service_uuid not set AND " 291 "BTSOCK_FLAG_NO_SDP is not set - changing to SPP"); 667 "is_service_uuid_valid==false - don't set SDP-record, "
|
/system/chre/platform/slpi/ |
H A D | system_timer.cc | 57 bool SystemTimer::set(SystemTimerCallback *callback, void *data, function in class:chre::SystemTimer
|
/system/libhidl/transport/include/hidl/ |
H A D | ConcurrentMap.h | 33 void set(K &&k, V &&v) { function in class:android::hardware::ConcurrentMap
|
/system/chre/platform/linux/ |
H A D | system_timer.cc | 77 bool SystemTimer::set(SystemTimerCallback *callback, void *data, function in class:chre::SystemTimer 128 LOGE("Couldn't set timer: %s", strerror(errno));
|
/system/media/audio_utils/ |
H A D | fifo_index.cpp | 65 void RefIndexDeferredStoreReleaseDeferredWake::set(uint32_t value) { function in class:RefIndexDeferredStoreReleaseDeferredWake 80 set(value);
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | args.c | 88 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/extras/mmap-perf/ |
H A D | mmapPerf.cpp | 24 void set(int fd) { m_fd = fd; } function in class:Fd 63 m_fileFd.set(fd);
|
/system/bt/btcore/src/ |
H A D | device_class.cc | 131 void device_class_set_information(bt_device_class_t* dc, bool set) { argument 133 if (set) 144 void device_class_set_limited(bt_device_class_t* dc, bool set) { argument 146 if (set)
|
/system/bt/stack/btm/ |
H A D | ble_advertiser_hci_interface.cc | 218 SetEnableData& set = sets[0]; variable 220 if (set.max_extended_advertising_events) { 231 UINT8_TO_STREAM(pp, set.handle); 422 SetEnableData& set = sets[0]; variable 423 if (set.max_extended_advertising_events) { 591 for (const SetEnableData& set : sets) { 592 UINT8_TO_STREAM(pp, set.handle); 593 UINT16_TO_STREAM(pp, set.duration); 594 UINT8_TO_STREAM(pp, set.max_extended_advertising_events);
|
/system/bt/stack/srvc/ |
H A D | srvc_eng.cc | 363 bool set = true; local 371 set = false; 373 return set;
|
/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 85 static ostream &operator<<(ostream &stream, const cpu_set_t& set); 234 static ostream &operator<<(ostream &stream, const cpu_set_t& set) argument 237 if (CPU_ISSET(n1, &set)) {
|
/system/keymaster/include/keymaster/ |
H A D | authorization_set.h | 54 * set, if allocations might fail. 61 explicit AuthorizationSet(const keymaster_key_param_set_t& set) : indirect_data_(nullptr) { argument 63 Reinitialize(set.params, set.length); 79 AuthorizationSet(const AuthorizationSet& set) : Serializable(), indirect_data_(nullptr) { argument 81 error_ = set.error_; 83 Reinitialize(set.elems_, set.elems_size_); 87 AuthorizationSet(AuthorizationSet&& set) : Serializable() { argument 88 MoveFrom(set); 92 operator =(const AuthorizationSet& set) argument 99 operator =(AuthorizationSet&& set) argument 118 Reinitialize(const AuthorizationSet& set) argument 122 Reinitialize(const keymaster_key_param_set_t& set) argument 546 AuthorizationSet set; member in class:keymaster::AuthorizationSetBuilder [all...] |
/system/core/liblog/tests/ |
H A D | liblog_benchmark.cpp | 804 static std::unordered_set<uint32_t> set; variable 816 set.insert(tag); 819 fprintf(stderr, "Precharge: stop %zu\n", set.size()); 830 std::unordered_set<uint32_t>::const_iterator it = set.begin(); 838 if (it == set.end()) it = set.begin(); 853 while (set.find(notTag) != set.end()) { 878 std::unordered_set<uint32_t>::const_iterator it = set.begin(); 886 if (it == set [all...] |
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 308 fd_set set; local 309 FD_ZERO(&set); 310 FD_SET(fence.getFd(), &set); 314 ASSERT_EQ(select(fence.getFd() + 1, &set, nullptr, nullptr, &time), 0); 321 FD_ZERO(&set); 322 FD_SET(fence.getFd(), &set); 324 ASSERT_EQ(select(fence.getFd() + 1, &set, nullptr, nullptr, &time), 1); 325 ASSERT_TRUE(FD_ISSET(fence.getFd(), &set)); 579 // Randomly create syncpoints out of a fixed set of timelines, and merge them together.
|
/system/keymaster/ |
H A D | android_keymaster_test_utils.h | 53 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set); 58 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, argument 60 int pos = set.find(tag); 61 return pos != -1 && static_cast<KeymasterEnum>(set[pos].enumerated) == val; 65 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, argument 68 while ((pos = set.find(tag, pos)) != -1) 69 if (static_cast<KeymasterEnum>(set[pos].enumerated) == val) 75 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { argument 76 int pos = set.find(tag); 77 return pos != -1 && set[po 81 contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) argument 90 contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) argument 96 contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) argument 104 contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) argument 111 contains(const AuthorizationSet& set, keymaster_tag_t tag) argument [all...] |
H A D | authorization_set.cpp | 38 elems_ = builder.set.elems_; 39 builder.set.elems_ = NULL; 41 elems_size_ = builder.set.elems_size_; 42 builder.set.elems_size_ = 0; 44 elems_capacity_ = builder.set.elems_capacity_; 45 builder.set.elems_capacity_ = 0; 47 indirect_data_ = builder.set.indirect_data_; 48 builder.set.indirect_data_ = NULL; 50 indirect_data_capacity_ = builder.set.indirect_data_capacity_; 51 builder.set 106 MoveFrom(AuthorizationSet& set) argument 182 Union(const keymaster_key_param_set_t& set) argument 190 Difference(const keymaster_key_param_set_t& set) argument 269 push_back(const keymaster_key_param_set_t& set) argument [all...] |
H A D | soft_keymaster_context.cpp | 286 bool UpgradeIntegerTag(keymaster_tag_t tag, uint32_t value, AuthorizationSet* set, argument 288 int index = set->find(tag); 293 set->push_back(param); 298 if (set->params[index].integer > value) 301 if (set->params[index].integer != value) { 302 set->params[index].integer = value;
|
/system/libvintf/test/ |
H A D | main.cpp | 71 void set(CompatibilityMatrix &cm, Sepolicy &&sepolicy) { function in struct:android::vintf::LibVintfTest 74 void set(CompatibilityMatrix &cm, SchemaType type) { function in struct:android::vintf::LibVintfTest 77 void set(CompatibilityMatrix &cm, VndkVersionRange &&range, std::set<std::string> &&libs) { function in struct:android::vintf::LibVintfTest 400 std::set<std::string>({"default", "legacy/0"})); 402 std::set<std::string>({"camera"})); 404 std::set<std::string>({})); 406 std::set<std::string>({"default"})); 557 set(cm, Sepolicy(30, {{25, 0}, {26, 0, 3}})); 619 set(c [all...] |
/system/netd/server/ |
H A D | ResolverController.cpp | 24 #include <set> 61 std::set<std::vector<uint8_t>> fingerprints; 103 // Structure for tracking the entire set of known Private DNS servers. 105 typedef std::set<PrivateDnsServer> PrivateDnsSet; 115 PrivateDnsSet set; local 119 set.insert(parsed); 122 return set; 213 sockaddr_storage* secureServer, std::set<std::vector<uint8_t>>* fingerprints) { 435 const std::set<std::vector<uint8_t>>& fingerprints) {
|
/system/security/keystore/ |
H A D | blob.cpp | 184 inline uint8_t setFlag(uint8_t flags, bool set, KeyStoreFlag flag) { argument 185 return set ? (flags | flag) : (flags & ~flag);
|
/system/sepolicy/tools/ |
H A D | checkfc.c | 47 const char * const *attrs; /* for the original set to print on error */ 48 ebitmap_t set; /* the ebitmap representation of the attrs */ member in struct:__anon2499::__anon2502 126 /* Take the intersection, if the set is empty, then its a failure */ 174 uint32_t len = ebitmap_length(&global_state.assert.set); 177 &global_state.assert.set); 179 fprintf(stderr, "Error: type \"%s\" is not of set: ", type_name); 182 /* The calls above did not affect rc, so set error before going to out */ 187 /* Success: Although it should be 0, we explicitly set rc to 0 for clarity */ 229 ebitmap_destroy(&global_state.assert.set); 312 bool ret = ebitmap_attribute_assertion_init(&global_state.assert.set, global_stat [all...] |
/system/core/adb/ |
H A D | shell_service.cpp | 382 "failed to set non-blocking mode for fd %d", fd); 491 inline bool ValidAndInSet(const unique_fd& sfd, fd_set* set) { argument 492 return sfd != -1 && FD_ISSET(sfd, set);
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 202 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) argument 208 ifr.ifr_flags = (ifr.ifr_flags & (~clr)) | set; 704 printerr("failed to set ipaddr %s: %s\n", ipaddr_to_string(address), strerror(errno)); 709 printerr("failed to set prefixLength %d: %s\n", prefixLength, strerror(errno)); 714 printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno));
|