/system/core/libcutils/ |
D | multiuser.cpp | 28 uid_t multiuser_get_uid(userid_t user_id, appid_t app_id) { in multiuser_get_uid() argument 29 return (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET); in multiuser_get_uid() 32 gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_cache_gid() argument 33 if (app_id >= AID_APP_START && app_id <= AID_APP_END) { in multiuser_get_cache_gid() 34 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_CACHE_GID_START); in multiuser_get_cache_gid() 40 gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id) { in multiuser_get_ext_gid() argument 41 if (app_id >= AID_APP_START && app_id <= AID_APP_END) { in multiuser_get_ext_gid() 42 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_EXT_GID_START); in multiuser_get_ext_gid() 48 gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_ext_cache_gid() argument 49 if (app_id >= AID_APP_START && app_id <= AID_APP_END) { in multiuser_get_ext_cache_gid() [all …]
|
/system/bt/bta/sys/ |
D | bta_sys_conn.cc | 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() 227 void bta_sys_app_open(uint8_t id, uint8_t app_id, const RawAddress& peer_addr) { in bta_sys_app_open() argument 229 bta_sys_cb.ppm_cb(BTA_SYS_APP_OPEN, id, app_id, peer_addr); in bta_sys_app_open() 243 void bta_sys_app_close(uint8_t id, uint8_t app_id, in bta_sys_app_close() argument 246 bta_sys_cb.ppm_cb(BTA_SYS_APP_CLOSE, id, app_id, peer_addr); in bta_sys_app_close() [all …]
|
D | bta_sys.h | 163 uint8_t app_id, const RawAddress& peer_addr); 166 typedef void(tBTA_SYS_SSR_CFG_CBACK)(uint8_t id, uint8_t app_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, 228 extern void bta_sys_sco_open(uint8_t id, uint8_t app_id, 230 extern void bta_sys_sco_close(uint8_t id, uint8_t app_id, 232 extern void bta_sys_sco_use(uint8_t id, uint8_t app_id, 234 extern void bta_sys_sco_unuse(uint8_t id, uint8_t app_id, [all …]
|
/system/bt/stack/gatt/ |
D | connection_manager.cc | 94 bool background_connect_add(uint8_t app_id, const RawAddress& address) { in background_connect_add() argument 103 if (it->second.doing_bg_conn.count(app_id)) { in background_connect_add() 104 LOG(INFO) << "App id=" << loghex(app_id) in background_connect_add() 121 bgconn_dev[address].doing_bg_conn.insert(app_id); in background_connect_add() 139 bool background_connect_remove(uint8_t app_id, const RawAddress& address) { in background_connect_remove() argument 144 if (!it->second.doing_bg_conn.erase(app_id)) return false; in background_connect_remove() 155 void on_app_deregistered(uint8_t app_id) { in on_app_deregistered() argument 160 it->second.doing_bg_conn.erase(app_id); in on_app_deregistered() 162 it->second.doing_direct_conn.erase(app_id); in on_app_deregistered() 178 uint8_t app_id = it->second.doing_direct_conn.begin()->first; in remove_all_clients_with_pending_connections() local [all …]
|
D | connection_manager.h | 40 extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address); 41 extern bool background_connect_remove(tAPP_ID app_id, 47 extern void on_app_deregistered(tAPP_ID app_id); 52 extern bool direct_connect_add(tAPP_ID app_id, const RawAddress& address); 53 extern bool direct_connect_remove(tAPP_ID app_id, const RawAddress& address); 59 extern void on_connection_timed_out(uint8_t app_id, const RawAddress& address);
|
/system/bt/stack/test/common/ |
D | mock_bta_sys_conn.cc | 39 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
|
D | mock_gatt_connection_manager.cc | 46 bool connection_manager::direct_connect_add(uint8_t app_id, in direct_connect_add() argument 51 bool connection_manager::direct_connect_remove(uint8_t app_id, in direct_connect_remove() argument
|
/system/bt/test/mock/ |
D | mock_bta_sys_conn.cc | 42 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 …]
|
D | mock_stack_gatt_connection_manager.cc | 48 bool connection_manager::background_connect_add(uint8_t app_id, in background_connect_add() argument 53 bool connection_manager::background_connect_remove(uint8_t app_id, in background_connect_remove() argument 58 bool connection_manager::direct_connect_add(uint8_t app_id, in direct_connect_add() argument 63 bool connection_manager::direct_connect_remove(uint8_t app_id, in direct_connect_remove() argument 78 void connection_manager::on_app_deregistered(uint8_t app_id) { in on_app_deregistered() argument
|
D | mock_btif_co_bta_hh_co.cc | 42 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_cache_load() argument 46 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 52 uint8_t app_id) { in bta_hh_co_data() argument 61 tBTA_HH_ATTR_MASK attr_mask, uint8_t app_id) { in bta_hh_co_open() argument 74 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_reset_rpt_cache() argument 79 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_rpt_info() argument
|
/system/bt/bta/include/ |
D | bta_hh_co.h | 54 uint8_t app_id); 68 uint16_t attr_mask, uint8_t app_id); 80 extern void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id); 125 uint8_t app_id); 144 const RawAddress& remote_bda, uint8_t* p_num_rpt, uint8_t app_id); 158 uint8_t app_id);
|
D | bta_pan_co.h | 76 extern void bta_pan_co_close(uint16_t handle, uint8_t app_id); 91 extern void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id); 106 extern void bta_pan_co_rx_path(uint16_t handle, uint8_t app_id); 122 extern void bta_pan_co_rx_flow(uint16_t handle, uint8_t app_id, bool enable);
|
/system/core/libcutils/include/cutils/ |
D | multiuser.h | 32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id); 34 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id); 35 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id); 36 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id); 37 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
|
/system/core/libcutils/include_outside_system/cutils/ |
D | multiuser.h | 32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id); 34 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id); 35 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id); 36 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id); 37 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
|
/system/bt/bta/pan/ |
D | bta_pan_act.cc | 60 bta_sys_busy(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_busy() 76 bta_sys_idle(BTA_ID_PAN, p_scb->app_id, p_scb->bd_addr); in bta_pan_pm_conn_idle() 116 p_scb->app_id = bta_pan_cb.app_id[0]; in bta_pan_conn_state_cback() 118 p_scb->app_id = bta_pan_cb.app_id[2]; in bta_pan_conn_state_cback() 152 bta_pan_co_rx_flow(handle, p_scb->app_id, true); in bta_pan_data_flow_cb() 155 bta_pan_co_rx_flow(handle, p_scb->app_id, false); in bta_pan_data_flow_cb() 256 static bool bta_pan_has_multiple_connections(uint8_t app_id) { in bta_pan_has_multiple_connections() argument 263 if (p_scb->in_use && app_id == p_scb->app_id) { in bta_pan_has_multiple_connections() 279 if (p_scb->in_use && p_scb->app_id != bta_pan_cb.app_id[0] && in bta_pan_has_multiple_connections() 330 bta_pan_cb.app_id[0] = p_data->api_set_role.user_app_id; in bta_pan_set_role() [all …]
|
/system/security/keystore/tests/ |
D | aaid_truncation_test.cpp | 92 KeyAttestationApplicationId app_id(make_package_info(kDummyPackageName)); in TEST() local 94 auto result = build_attestation_application_id(app_id); in TEST() 101 KeyAttestationApplicationId app_id(make_package_info(kLongPackageName)); in TEST() local 103 auto result = build_attestation_application_id(app_id); in TEST() 117 KeyAttestationApplicationId app_id( in TEST() local 120 auto result = build_attestation_application_id(app_id); in TEST() 140 KeyAttestationApplicationId app_id(std::move(packages)); in TEST() local 141 auto result = build_attestation_application_id(app_id); in TEST()
|
/system/bt/btif/co/ |
D | bta_pan_co.cc | 73 void bta_pan_co_close(uint16_t handle, uint8_t app_id) { in bta_pan_co_close() argument 74 BTIF_TRACE_API("bta_pan_co_close:app_id:%d, handle:%d", app_id, handle); in bta_pan_co_close() 109 void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id) { in bta_pan_co_tx_path() argument 117 BTIF_TRACE_API("%s, handle:%d, app_id:%d", __func__, handle, app_id); in bta_pan_co_tx_path() 164 UNUSED_ATTR uint8_t app_id) { in bta_pan_co_rx_path() argument 182 void bta_pan_co_rx_flow(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, in bta_pan_co_rx_flow() argument
|
D | bta_hh_co.cc | 318 tBTA_HH_ATTR_MASK attr_mask, uint8_t app_id) { in bta_hh_co_open() argument 337 p_dev->attr_mask, p_dev->sub_class, p_dev->app_id); in bta_hh_co_open() 365 p_dev->app_id = app_id; in bta_hh_co_open() 411 void bta_hh_co_close(uint8_t dev_handle, uint8_t app_id) { in bta_hh_co_close() argument 416 app_id); in bta_hh_co_close() 459 uint8_t app_id) { in bta_hh_co_data() argument 465 __func__, dev_handle, sub_class, mode, ctry_code, app_id); in bta_hh_co_data() 638 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_rpt_info() argument 678 UNUSED_ATTR uint8_t app_id) { in bta_hh_le_co_cache_load() argument 692 bta_hh_le_co_reset_rpt_cache(remote_bda, app_id); in bta_hh_le_co_cache_load() [all …]
|
/system/update_engine/cros/ |
D | omaha_response_handler_action_unittest.cc | 195 .app_id = kPayloadAppId, in TEST_F() 204 EXPECT_EQ(in.packages[0].app_id, install_plan.payloads[0].app_id); in TEST_F() 225 .app_id = kPayloadAppId, in TEST_F() 235 EXPECT_EQ(in.packages[0].app_id, install_plan.payloads[0].app_id); in TEST_F() 250 .app_id = kPayloadAppId, in TEST_F() 265 EXPECT_EQ(in.packages[0].app_id, install_plan.payloads[0].app_id); in TEST_F() 280 .app_id = kPayloadAppId, in TEST_F() 293 EXPECT_EQ(in.packages[0].app_id, install_plan.payloads[0].app_id); in TEST_F() 337 .app_id = kPayloadAppId, in TEST_F() 342 .app_id = kPayloadAppId, in TEST_F() [all …]
|
D | omaha_request_params.cc | 275 bool OmahaRequestParams::IsDlcAppId(const std::string& app_id) const { in IsDlcAppId() 276 return dlc_apps_params().find(app_id) != dlc_apps_params().end(); in IsDlcAppId() 279 bool OmahaRequestParams::GetDlcId(const string& app_id, string* dlc_id) const { in GetDlcId() argument 280 auto itr = dlc_apps_params_.find(app_id); in GetDlcId() 287 void OmahaRequestParams::SetDlcNoUpdate(const string& app_id) { in SetDlcNoUpdate() argument 288 auto itr = dlc_apps_params_.find(app_id); in SetDlcNoUpdate()
|
D | omaha_request_params.h | 94 inline void set_app_id(const std::string& app_id) { in set_app_id() argument 95 image_props_.product_id = app_id; in set_app_id() 96 image_props_.canary_product_id = app_id; in set_app_id() 226 virtual bool IsDlcAppId(const std::string& app_id) const; 230 virtual bool GetDlcId(const std::string& app_id, std::string* dlc_id) const; 233 void SetDlcNoUpdate(const std::string& app_id);
|
/system/bt/bta/ag/ |
D | bta_ag_act.cc | 80 open.hdr.app_id = p_scb->app_id; in bta_ag_cback_open() 104 p_scb->app_id = data.api_register.app_id; in bta_ag_register() 115 reg.hdr.app_id = p_scb->app_id; in bta_ag_register() 390 close.hdr.app_id = p_scb->app_id; in bta_ag_rfc_close() 393 bta_sys_conn_close(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close() 427 bta_sys_sco_unuse(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_close() 489 bta_sys_conn_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_open() 623 bta_sys_busy(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() 628 bta_sys_sco_open(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() 630 bta_sys_idle(BTA_ID_AG, p_scb->app_id, p_scb->peer_addr); in bta_ag_rfc_data() [all …]
|
/system/bt/bta/dm/ |
D | bta_dm_pm.cc | 42 uint8_t app_id, const RawAddress& peer_addr); 84 if (p_bta_dm_pm_cfg[0].app_id != 0) { in bta_dm_init_pm() 332 uint8_t app_id, const RawAddress& peer_addr) { in bta_dm_pm_cback() argument 339 BtaIdSysText(id).c_str(), id, app_id); in bta_dm_pm_cback() 342 for (i = 1; i <= p_bta_dm_pm_cfg[0].app_id; i++) { in bta_dm_pm_cback() 344 ((p_bta_dm_pm_cfg[i].app_id == BTA_ALL_APP_ID) || in bta_dm_pm_cback() 345 (p_bta_dm_pm_cfg[i].app_id == app_id))) in bta_dm_pm_cback() 350 if (i > p_bta_dm_pm_cfg[0].app_id) { in bta_dm_pm_cback() 391 (bta_dm_conn_srvcs.conn_srvc[j].app_id == app_id) && in bta_dm_pm_cback() 424 bta_dm_conn_srvcs.conn_srvc[j].app_id = app_id; in bta_dm_pm_cback() [all …]
|
/system/bt/bta/hh/ |
D | bta_hh_act.cc | 208 p_cb->app_id = 0; in bta_hh_sdp_cback() 216 if (p_cb->app_id != 0) { in bta_hh_sdp_cback() 220 sdp_rec->ssr_min_tout, p_cb->app_id); in bta_hh_sdp_cback() 324 if (p_cb->app_id) { in bta_hh_start_sdp() 333 p_cb->dscp_info.ssr_min_tout, p_cb->app_id); in bta_hh_start_sdp() 442 (p_cb->app_id == 0)) { in bta_hh_sdp_cmpl() 454 if (p_cb->app_id == 0 && !p_cb->incoming_conn) { in bta_hh_sdp_cmpl() 530 p_cb->app_id); in bta_hh_open_cmpl_act() 544 bta_sys_conn_open(BTA_ID_HH, p_cb->app_id, p_cb->addr); in bta_hh_open_cmpl_act() 585 if (p_cb->app_id != 0) { in bta_hh_open_act() [all …]
|
/system/bt/bta/av/ |
D | bta_av_main.cc | 100 uint8_t app_id, const RawAddress& peer_addr); 102 uint8_t app_id, const RawAddress& peer_addr); 400 p_data->api_reg.app_id); in bta_av_api_register() 412 registr.app_id = p_data->api_reg.app_id; in bta_av_api_register() 446 p_scb->app_id = registr.app_id; in bta_av_api_register() 570 if (AVDT_CreateStream(p_scb->app_id, &p_scb->seps[codec_index].av_handle, in bta_av_api_register() 574 __func__, p_scb->hndl, p_scb->app_id, codec_index); in bta_av_api_register() 807 uint8_t id, uint8_t app_id, in bta_av_sys_rs_cback() argument 816 peer_addr.ToString().c_str(), id, app_id, bta_av_cb.rs_idx); in bta_av_sys_rs_cback() 828 __func__, peer_addr.ToString().c_str(), id, app_id, p_scb->hndl); in bta_av_sys_rs_cback() [all …]
|