Home
last modified time | relevance | path

Searched refs:con (Results 1 - 12 of 12) sorted by relevance

/base/hiviewdfx/hiview/plugins/performance/executor/
H A DThrExecutor.cpp36 ThrTaskContainer* con = it->second; in ~ThrExecutor() local
37 if (con != nullptr) { in ~ThrExecutor()
38 con->StopLoop(); in ~ThrExecutor()
79 ThrTaskContainer* con = containers[MAIN_THR]; in ExecuteTimeoutInMainThr() local
80 if (con != nullptr) { in ExecuteTimeoutInMainThr()
82 con->PostTask(evtTask); in ExecuteTimeoutInMainThr()
117 ThrTaskContainer* con = containers[MAIN_THR]; in ExecuteHandleEvtInMainThr() local
118 if (con != nullptr) { in ExecuteHandleEvtInMainThr()
120 con->PostTask(evtTask); in ExecuteHandleEvtInMainThr()
156 ThrTaskContainer* con in ExecuteMonitorInMainThr() local
[all...]
/base/security/selinux_adapter/test/unittest/hap_restorecon/
H A Dunit_test.cpp643 char *con = nullptr; in HWTEST_F() local
644 ASSERT_EQ(0, getpidcon(pid, &con)); in HWTEST_F()
645 EXPECT_STREQ(con, TEST_HAP_DOMAIN.c_str()); in HWTEST_F()
646 freecon(con); in HWTEST_F()
676 context_t con = context_new(oldTypeContext); in HWTEST_F() local
678 EXPECT_EQ(SELINUX_SUCC, test.HapContextsLookup(true, SYSTEM_CORE_APL, EMPTY_STRING, con, 0)); in HWTEST_F()
679 EXPECT_STREQ(context_str(con), TEST_HAP_DOMAIN.c_str()); in HWTEST_F()
681 EXPECT_EQ(SELINUX_SUCC, test.HapContextsLookup(true, NORMAL_APL, EMPTY_STRING, con, 0)); in HWTEST_F()
682 EXPECT_STREQ(context_str(con), TEST_NORMAL_DOMAIN.c_str()); in HWTEST_F()
685 true, NORMAL_APL, TEST_HAP_BUNDLE_NAME, con, SELINUX_HAP_RESTORECON_PREINSTALLED_AP in HWTEST_F()
709 context_t con = context_new(oldTypeContext); HWTEST_F() local
[all...]
/base/telephony/cellular_data/test/
H A Dzero_branch_test.cpp1009 DataConnectionManager con { 0 }; in HWTEST_F()
1010 con.Init(); in HWTEST_F()
1011 con.connectionMonitor_ = nullptr; in HWTEST_F()
1012 con.ccmDefaultState_ = nullptr; in HWTEST_F()
1013 con.stateMachineEventHandler_ = nullptr; in HWTEST_F()
1015 con.AddConnectionStateMachine(stateMachine); in HWTEST_F()
1016 con.RemoveConnectionStateMachine(stateMachine); in HWTEST_F()
1017 con.AddActiveConnectionByCid(stateMachine); in HWTEST_F()
1018 con.GetActiveConnectionByCid(1); in HWTEST_F()
1019 con in HWTEST_F()
[all...]
/base/security/selinux_adapter/framework/policycoreutils/src/
H A Dhap_restorecon.cpp432 context_t con = context_new(secontext); in HapLabelLookup() local
433 if (con == nullptr) { in HapLabelLookup()
438 int res = HapContextsLookup(false, apl, packageName, con, hapFlags); in HapLabelLookup()
442 context_free(con); in HapLabelLookup()
445 secontext = context_str(con); in HapLabelLookup()
449 context_free(con); in HapLabelLookup()
456 context_free(con); in HapLabelLookup()
464 context_free(con); in HapLabelLookup()
470 context_free(con); in HapLabelLookup()
473 context_free(con); in HapLabelLookup()
493 context_t con = nullptr; HapDomainSetcontext() local
537 HapContextsLookup(bool isDomain, const std::string &apl, const std::string &packageName, context_t con, unsigned int hapFlags) HapContextsLookup() argument
579 TypeSet(const std::string &type, context_t con) TypeSet() argument
[all...]
H A Dservice_checker.cpp231 char *con = nullptr; in GetThisContext() local
232 int rc = getcon(&con); in GetThisContext()
237 context = std::string(con); in GetThisContext()
238 freecon(con); in GetThisContext()
/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dhap_restorecon.h74 context_t con, unsigned int hapFlags);
75 int TypeSet(const std::string &type, context_t con);
/base/security/selinux_adapter/framework/tools/service_check/
H A Dtest.cpp110 char *con = nullptr; in GetSidForCurrentProcess() local
111 if (getcon(&con) < 0) { in GetSidForCurrentProcess()
114 sid = con; in GetSidForCurrentProcess()
115 freecon(con); in GetSidForCurrentProcess()
/base/security/selinux_adapter/test/unittest/service_checker/
H A Dunit_test.cpp47 char *con = nullptr; in GetSidForCurrentProcess() local
48 if (getcon(&con) < 0) { in GetSidForCurrentProcess()
51 sid = con; in GetSidForCurrentProcess()
52 freecon(con); in GetSidForCurrentProcess()
/base/telephony/cellular_call/services/control/include/
H A Dcontrol_base.h259 bool SetConnectionData(T1 &&t1, const int32_t &key, const T2 &con) in SetConnectionData() argument
261 if (!t1.insert(std::make_pair(key, con)).second) { in SetConnectionData()
/base/telephony/cellular_call/services/control/src/
H A Dsatellite_control.cpp138 auto con = FindConnectionByState<SatelliteConnectionMap &, CellularCallConnectionSatellite *>( in Answer() local
140 if (con != nullptr) { in Answer()
142 con->HangUpRequest(callInfo.slotId); in Answer()
144 TELEPHONY_LOGE("Answer return, error type: con is null, there are no active calls"); in Answer()
H A Dcs_control.cpp250 auto con = FindConnectionByState<CsConnectionMap &, CellularCallConnectionCS *>( in Answer() local
252 if (con != nullptr) { in Answer()
259 con->SwitchCallRequest(callInfo.slotId); in Answer()
261 TELEPHONY_LOGE("Answer return, error type: con is null, there are no active calls"); in Answer()
H A Dims_control.cpp185 auto con = FindConnectionByState<ImsConnectionMap &, CellularCallConnectionIMS *>( in Answer() local
187 if (con != nullptr && !con->IsPendingHold() && in Answer()
190 return con->SwitchCallRequest(callInfo.slotId); in Answer()

Completed in 12 milliseconds