/system/nfc/src/nfa/sys/ |
D | nfa_sys_main.cc | 74 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/ |
D | countryzones.txt | 104 # 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/ |
D | bta_sys_conn.cc | 123 if ((bta_sys_cb.colli_reg.id[index] == bta_id) || in bta_sys_collision_register() 124 (bta_sys_cb.colli_reg.id[index] == 0)) { in bta_sys_collision_register() 125 bta_sys_cb.colli_reg.id[index] = bta_id; in bta_sys_collision_register() 146 if ((bta_sys_cb.colli_reg.id[index] != 0) && in bta_sys_notify_collision() 192 void bta_sys_conn_open(uint8_t id, uint8_t app_id, in bta_sys_conn_open() argument 195 bta_sys_cb.prm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open() 199 bta_sys_cb.ppm_cb(BTA_SYS_CONN_OPEN, id, app_id, peer_addr); in bta_sys_conn_open() 214 void bta_sys_conn_close(uint8_t id, uint8_t app_id, in bta_sys_conn_close() argument 217 bta_sys_cb.prm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close() 221 bta_sys_cb.ppm_cb(BTA_SYS_CONN_CLOSE, id, app_id, peer_addr); in bta_sys_conn_close() [all …]
|
D | bta_sys.h | 140 typedef void(tBTA_SYS_CONN_CBACK)(tBTA_SYS_CONN_STATUS status, uint8_t id, 144 typedef void(tBTA_SYS_SSR_CFG_CBACK)(uint8_t id, uint8_t app_id, 164 typedef void (*tBTA_SYS_REGISTER)(uint8_t id, const tBTA_SYS_REG* p_reg); 178 #define BTA_SYS_EVT_START(id) ((id) << 8) argument 220 extern void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg); 221 extern void bta_sys_deregister(uint8_t id); 222 extern bool bta_sys_is_register(uint8_t id); 240 extern void bta_sys_conn_open(uint8_t id, uint8_t app_id, 242 extern void bta_sys_conn_close(uint8_t id, uint8_t app_id, 244 extern void bta_sys_app_open(uint8_t id, uint8_t app_id, [all …]
|
/system/bt/common/ |
D | metric_id_allocator.cc | 116 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/core/libutils/ |
D | RefBase.cpp | 198 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl() 212 ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); in ~weakref_impl() 225 void addStrongRef(const void* id) { in addStrongRef() argument 228 addRef(&mStrongRefs, id, mStrong.load(std::memory_order_relaxed)); in addStrongRef() 231 void removeStrongRef(const void* id) { in removeStrongRef() argument 235 removeRef(&mStrongRefs, id); in removeStrongRef() 237 addRef(&mStrongRefs, id, -mStrong.load(std::memory_order_relaxed)); in removeStrongRef() 248 void addWeakRef(const void* id) { in addWeakRef() argument 249 addRef(&mWeakRefs, id, mWeak.load(std::memory_order_relaxed)); in addWeakRef() 252 void removeWeakRef(const void* id) { in removeWeakRef() argument [all …]
|
/system/hwservicemanager/ |
D | TokenManager.cpp | 65 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/core/adb/ |
D | shell_service_protocol_test.cpp | 90 bool PacketEquals(const ShellProtocol* protocol, ShellProtocol::Id id, in PacketEquals() argument 93 return (protocol->id() == id && in PacketEquals() 102 ShellProtocol::Id id = ShellProtocol::kIdStdout; in TEST_F() local 106 ASSERT_TRUE(write_protocol_->Write(id, sizeof(data))); in TEST_F() 109 ASSERT_TRUE(PacketEquals(read_protocol_, id, data, sizeof(data))); in TEST_F() 114 ShellProtocol::Id id = ShellProtocol::kIdStdin; in TEST_F() local 117 ASSERT_TRUE(write_protocol_->Write(id, 10)); in TEST_F() 121 ASSERT_TRUE(PacketEquals(read_protocol_, id, "1234", 4)); in TEST_F() 123 ASSERT_TRUE(PacketEquals(read_protocol_, id, "5678", 4)); in TEST_F() 125 ASSERT_TRUE(PacketEquals(read_protocol_, id, "90", 2)); in TEST_F() [all …]
|
D | sockets.cpp | 68 if (s->id != local_id) { in find_local_socket() 71 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket() 83 s->id = local_socket_next_id++; in install_local_socket() 163 D("LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%zu", s->id, s->fd, r, in local_socket_flush_outgoing() 179 D("LS(%d): fd=%d post avail loop. r=%d is_eof=%d forced_eof=%d", s->id, s->fd, r, is_eof, in local_socket_flush_outgoing() 187 unsigned saved_id = s->id; in local_socket_flush_outgoing() 222 D("LS(%d): enqueue %zu", s->id, data.size()); in local_socket_enqueue() 300 D("LS(%d): destroying fde.fd=%d", s->id, s->fd); in local_socket_destroy() 314 D("entered local_socket_close. LS(%d) fd=%d", s->id, s->fd); in local_socket_close() 317 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close() [all …]
|
/system/core/logd/ |
D | ChattyLogBuffer.cpp | 180 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 …]
|
D | CommandListener.cpp | 79 int id = atoi(argv[1]); in runCommand() local 80 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand() 85 cli->sendMsg(buf()->Clear((log_id_t)id, uid) ? "success" : "busy"); in runCommand() 97 int id = atoi(argv[1]); in runCommand() local 98 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand() 103 unsigned long size = buf()->GetSize((log_id_t)id); in runCommand() 123 int id = atoi(argv[1]); in runCommand() local 124 if ((id < LOG_ID_MIN) || (LOG_ID_MAX <= id)) { in runCommand() 130 if (buf()->SetSize((log_id_t)id, size)) { in runCommand() 147 int id = atoi(argv[1]); in runCommand() local [all …]
|
D | SimpleLogBuffer.cpp | 215 bool SimpleLogBuffer::Clear(log_id_t id, uid_t uid) { in Clear() argument 220 if (Prune(id, ULONG_MAX, uid)) { in Clear() 232 busy = !Prune(id, 1, uid); in Clear() 238 if (reader_thread->IsWatching(id)) { in Clear() 246 return Prune(id, ULONG_MAX, uid); in Clear() 250 unsigned long SimpleLogBuffer::GetSize(log_id_t id) { in GetSize() argument 252 size_t retval = max_size_[id]; in GetSize() 257 int SimpleLogBuffer::SetSize(log_id_t id, unsigned long size) { in SetSize() argument 264 max_size_[id] = size; in SetSize() 268 void SimpleLogBuffer::MaybePrune(log_id_t id) { in MaybePrune() argument [all …]
|
/system/bt/btif/src/ |
D | btif_sock_rfc.cc | 83 uint32_t id; // Non-zero indicates a valid (in-use) slot. member 116 static void jv_dm_cback(tBTA_JV_EVT event, tBTA_JV* p_data, uint32_t id); 150 if (rfc_slots[i].id) cleanup_rfc_slot(&rfc_slots[i]); in btsock_rfc_cleanup() 162 static rfc_slot_t* find_rfc_slot_by_id(uint32_t id) { in find_rfc_slot_by_id() argument 163 CHECK(id != 0); in find_rfc_slot_by_id() 166 if (rfc_slots[i].id == id) return &rfc_slots[i]; in find_rfc_slot_by_id() 168 LOG_ERROR("%s unable to find RFCOMM slot id: %u", __func__, id); in find_rfc_slot_by_id() 176 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && in find_rfc_slot_by_pending_sdp() 177 rfc_slots[i].id < min_id) { in find_rfc_slot_by_pending_sdp() 178 min_id = rfc_slots[i].id; in find_rfc_slot_by_pending_sdp() [all …]
|
D | btif_sock_l2cap.cc | 69 uint32_t id; // just a tag to find this struct member 208 static l2cap_socket* btsock_l2cap_find_by_id_l(uint32_t id) { in btsock_l2cap_find_by_id_l() argument 211 while (sock && sock->id != id) sock = sock->next; in btsock_l2cap_find_by_id_l() 227 sock->addr, sock->id, sock->is_le_coc ? BTSOCK_L2CAP_LE : BTSOCK_L2CAP, in btsock_l2cap_free_l() 245 LOG(ERROR) << "SOCK_LIST: free(id = " << sock->id << ") - NO app_fd!"; in btsock_l2cap_free_l() 261 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l() 281 BTA_JvL2capStopServer(sock->channel, sock->id); in btsock_l2cap_free_l() 286 DVLOG(2) << __func__ << ": free id:" << sock->id; in btsock_l2cap_free_l() 331 sock->id = last_sock_id + 1; in btsock_l2cap_alloc_l() 340 while (t && t->id != sock->id) { in btsock_l2cap_alloc_l() [all …]
|
/system/bt/gd/hci/ |
D | le_advertising_manager.cc | 144 AdvertiserId id = 0; in allocate_advertiser() local 147 while (id < num_instances_ && advertising_sets_.count(id) != 0) { in allocate_advertiser() 148 id++; in allocate_advertiser() 151 if (id == num_instances_) { in allocate_advertiser() 154 return id; in allocate_advertiser() 157 void remove_advertiser(AdvertiserId id) { in remove_advertiser() 158 stop_advertising(id); in remove_advertiser() 160 if (advertising_sets_.count(id) == 0) { in remove_advertiser() 163 advertising_sets_.erase(id); in remove_advertiser() 171 void create_advertiser(AdvertiserId id, const AdvertisingConfig& config, in create_advertiser() [all …]
|
/system/update_engine/ |
D | boot_control_chromeos_unittest.cc | 73 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/ |
D | confirmationui_rate_limiting_test.cpp | 106 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/ |
D | IBluetoothAvrcpControl.aidl | 23 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/core/libkeyutils/ |
D | keyutils.cpp | 42 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/extras/tests/kernel.config/ |
D | sysvipc_test.cpp | 35 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/nfc/src/nfa/include/ |
D | nfa_sys.h | 91 #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/sepolicy/tools/sepolicy-analyze/ |
D | neverallow.c | 27 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() 187 char *id, *start; in read_classperms() local 241 id = calloc(1, p - start + 1); in read_classperms() [all …]
|
/system/bt/profile/sdp/ |
D | sdp_logging_helper.h | 37 inline std::string PduIdText(const PduId& id) { in PduIdText() argument 38 switch (id) { in PduIdText() 48 return "Unknown PduId: " + loghex((uint8_t)id); in PduIdText() 52 inline std::ostream& operator<<(std::ostream& os, const PduId& id) { 53 return os << PduIdText(id); 56 inline std::string AttributeIdText(const AttributeId& id) { in AttributeIdText() argument 57 switch (id) { in AttributeIdText() 75 return "Unknown AttributeId: " + loghex((uint16_t)id); in AttributeIdText() 79 inline std::ostream& operator<<(std::ostream& os, const AttributeId& id) { 80 return os << AttributeIdText(id);
|
/system/core/adb/daemon/ |
D | usb.cpp | 92 uint64_t id : 63; member 97 TransferId(TransferDirection direction, uint64_t id) : direction(direction), id(id) {} in TransferId() 107 static TransferId read(uint64_t id) { return TransferId(TransferDirection::READ, id); } in read() 108 static TransferId write(uint64_t id) { return TransferId(TransferDirection::WRITE, id); } in write() 123 TransferId id() const { return TransferId::from_value(control.aio_data); } in id() function 488 void PrepareReadBlock(IoReadBlock* block, uint64_t id) { in PrepareReadBlock() 495 block->control.aio_data = static_cast<uint64_t>(TransferId::read(id)); in PrepareReadBlock() 500 IoReadBlock CreateReadBlock(uint64_t id) { in CreateReadBlock() 502 PrepareReadBlock(&block, id); in CreateReadBlock() 525 TransferId id = TransferId::from_value(event.data); in ReadEvents() local [all …]
|
/system/media/private/camera/include/ |
D | camera_metadata_hidden.h | 59 metadata_vendor_id_t id); 73 metadata_vendor_id_t id); 80 metadata_vendor_id_t id); 87 metadata_vendor_id_t id); 94 metadata_vendor_id_t id);
|