Home
last modified time | relevance | path

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

12345678910>>...22

/system/nfc/src/nfa/sys/
Dnfa_sys_main.cc74 uint8_t id; in nfa_sys_event() local
81 id = (uint8_t)(p_msg->event >> 8); in nfa_sys_event()
84 if ((id < NFA_ID_MAX) && (nfa_sys_cb.is_reg[id])) { in nfa_sys_event()
85 freebuf = (*nfa_sys_cb.reg[id]->evt_hdlr)(p_msg); in nfa_sys_event()
87 LOG(WARNING) << StringPrintf("NFA got unregistered event id %d", id); in nfa_sys_event()
121 void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg) { in nfa_sys_register() argument
122 nfa_sys_cb.reg[id] = (tNFA_SYS_REG*)p_reg; in nfa_sys_register()
123 nfa_sys_cb.is_reg[id] = true; in nfa_sys_register()
125 if ((id != NFA_ID_DM) && (id != NFA_ID_SYS)) in nfa_sys_register()
126 nfa_sys_cb.enable_cplt_mask |= (0x0001 << id); in nfa_sys_register()
[all …]
/system/timezone/input_data/android/
Dcountryzones.txt104 # id:
108 # (Optional) Used to identify the modern Olson ID when the id property is
112 # accident. The id must also link to the aliasId in IANA's data (see the IANA
145 id:"Europe/Andorra"
154 id:"Asia/Dubai"
163 id:"Asia/Kabul"
172 id:"America/Antigua"
181 id:"America/Anguilla"
190 id:"Europe/Tirane"
199 id:"Asia/Yerevan"
[all …]
/system/bt/bta/sys/
Dbta_sys_conn.cc113 if ((bta_sys_cb.colli_reg.id[index] == bta_id) || in bta_sys_collision_register()
114 (bta_sys_cb.colli_reg.id[index] == 0)) { in bta_sys_collision_register()
115 bta_sys_cb.colli_reg.id[index] = bta_id; in bta_sys_collision_register()
136 if ((bta_sys_cb.colli_reg.id[index] != 0) && in bta_sys_notify_collision()
183 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument
186 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
190 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open()
205 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument
208 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
212 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close()
[all …]
Dbta_sys_main.cc86 uint8_t id; in bta_sys_event() local
92 id = (uint8_t)(p_msg->event >> 8); in bta_sys_event()
95 if ((id < BTA_ID_MAX) && (bta_sys_cb.reg[id] != NULL)) { in bta_sys_event()
96 freebuf = (*bta_sys_cb.reg[id]->evt_hdlr)(p_msg); in bta_sys_event()
99 BtaIdSysText(id).c_str()); in bta_sys_event()
118 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) { in bta_sys_register() argument
119 bta_sys_cb.reg[id] = (tBTA_SYS_REG*)p_reg; in bta_sys_register()
120 bta_sys_cb.is_reg[id] = true; in bta_sys_register()
134 void bta_sys_deregister(uint8_t id) { bta_sys_cb.is_reg[id] = false; } in bta_sys_deregister() argument
147 bool bta_sys_is_register(uint8_t id) { return bta_sys_cb.is_reg[id]; } in bta_sys_is_register() argument
Dbta_sys.h162 typedef void(tBTA_SYS_CONN_CBACK)(tBTA_SYS_CONN_STATUS status, uint8_t id,
166 typedef void(tBTA_SYS_SSR_CFG_CBACK)(uint8_t id, uint8_t app_id,
197 #define BTA_SYS_EVT_START(id) ((id) << 8) argument
206 extern void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg);
207 extern void bta_sys_deregister(uint8_t id);
208 extern bool bta_sys_is_register(uint8_t id);
220 extern void bta_sys_conn_open(uint8_t id, uint8_t app_id,
222 extern void bta_sys_conn_close(uint8_t id, uint8_t app_id,
224 extern void bta_sys_app_open(uint8_t id, uint8_t app_id,
226 extern void bta_sys_app_close(uint8_t id, uint8_t app_id,
[all …]
/system/core/libutils/
DRefBase.cpp209 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
223 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl()
238 void addStrongRef(const void* id) { in addStrongRef() argument
241 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed)); in addStrongRef()
244 void removeStrongRef(const void* id) { in removeStrongRef() argument
248 removeRef(&mStrongRefs, id); in removeStrongRef()
250 addRef(&mStrongRefs, id, -mStrong.load(std::memory_order_relaxed)); in removeStrongRef()
261 void addWeakRef(const void* id) { in addWeakRef() argument
262 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed)); in addWeakRef()
265 void removeWeakRef(const void* id) { in removeWeakRef() argument
[all …]
/system/bt/common/
Dmetric_id_allocator.cc116 int id = 0; in AllocateId() local
118 if (paired_device_cache_.Get(mac_address, &id)) { in AllocateId()
119 return id; in AllocateId()
121 if (temporary_device_cache_.Get(mac_address, &id)) { in AllocateId()
122 return id; in AllocateId()
133 id = next_id_++; in AllocateId()
134 id_set_.insert(id); in AllocateId()
135 auto evicted = temporary_device_cache_.Put(mac_address, id); in AllocateId()
143 return id; in AllocateId()
149 int id = 0; in SaveDevice() local
[all …]
/system/hwservicemanager/
DTokenManager.cpp65 uint64_t id = getTokenId(interface.token); in createToken() local
67 if (id != interface.id) { in createToken()
73 if (id == TOKEN_ID_NONE) { in createToken()
78 mMap[id] = interface; in createToken()
131 uint64_t id = ++mTokenIndex; in generateToken() local
138 (uint8_t*) &id, sizeof(id), in generateToken()
148 const hidl_vec<uint8_t> &token = makeToken(id, hmac.data(), hmacSize); in generateToken()
150 return { interface, id, token }; in generateToken()
168 uint64_t id = 0; in getTokenId() local
170 if (token.size() < sizeof(id)) { in getTokenId()
[all …]
/system/bt/btif/src/
Dbtif_sock_rfc.cc70 uint32_t id; // Non-zero indicates a valid (in-use) slot. member
103 static void jv_dm_cback(tBTA_JV_EVT event, tBTA_JV* p_data, uint32_t id);
137 if (rfc_slots[i].id) cleanup_rfc_slot(&rfc_slots[i]); in btsock_rfc_cleanup()
149 static rfc_slot_t* find_rfc_slot_by_id(uint32_t id) { in find_rfc_slot_by_id() argument
150 CHECK(id != 0); in find_rfc_slot_by_id()
153 if (rfc_slots[i].id == id) return &rfc_slots[i]; in find_rfc_slot_by_id()
155 LOG_ERROR("%s unable to find RFCOMM slot id: %u", __func__, id); in find_rfc_slot_by_id()
163 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && in find_rfc_slot_by_pending_sdp()
164 rfc_slots[i].id < min_id) { in find_rfc_slot_by_pending_sdp()
165 min_id = rfc_slots[i].id; in find_rfc_slot_by_pending_sdp()
[all …]
Dbtif_sock_l2cap.cc48 uint32_t id; // just a tag to find this struct member
163 sock->id); in packet_put_tail_l()
187 static l2cap_socket* btsock_l2cap_find_by_id_l(uint32_t id) { in btsock_l2cap_find_by_id_l() argument
190 while (sock && sock->id != id) sock = sock->next; in btsock_l2cap_find_by_id_l()
206 sock->addr, sock->id, sock->is_le_coc ? BTSOCK_L2CAP_LE : BTSOCK_L2CAP, in btsock_l2cap_free_l()
225 sock->id); in btsock_l2cap_free_l()
238 LOG_INFO("Stopped L2CAP LE COC server socket_id:%u channel:%u", sock->id, in btsock_l2cap_free_l()
240 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l()
249 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l()
297 sock->id = last_sock_id + 1; in btsock_l2cap_alloc_l()
[all …]
/system/logging/logd/
DChattyLogBuffer.cpp180 log_id_t id = element.log_id(); in Erase() local
186 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element.GetTag() : element.uid(); in Erase()
187 LogBufferIteratorMap::iterator found = mLastWorst[id].find(key); in Erase()
188 if ((found != mLastWorst[id].end()) && (it == found->second)) { in Erase()
189 mLastWorst[id].erase(found); in Erase()
197 LogBufferPidIteratorMap::iterator found = mLastWorstPidOfSystem[id].find(element.pid()); in Erase()
198 if (found != mLastWorstPidOfSystem[id].end() && it == found->second) { in Erase()
199 mLastWorstPidOfSystem[id].erase(found); in Erase()
205 int key = (id == LOG_ID_EVENTS || id == LOG_ID_SECURITY) ? element->GetTag() : element->uid(); in Erase()
332 bool ChattyLogBuffer::Prune(log_id_t id, unsigned long pruneRows, uid_t caller_uid) { in Prune() argument
[all …]
/system/update_engine/cros/
Dboot_control_chromeos_unittest.cc73 string id, package; in TEST_F() local
75 EXPECT_TRUE(bootctl_.ParseDlcPartitionName("dlc/id/package", &id, &package)); in TEST_F()
76 EXPECT_EQ(id, "id"); in TEST_F()
80 bootctl_.ParseDlcPartitionName("dlc-foo/id/package", &id, &package)); in TEST_F()
82 bootctl_.ParseDlcPartitionName("dlc-foo/id/package/", &id, &package)); in TEST_F()
83 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc/id", &id, &package)); in TEST_F()
84 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc/id/", &id, &package)); in TEST_F()
85 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc//package", &id, &package)); in TEST_F()
86 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("dlc", &id, &package)); in TEST_F()
87 EXPECT_FALSE(bootctl_.ParseDlcPartitionName("foo", &id, &package)); in TEST_F()
/system/security/keystore/tests/
Dconfirmationui_rate_limiting_test.cpp106 uid_t id = rand(); in TEST() local
107 if (id == 20) continue; in TEST()
108 ASSERT_TRUE(rateLimiting.tryPrompt(id)); in TEST()
124 uid_t id = rand(); in TEST() local
125 if (id == 20) continue; in TEST()
126 ASSERT_TRUE(rateLimiting.tryPrompt(id)); in TEST()
142 uid_t id = rand(); in TEST() local
143 if (id == 20) continue; in TEST()
144 ASSERT_TRUE(rateLimiting.tryPrompt(id)); in TEST()
161 uid_t id = rand(); in TEST() local
[all …]
/system/bt/service/common/android/bluetooth/
DIBluetoothAvrcpControl.aidl23 void Unregister(int id); in Unregister() argument
26 boolean Enable(int id); in Enable() argument
27 boolean Disable(int id); in Disable() argument
29 boolean SendPassThroughCommand(int id, String device_address, in SendPassThroughCommand() argument
32 boolean SetAbsVolumeResponse(int id, String device_address, int abs_vol, in SetAbsVolumeResponse() argument
35 boolean RegisterForAbsVolumeCallbackResponse(int id, String device_address, in RegisterForAbsVolumeCallbackResponse() argument
/system/bt/stack/test/common/
Dmock_bta_sys_conn.cc39 void bta_sys_app_close(uint8_t id, uint8_t app_id, in bta_sys_app_close() argument
43 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_app_open() argument
46 void bta_sys_busy(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_busy() argument
52 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument
56 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument
60 void bta_sys_idle(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_idle() argument
79 void bta_sys_sco_close(uint8_t id, uint8_t app_id, in bta_sys_sco_close() argument
83 void bta_sys_sco_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_sco_open() argument
89 void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, in bta_sys_sco_unuse() argument
93 void bta_sys_sco_use(UNUSED_ATTR uint8_t id, uint8_t app_id, in bta_sys_sco_use() argument
/system/core/libkeyutils/
Dkeyutils.cpp42 key_serial_t keyctl_get_keyring_ID(key_serial_t id, int create) { in keyctl_get_keyring_ID() argument
43 return syscall(__NR_keyctl, KEYCTL_GET_KEYRING_ID, id, create); in keyctl_get_keyring_ID()
46 long keyctl_revoke(key_serial_t id) { in keyctl_revoke() argument
47 return syscall(__NR_keyctl, KEYCTL_REVOKE, id); in keyctl_revoke()
55 long keyctl_setperm(key_serial_t id, int permissions) { in keyctl_setperm() argument
56 return syscall(__NR_keyctl, KEYCTL_SETPERM, id, permissions); in keyctl_setperm()
67 long keyctl_get_security(key_serial_t id, char* buffer, size_t buflen) { in keyctl_get_security() argument
68 return syscall(__NR_keyctl, KEYCTL_GET_SECURITY, id, buffer, buflen); in keyctl_get_security()
/system/iorap/src/prefetcher/
Dread_ahead.cc101 DCHECK_EQ(session->SessionId(), task_id.id); in SessionId()
105 return task_id.id; in SessionId()
143 printer.printFormatLine(" Task ID: %zu", data.task_id.id); in Dump()
201 void ReadAhead::FinishTask(const TaskId& id) { in FinishTask() argument
202 auto it = impl_->read_ahead_file_map_.find(id.id); in FinishTask()
204 LOG(DEBUG) << "Could not find any TaskData for " << id; in FinishTask()
226 void ReadAhead::BeginTaskForSockets(const TaskId& id, int32_t trace_cookie) { in BeginTaskForSockets() argument
227 LOG(VERBOSE) << "BeginTaskForSockets: " << id; in BeginTaskForSockets()
234 TEMP_FAILURE_RETRY(open(id.path.c_str(), /*flags*/O_RDONLY)); in BeginTaskForSockets()
239 PLOG(ERROR) << "ReadAhead failed to open trace file: " << id.path; in BeginTaskForSockets()
[all …]
/system/bt/test/mock/
Dmock_bta_sys_conn.cc42 void bta_sys_app_close(uint8_t id, uint8_t app_id, in bta_sys_app_close() argument
46 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_app_open() argument
49 void bta_sys_busy(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_busy() argument
52 void bta_sys_chg_ssr_config(uint8_t id, uint8_t app_id, uint16_t max_latency, in bta_sys_chg_ssr_config() argument
59 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument
63 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument
67 void bta_sys_idle(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_idle() argument
86 void bta_sys_sco_close(uint8_t id, uint8_t app_id, in bta_sys_sco_close() argument
90 void bta_sys_sco_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_sco_open() argument
96 void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, in bta_sys_sco_unuse() argument
[all …]
/system/bt/gd/rust/shim/src/
Dcontroller.rs19 ($($id:ident),*) => {
22 pub fn [<controller_supports_ $id>](c: &Controller) -> bool {
23 c.features.$id
63 ($($id:ident),*) => {
66 pub fn [<controller_supports_ $id>](c: &Controller) -> bool {
67 c.le_features.$id
93 ($($id:ident => $opcode:path),*) => {
96 pub fn [<controller_supports_ $id>](c: &Controller) -> bool {
112 ($($id:ident : $type:ty),*) => {
115 pub fn [<controller_get_ $id>](c: &Controller) -> $type {
[all …]
/system/extras/tests/kernel.config/
Dsysvipc_test.cpp35 int msgctl(int id, int cmd, msqid_ds* buf) { in msgctl() argument
42 return syscall(SYS_msgctl, id, cmd, buf); in msgctl()
44 return syscall(SYS_ipc, MSGCTL, id, cmd, 0, buf, 0); in msgctl()
48 int semctl(int id, int num, int cmd, semid_ds* buf) { in semctl() argument
55 return syscall(SYS_semctl, id, num, cmd, buf); in semctl()
57 return syscall(SYS_ipc, SEMCTL, id, num, cmd, buf, 0); in semctl()
61 int shmctl(int id, int cmd, shmid_ds* buf) { in shmctl() argument
68 return syscall(SYS_shmctl, id, cmd, buf); in shmctl()
70 return syscall(SYS_ipc, SHMCTL, id, cmd, 0, buf, 0); in shmctl()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Disochronous_connection_handler.cc33 if (groups_.count(group_parameters.id) != 0) { in SetCigParameters()
34 if (groups_.at(group_parameters.id).HasStreams()) { in SetCigParameters()
36 1, ErrorCode::COMMAND_DISALLOWED, group_parameters.id, {}); in SetCigParameters()
38 groups_.erase(group_parameters.id); in SetCigParameters()
47 streams[i].group_id = group_parameters.id; in SetCigParameters()
49 cis_to_group_.emplace(handles[i], group_parameters.id); in SetCigParameters()
53 std::forward_as_tuple(group_parameters.id), in SetCigParameters()
57 1, ErrorCode::SUCCESS, group_parameters.id, handles); in SetCigParameters()
93 uint8_t id) const { in GetGroupParameters()
94 return groups_.at(id).GetParameters(); in GetGroupParameters()
/system/bt/gd/hci/
Dle_advertising_manager.cc180 AdvertiserId id = 0; in allocate_advertiser() local
183 while (id < num_instances_ && advertising_sets_.count(id) != 0) { in allocate_advertiser()
184 id++; in allocate_advertiser()
187 if (id == num_instances_) { in allocate_advertiser()
190 return id; in allocate_advertiser()
218 AdvertiserId id, in create_advertiser()
223 advertising_sets_[id].scan_callback = scan_callback; in create_advertiser()
224 advertising_sets_[id].set_terminated_callback = set_terminated_callback; in create_advertiser()
225 advertising_sets_[id].handler = handler; in create_advertiser()
226 advertising_sets_[id].current_address = AddressWithType{}; in create_advertiser()
[all …]
/system/nfc/src/nfa/include/
Dnfa_sys.h91 #define NFA_SYS_EVT_START(id) ((id) << 8) argument
102 extern void nfa_sys_register(uint8_t id, const tNFA_SYS_REG* p_reg);
103 extern void nfa_sys_deregister(uint8_t id);
105 extern bool nfa_sys_is_register(uint8_t id);
116 extern void nfa_sys_cback_notify_enable_complete(uint8_t id);
121 extern void nfa_sys_cback_notify_nfcc_power_mode_proc_complete(uint8_t id);
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dphy_layer_factory.cc43 void PhyLayerFactory::UnregisterPhyLayer(uint32_t id) { in UnregisterPhyLayer() argument
45 if (phy->GetId() == id) { in UnregisterPhyLayer()
55 auto id = (*phy_layers_.begin())->GetId(); in UnregisterAllPhyLayers() local
56 UnregisterPhyLayer(id); in UnregisterAllPhyLayers()
63 uint32_t id) { in Send() argument
75 Send(link_layer_packet_view, id); in Send()
79 uint32_t id) { in Send() argument
81 if (id != phy->GetId()) { in Send()
114 Phy::Type phy_type, uint32_t id, in PhyLayerImpl() argument
118 : PhyLayer(phy_type, id, device_receive, device_id), factory_(factory) {} in PhyLayerImpl()
[all …]
/system/bt/gd/common/
Dmetric_id_manager.cc140 int id = next_id_++; in AllocateId() local
141 id_set_.insert(id); in AllocateId()
142 auto evicted = temporary_device_cache_.insert_or_assign(mac_address, id); in AllocateId()
150 return id; in AllocateId()
169 int id = opt->second; in SaveDevice() local
170 auto evicted = paired_device_cache_.insert_or_assign(mac_address, id); in SaveDevice()
174 if (!save_id_callback_(mac_address, id)) { in SaveDevice()
192 bool MetricIdManager::IsValidId(const int id) { in IsValidId() argument
193 return id >= kMinId && id <= kMaxId; in IsValidId()
197 const int id) { in ForgetDevicePostprocess() argument
[all …]

12345678910>>...22