Home
last modified time | relevance | path

Searched refs:StateManager (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/cmds/statsd/src/state/
DStateManager.cpp28 StateManager::StateManager() in StateManager() function in android::os::statsd::StateManager
34 StateManager& StateManager::getInstance() { in getInstance()
35 static StateManager sStateManager; in getInstance()
39 void StateManager::clear() { in clear()
43 void StateManager::onLogEvent(const LogEvent& event) { in onLogEvent()
55 void StateManager::registerListener(const int32_t atomId, wp<StateListener> listener) { in registerListener()
63 void StateManager::unregisterListener(const int32_t atomId, wp<StateListener> listener) { in unregisterListener()
87 bool StateManager::getStateValue(const int32_t atomId, const HashableDimensionKey& key, in getStateValue()
96 void StateManager::updateLogSources(const sp<UidMap>& uidMap) { in updateLogSources()
104 void StateManager::notifyAppChanged(const string& apk, const sp<UidMap>& uidMap) { in notifyAppChanged()
DStateManager.h38 class StateManager : public virtual RefBase {
40 StateManager();
42 ~StateManager(){}; in ~StateManager()
45 static StateManager& getInstance();
/frameworks/base/cmds/statsd/tests/state/
DStateTracker_test.cpp60 int getStateInt(StateManager& mgr, int atomId, const HashableDimensionKey& queryKey) { in getStateInt()
110 StateManager& mgr = StateManager::getInstance(); in TEST()
115 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
121 StateManager mgr; in TEST()
178 StateManager mgr; in TEST()
212 StateManager mgr; in TEST()
250 StateManager mgr; in TEST()
290 StateManager mgr; in TEST()
339 StateManager mgr; in TEST()
364 StateManager mgr; in TEST()
[all …]
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DStateKeeperRule.java34 private final StateManager<T> mStateManager;
41 public StateKeeperRule(StateManager<T> stateManager) { in StateKeeperRule()
DStateManager.java23 public interface StateManager<T> { interface
DSettingsStateManager.java28 public class SettingsStateManager implements StateManager<String> {
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCaptureSequencer.h142 typedef CaptureState (CaptureSequencer::*StateManager)(sp<Camera2Client> &client); typedef
143 static const StateManager kStateManagers[];
DCaptureSequencer.cpp211 const CaptureSequencer::StateManager
/frameworks/base/cmds/statsd/tests/e2e/
DCountMetric_e2e_test.cpp164 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
165 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
305 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
306 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
489 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
490 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(UID_PROCESS_STATE_ATOM_ID)); in TEST()
683 EXPECT_EQ(2, StateManager::getInstance().getStateTrackersCount()); in TEST()
684 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
685 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(UID_PROCESS_STATE_ATOM_ID)); in TEST()
DValueMetric_pull_e2e_test.cpp550 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
551 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
610 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
611 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(UID_PROCESS_STATE_ATOM_ID)); in TEST()
667 EXPECT_EQ(0, StateManager::getInstance().getStateTrackersCount()); in TEST()
DDurationMetric_e2e_test.cpp768 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
769 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
917 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
918 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
1075 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
1076 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
1276 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
1277 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(UID_PROCESS_STATE_ATOM_ID)); in TEST()
/frameworks/base/cmds/statsd/src/
DStatsLogProcessor.cpp104 StateManager::getInstance().updateLogSources(uidMap); in StatsLogProcessor()
428 StateManager::getInstance().onLogEvent(*event); in OnLogEvent()
1057 StateManager::getInstance().notifyAppChanged(apk, mUidMap); in notifyAppUpgrade()
1067 StateManager::getInstance().notifyAppChanged(apk, mUidMap); in notifyAppRemoved()
1076 StateManager::getInstance().updateLogSources(mUidMap); in onUidMapReceived()
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp4021 StateManager::getInstance().clear(); in TEST()
4028 StateManager::getInstance().registerListener(SCREEN_STATE_ATOM_ID, valueProducer); in TEST()
4029 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
4030 EXPECT_EQ(1, StateManager::getInstance().getListenersCount(SCREEN_STATE_ATOM_ID)); in TEST()
4053 StateManager::getInstance().onLogEvent(*screenEvent); in TEST()
4075 StateManager::getInstance().onLogEvent(*screenEvent); in TEST()
4104 StateManager::getInstance().onLogEvent(*screenEvent); in TEST()
4233 StateManager::getInstance().clear(); in TEST()
4239 StateManager::getInstance().registerListener(SCREEN_STATE_ATOM_ID, valueProducer); in TEST()
4240 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DMetricProducer.cpp271 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue()
DMetricsManager.cpp190 StateManager::getInstance().unregisterListener(atomId, it); in ~MetricsManager()
Dmetrics_manager_util.cpp807 StateManager::getInstance().registerListener(atomId, it); in initMetrics()
/frameworks/base/cmds/statsd/tests/
DMetricsManager_test.cpp784 StateManager::getInstance().clear(); in TEST()
789 EXPECT_EQ(0, StateManager::getInstance().getStateTrackersCount()); in TEST()
/frameworks/base/cmds/statsd/
DAndroid.bp95 "src/state/StateManager.cpp",