Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/system/connectivity/shill/net/
Dattribute_list.cc41 int id, AttributeList::NewFromIdMethod factory) { in CreateAttribute() argument
42 if (ContainsKey(attributes_, id)) { in CreateAttribute()
43 VLOG(7) << "Trying to re-add attribute " << id << ", not overwriting"; in CreateAttribute()
46 attributes_[id] = AttributePointer(factory.Run(id)); in CreateAttribute()
50 bool AttributeList::CreateControlAttribute(int id) { in CreateControlAttribute() argument
52 id, base::Bind(&NetlinkAttribute::NewControlAttributeFromId)); in CreateControlAttribute()
56 int id, NetlinkMessage::MessageContext context) { in CreateNl80211Attribute() argument
58 id, base::Bind(&NetlinkAttribute::NewNl80211AttributeFromId, context)); in CreateNl80211Attribute()
63 int id, const ByteString& value) { in CreateAndInitAttribute() argument
64 if (!CreateAttribute(id, factory)) { in CreateAndInitAttribute()
[all …]
Dattribute_list.h45 using NewFromIdMethod = base::Callback<NetlinkAttribute*(int id)>;
46 using AttributeMethod = base::Callback<bool(int id, const ByteString& value)>;
52 bool CreateAttribute(int id, NewFromIdMethod factory);
55 bool CreateControlAttribute(int id);
58 bool CreateNl80211Attribute(int id, NetlinkMessage::MessageContext context);
63 int id, const ByteString& value);
66 bool InitAttributeFromValue(int id, const ByteString& value);
93 bool CreateU8Attribute(int id, const char* id_string);
94 bool SetU8AttributeValue(int id, uint8_t value);
95 bool GetU8AttributeValue(int id, uint8_t* value) const;
[all …]
Dnetlink_attribute.h58 NetlinkAttribute(int id, const char* id_string,
64 static NetlinkAttribute* NewControlAttributeFromId(int id);
66 NetlinkMessage::MessageContext context, int id);
71 int id() const { return id_; } in id() function
150 NetlinkU8Attribute(int id, const char* id_string) in NetlinkU8Attribute() argument
151 : NetlinkAttribute(id, id_string, kType, kMyTypeString) {} in NetlinkU8Attribute()
168 NetlinkU16Attribute(int id, const char* id_string) in NetlinkU16Attribute() argument
169 : NetlinkAttribute(id, id_string, kType, kMyTypeString) {} in NetlinkU16Attribute()
187 NetlinkU32Attribute(int id, const char* id_string) in NetlinkU32Attribute() argument
188 : NetlinkAttribute(id, id_string, kType, kMyTypeString) {} in NetlinkU32Attribute()
[all …]
Dnetlink_attribute.cc44 NetlinkAttribute::NetlinkAttribute(int id, in NetlinkAttribute() argument
48 : has_a_value_(false), id_(id), id_string_(id_string), datatype_(datatype), in NetlinkAttribute()
53 NetlinkMessage::MessageContext context, int id) { in NewNl80211AttributeFromId() argument
55 switch (id) { in NewNl80211AttributeFromId()
257 attr.reset(new NetlinkAttributeGeneric(id)); in NewNl80211AttributeFromId()
264 NetlinkAttribute* NetlinkAttribute::NewControlAttributeFromId(int id) { in NewControlAttributeFromId() argument
266 switch (id) { in NewControlAttributeFromId()
289 attr.reset(new NetlinkAttributeGeneric(id)); in NewControlAttributeFromId()
419 id(), in HeaderToPrint()
429 header.nla_type = id(); in EncodeGeneric()
[all …]
/system/bt/bta/sys/
Dbta_sys_conn.c127 if ((bta_sys_cb.colli_reg.id[index] == bta_id) || in bta_sys_collision_register()
128 (bta_sys_cb.colli_reg.id[index] == 0)) in bta_sys_collision_register()
130 bta_sys_cb.colli_reg.id[index] = bta_id; in bta_sys_collision_register()
153 if ((bta_sys_cb.colli_reg.id[index] != 0) && in bta_sys_notify_collision()
202 void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_open() argument
207 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
214 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
232 void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr) in bta_sys_conn_close() argument
237 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
244 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
[all …]
Dbta_sys.h141 typedef void (tBTA_SYS_CONN_CBACK)(tBTA_SYS_CONN_STATUS status,UINT8 id, UINT8 app_id, BD_ADDR peer…
144 typedef void (tBTA_SYS_SSR_CFG_CBACK)(UINT8 id, UINT8 app_id, UINT16 latency, UINT16 tout);
177 #define BTA_SYS_EVT_START(id) ((id) << 8) argument
226 extern void bta_sys_register(UINT8 id, const tBTA_SYS_REG *p_reg);
227 extern void bta_sys_deregister(UINT8 id);
228 extern BOOLEAN bta_sys_is_register(UINT8 id);
246 extern void bta_sys_conn_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
247 extern void bta_sys_conn_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
248 extern void bta_sys_app_open(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
249 extern void bta_sys_app_close(UINT8 id, UINT8 app_id, BD_ADDR peer_addr);
[all …]
/system/core/logd/
DLogBuffer.cpp36 #define log_buffer_size(id) mMaxSize[id] argument
290 void LogBuffer::maybePrune(log_id_t id) { in maybePrune() argument
291 size_t sizes = stats.sizes(id); in maybePrune()
292 unsigned long maxSize = log_buffer_size(id); in maybePrune()
295 size_t elements = stats.realElements(id); in maybePrune()
307 prune(id, pruneRows); in maybePrune()
314 log_id_t id = element->getLogId(); in erase() local
318 mLastWorstUid[id].find(element->getUid()); in erase()
319 if ((found != mLastWorstUid[id].end()) in erase()
321 mLastWorstUid[id].erase(found); in erase()
[all …]
DCommandListener.cpp94 int id = atoi(argv[1]); in runCommand() local
95 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand()
100 cli->sendMsg(mBuf.clear((log_id_t) id, uid) ? "busy" : "success"); in runCommand()
117 int id = atoi(argv[1]); in runCommand() local
118 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand()
123 unsigned long size = mBuf.getSize((log_id_t) id); in runCommand()
148 int id = atoi(argv[1]); in runCommand() local
149 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand()
155 if (mBuf.setSize((log_id_t) id, size)) { in runCommand()
177 int id = atoi(argv[1]); in runCommand() local
[all …]
DLogStatistics.cpp27 log_id_for_each(id) { in LogStatistics()
28 mSizes[id] = 0; in LogStatistics()
29 mElements[id] = 0; in LogStatistics()
30 mDroppedElements[id] = 0; in LogStatistics()
31 mSizesTotal[id] = 0; in LogStatistics()
32 mElementsTotal[id] = 0; in LogStatistics()
205 std::string UidEntry::formatHeader(const std::string &name, log_id_t id) const { in formatHeader()
206 bool isprune = worstUidEnabledForLogid(id); in formatHeader()
208 name.c_str(), android_log_id_to_name(id)), in formatHeader()
216 std::string UidEntry::format(const LogStatistics &stat, log_id_t id) const { in format()
[all …]
/system/core/libutils/
DRefBase.cpp175 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
189 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
202 void addStrongRef(const void* id) { in addStrongRef() argument
205 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed)); in addStrongRef()
208 void removeStrongRef(const void* id) { in removeStrongRef() argument
212 removeRef(&mStrongRefs, id); in removeStrongRef()
214 addRef(&mStrongRefs, id, -mStrong.load(std::memory_order_relaxed)); in removeStrongRef()
225 void addWeakRef(const void* id) { in addWeakRef() argument
226 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed)); in addWeakRef()
229 void removeWeakRef(const void* id) { in removeWeakRef() argument
[all …]
/system/vold/
DVolumeManager.cpp220 char *VolumeManager::asecHash(const char *id, char *buffer, size_t len) { in asecHash() argument
229 } else if (id == NULL) { in asecHash()
240 MD5(reinterpret_cast<const unsigned char*>(id), strlen(id), sig); in asecHash()
356 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk() argument
358 if (disk->getId() == id) { in findDisk()
365 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume() argument
366 if (mInternalEmulated->getId() == id) { in findVolume()
370 auto vol = disk->findVolume(id); in findVolume()
386 nsecs_t VolumeManager::benchmarkPrivate(const std::string& id) { in benchmarkPrivate() argument
388 if (id == "private" || id == "null") { in benchmarkPrivate()
[all …]
DVolumeManager.h49 : id(_id) in ContainerData()
54 if (id != NULL) { in ~ContainerData()
55 free(id); in ~ContainerData()
56 id = NULL; in ~ContainerData()
60 char *id; variable
118 std::shared_ptr<android::vold::Disk> findDisk(const std::string& id);
119 std::shared_ptr<android::vold::VolumeBase> findVolume(const std::string& id);
123 nsecs_t benchmarkPrivate(const std::string& id);
144 int findAsec(const char *id, char *asecPath = NULL, size_t asecPathLen = 0,
146 int createAsec(const char *id, unsigned long numSectors, const char *fstype,
[all …]
/system/bt/service/hal/
Dgatt_helpers.cpp24 void GetHALServiceId(const GattIdentifier& id, btgatt_srvc_id_t* hal_id) { in GetHALServiceId() argument
26 CHECK(id.IsService()); in GetHALServiceId()
29 hal_id->is_primary = id.is_primary(); in GetHALServiceId()
30 hal_id->id.inst_id = id.service_instance_id(); in GetHALServiceId()
31 hal_id->id.uuid = id.service_uuid().GetBlueDroid(); in GetHALServiceId()
36 UUID uuid(srvc_id.id.uuid); in GetServiceIdFromHAL()
39 "", srvc_id.id.inst_id, uuid, srvc_id.is_primary); in GetServiceIdFromHAL()
/system/core/adb/
Dshell_service_protocol_test.cpp90 bool PacketEquals(const ShellProtocol* protocol, ShellProtocol::Id id, in PacketEquals() argument
92 return (protocol->id() == id && in PacketEquals()
101 ShellProtocol::Id id = ShellProtocol::kIdStdout; in TEST_F() local
105 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F()
108 ASSERT_TRUE(PacketEquals(read_protocol_, id, data, sizeof(data))); in TEST_F()
113 ShellProtocol::Id id = ShellProtocol::kIdStdin; in TEST_F() local
116 ASSERT_TRUE(write_protocol_->Write(id, 10)); in TEST_F()
120 ASSERT_TRUE(PacketEquals(read_protocol_, id, "1234", 4)); in TEST_F()
122 ASSERT_TRUE(PacketEquals(read_protocol_, id, "5678", 4)); in TEST_F()
124 ASSERT_TRUE(PacketEquals(read_protocol_, id, "90", 2)); in TEST_F()
[all …]
Dsockets.cpp66 if (s->id != local_id) { in find_local_socket()
69 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket()
88 s->id = local_socket_next_id++; in install_local_socket()
105 s->id = 0; in remove_socket()
126 D("LS(%d): enqueue %d", s->id, p->len); in local_socket_enqueue()
149 D("LS(%d): not ready, errno=%d: %s", s->id, errno, strerror(errno)); in local_socket_enqueue()
190 D("LS(%d): destroying fde.fd=%d", s->id, s->fde.fd); in local_socket_destroy()
199 D("LS(%d): discarding %d bytes", s->id, p->len); in local_socket_destroy()
213 D("entered local_socket_close. LS(%d) fd=%d", s->id, s->fd); in local_socket_close()
216 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close()
[all …]
Dfile_sync_service.cpp84 msg.stat.id = ID_STAT; in do_stat()
101 msg.dent.id = ID_DENT; in do_list()
125 msg.dent.id = ID_DONE; in do_list()
140 msg.data.id = ID_FAIL; in SendSyncFail()
188 if (msg.data.id != ID_DATA) { in handle_send_file()
189 if (msg.data.id == ID_DONE) { in handle_send_file()
217 msg.status.id = ID_OKAY; in handle_send_file()
231 if (msg.data.id == ID_DONE) { in handle_send_file()
233 } else if (msg.data.id != ID_DATA) { in handle_send_file()
234 char id[5]; in handle_send_file() local
[all …]
/system/connectivity/shill/
Deap_credentials.cc286 void EapCredentials::Load(StoreInterface* storage, const string& id) { in Load() argument
288 storage->GetCryptedString(id, in Load()
291 storage->GetString(id, kStorageEapCertID, &cert_id_); in Load()
292 storage->GetString(id, kStorageEapClientCert, &client_cert_); in Load()
293 storage->GetCryptedString(id, kStorageEapIdentity, &identity_); in Load()
294 storage->GetString(id, kStorageEapKeyID, &key_id_); in Load()
296 storage->GetString(id, kStorageEapKeyManagement, &key_management); in Load()
298 storage->GetCryptedString(id, kStorageEapPassword, &password_); in Load()
299 storage->GetString(id, kStorageEapPIN, &pin_); in Load()
300 storage->GetString(id, kStorageEapPrivateKey, &private_key_); in Load()
[all …]
Dtechnology.cc73 string Technology::NameFromIdentifier(Technology::Identifier id) { in NameFromIdentifier() argument
74 if (id == kEthernet) { in NameFromIdentifier()
76 } else if (id == kEthernetEap) { in NameFromIdentifier()
78 } else if (id == kWifi) { in NameFromIdentifier()
80 } else if (id == kWiMax) { in NameFromIdentifier()
82 } else if (id == kCellular) { in NameFromIdentifier()
84 } else if (id == kVPN) { in NameFromIdentifier()
86 } else if (id == kLoopback) { in NameFromIdentifier()
88 } else if (id == kTunnel) { in NameFromIdentifier()
90 } else if (id == kPPP) { in NameFromIdentifier()
[all …]
/system/bt/btif/src/
Dbtif_sock_rfc.c74 uint32_t id; // Non-zero indicates a valid (in-use) slot. member
135 if (rfc_slots[i].id) in btsock_rfc_cleanup()
150 static rfc_slot_t *find_rfc_slot_by_id(uint32_t id) { in find_rfc_slot_by_id() argument
151 assert(id != 0); in find_rfc_slot_by_id()
154 if (rfc_slots[i].id == id) in find_rfc_slot_by_id()
157 LOG_ERROR(LOG_TAG, "%s unable to find RFCOMM slot id: %d", __func__, id); in find_rfc_slot_by_id()
165 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && rfc_slots[i].id < min_id) { in find_rfc_slot_by_pending_sdp()
166 min_id = rfc_slots[i].id; in find_rfc_slot_by_pending_sdp()
175 if (rfc_slots[i].id && rfc_slots[i].f.doing_sdp_request) in is_requesting_sdp()
228 slot->id = rfc_slot_id; in alloc_rfc_slot()
[all …]
Dbtif_sock_l2cap.c70 uint32_t id; //just a tag to find this struct member
225 static l2cap_socket *btsock_l2cap_find_by_id_l(uint32_t id) in btsock_l2cap_find_by_id_l() argument
229 while (sock && sock->id != id) in btsock_l2cap_find_by_id_l()
259 APPL_TRACE_ERROR("SOCK_LIST: free(id = %d) - NO app_fd!", sock->id); in btsock_l2cap_free_l()
293 APPL_TRACE_DEBUG("%s: free(id = %d)", __func__, sock->id); in btsock_l2cap_free_l()
339 sock->id = (socks ? socks->id : 0) + 1; in btsock_l2cap_alloc_l()
345 while (t && t->id != sock->id) { in btsock_l2cap_alloc_l()
348 if (!t && sock->id) /* non-zeor handle is unique -> we're done */ in btsock_l2cap_alloc_l()
351 if (!++sock->id) /* no zero IDs allowed */ in btsock_l2cap_alloc_l()
352 sock->id++; in btsock_l2cap_alloc_l()
[all …]
/system/core/init/
Dkeychords.cpp54 keychord->id = keychords_count + 1; in add_service_keycodes()
56 svc->set_keychord_id(keychord->id); in add_service_keycodes()
68 __u16 id; in handle_keychord() local
70 ret = read(keychord_fd, &id, sizeof(id)); in handle_keychord()
71 if (ret != sizeof(id)) { in handle_keychord()
79 Service* svc = ServiceManager::GetInstance().FindServiceByKeychord(id); in handle_keychord()
84 ERROR("service for keychord %d not found\n", id); in handle_keychord()
/system/sepolicy/tools/sepolicy-analyze/
Dneverallow.c27 char *start, *id; in read_typeset() local
107 id = calloc(1, len + 1); in read_typeset()
108 if (!id) in read_typeset()
110 memcpy(id, start, len); in read_typeset()
112 printf(" %s", id); in read_typeset()
113 type = hashtab_search(policydb->p_types.table, id); in read_typeset()
116 …err, "Warning! Type or attribute %s used in neverallow undefined in policy being checked.\n", id); in read_typeset()
120 free(id); in read_typeset()
190 char *id, *start; in read_classperms() local
244 id = calloc(1, p - start + 1); in read_classperms()
[all …]
/system/bt/btcore/src/
Dhal_util.c42 const char *id = BT_STACK_MODULE_ID; in load_bt_library() local
61 if (strcmp(id, hmi->id) != 0) { in load_bt_library()
62 HULOGERR("id=%s does not match HAL module ID: %s", id, hmi->id); in load_bt_library()
71 __func__, id, kBluetoothLibraryName, hmi, handle); in load_bt_library()
/system/connectivity/shill/wimax/
Dwimax_provider.cc162 WiMaxNetworkId id = args.LookupString(WiMaxService::kNetworkIdProperty, ""); in GetServiceParametersFromArgs() local
163 if (id.empty()) { in GetServiceParametersFromArgs()
177 *id_ptr = id; in GetServiceParametersFromArgs()
216 WiMaxNetworkId id; in GetService() local
218 if (!GetServiceParametersFromArgs(args, &id, &name, error)) { in GetService()
221 WiMaxServiceRefPtr service = GetUniqueService(id, name); in GetService()
232 WiMaxNetworkId id; in FindSimilarService() local
234 if (!GetServiceParametersFromArgs(args, &id, &name, error)) { in FindSimilarService()
237 string storage_id = WiMaxService::CreateStorageIdentifier(id, name); in FindSimilarService()
249 WiMaxNetworkId id; in CreateTemporaryService() local
[all …]
/system/connectivity/shill/pppoe/
Dpppoe_service.cc157 const string id = GetStorageIdentifier(); in Load() local
158 storage->GetString(id, kPPPoEUsernameProperty, &username_); in Load()
159 storage->GetString(id, kPPPoEPasswordProperty, &password_); in Load()
160 storage->GetInt(id, kPPPoELCPEchoIntervalProperty, &lcp_echo_interval_); in Load()
161 storage->GetInt(id, kPPPoELCPEchoFailureProperty, &lcp_echo_failure_); in Load()
162 storage->GetInt(id, kPPPoEMaxAuthFailureProperty, &max_auth_failure_); in Load()
172 const string id = GetStorageIdentifier(); in Save() local
173 storage->SetString(id, kPPPoEUsernameProperty, username_); in Save()
174 storage->SetString(id, kPPPoEPasswordProperty, password_); in Save()
175 storage->SetInt(id, kPPPoELCPEchoIntervalProperty, lcp_echo_interval_); in Save()
[all …]

12345678910>>...13