/frameworks/base/cmds/statsd/src/state/ |
D | StateManager.cpp | 28 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()
|
D | StateManager.h | 38 class StateManager : public virtual RefBase { 40 StateManager(); 42 ~StateManager(){}; in ~StateManager() 45 static StateManager& getInstance();
|
/frameworks/base/cmds/statsd/tests/state/ |
D | StateTracker_test.cpp | 60 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/ |
D | StateKeeperRule.java | 34 private final StateManager<T> mStateManager; 41 public StateKeeperRule(StateManager<T> stateManager) { in StateKeeperRule()
|
D | StateManager.java | 23 public interface StateManager<T> { interface
|
D | SettingsStateManager.java | 28 public class SettingsStateManager implements StateManager<String> {
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
D | CaptureSequencer.h | 142 typedef CaptureState (CaptureSequencer::*StateManager)(sp<Camera2Client> &client); typedef 143 static const StateManager kStateManagers[];
|
D | CaptureSequencer.cpp | 211 const CaptureSequencer::StateManager
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | CountMetric_e2e_test.cpp | 164 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()
|
D | ValueMetric_pull_e2e_test.cpp | 550 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()
|
D | DurationMetric_e2e_test.cpp | 768 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/ |
D | StatsLogProcessor.cpp | 104 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/ |
D | ValueMetricProducer_test.cpp | 4021 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/ |
D | MetricProducer.cpp | 271 if (!StateManager::getInstance().getStateValue(atomId, queryKey, value)) { in queryStateValue()
|
D | MetricsManager.cpp | 190 StateManager::getInstance().unregisterListener(atomId, it); in ~MetricsManager()
|
D | metrics_manager_util.cpp | 807 StateManager::getInstance().registerListener(atomId, it); in initMetrics()
|
/frameworks/base/cmds/statsd/tests/ |
D | MetricsManager_test.cpp | 784 StateManager::getInstance().clear(); in TEST() 789 EXPECT_EQ(0, StateManager::getInstance().getStateTrackersCount()); in TEST()
|
/frameworks/base/cmds/statsd/ |
D | Android.bp | 95 "src/state/StateManager.cpp",
|