/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Event.cpp | 21 Event::Event(Increment::IncrementCase type) : mIncrementType(type) {} in Event() function in Event 23 void Event::readyToExecute() { in readyToExecute() 24 changeState(Event::EventState::Waiting); in readyToExecute() 25 waitUntil(Event::EventState::Signaled); in readyToExecute() 26 changeState(Event::EventState::Running); in readyToExecute() 29 void Event::complete() { in complete() 30 waitUntil(Event::EventState::Waiting); in complete() 31 changeState(Event::EventState::Signaled); in complete() 32 waitUntil(Event::EventState::Running); in complete() 35 void Event::waitUntil(Event::EventState state) { in waitUntil() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | IntervalStats.java | 18 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED; 19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED; 20 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED; 21 import static android.app.usage.UsageEvents.Event.CONFIGURATION_CHANGE; 22 import static android.app.usage.UsageEvents.Event.CONTINUE_PREVIOUS_DAY; 23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE; 24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN; 25 import static android.app.usage.UsageEvents.Event.END_OF_DAY; 26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK; 27 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START; [all …]
|
D | UserUsageStatsService.java | 19 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN; 20 import static android.app.usage.UsageEvents.Event.DEVICE_STARTUP; 33 import android.app.usage.UsageEvents.Event; 145 final Event shutdownEvent = in init() 146 new Event(DEVICE_SHUTDOWN, currentDailyStats.lastTimeSaved + 1000); in init() 147 shutdownEvent.mPackage = Event.DEVICE_EVENT_PACKAGE_NAME; in init() 149 final Event startupEvent = new Event(DEVICE_STARTUP, currentTimeMillis); in init() 150 startupEvent.mPackage = Event.DEVICE_EVENT_PACKAGE_NAME; in init() 165 void reportEvent(Event event) { in reportEvent() 180 if (event.mEventType == Event.CONFIGURATION_CHANGE in reportEvent() [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlPullParser.h | 44 enum class Event { enum 68 static bool IsGoodEvent(Event event); 76 Event event() const; 84 Event Next(); 168 Event event; 210 XmlPullParser::Event event) { 212 case XmlPullParser::Event::kBadDocument: 214 case XmlPullParser::Event::kStartDocument: 216 case XmlPullParser::Event::kEndDocument: 218 case XmlPullParser::Event::kStartNamespace: [all …]
|
D | XmlPullParser.cpp | 42 event_queue_.push(EventData{Event::kStartDocument, 0, depth_++}); in XmlPullParser() 49 XmlPullParser::Event XmlPullParser::Next() { in Next() 50 const Event currentEvent = event(); in Next() 51 if (currentEvent == Event::kBadDocument || currentEvent == Event::kEndDocument) { in Next() 63 event_queue_.push(EventData{Event::kBadDocument}); in Next() 72 event_queue_.push(EventData{Event::kBadDocument}); in Next() 77 event_queue_.push(EventData{Event::kEndDocument, 0, 0}); in Next() 81 Event next_event = event(); in Next() 85 if (next_event == Event::kStartNamespace || in Next() 86 next_event == Event::kEndNamespace) { in Next() [all …]
|
D | XmlPullParser_test.cpp | 29 using Event = ::aapt::xml::XmlPullParser::Event; typedef 44 EXPECT_THAT(parser.event(), Eq(XmlPullParser::Event::kStartElement)); in TEST() 49 EXPECT_THAT(parser.event(), Eq(XmlPullParser::Event::kStartElement)); in TEST() 54 EXPECT_THAT(parser.event(), Eq(XmlPullParser::Event::kStartElement)); in TEST() 58 EXPECT_THAT(parser.event(), Eq(XmlPullParser::Event::kStartElement)); in TEST() 62 EXPECT_THAT(parser.event(), Eq(XmlPullParser::Event::kEndDocument)); in TEST()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | GraphRunner.java | 42 private static final Event BEGIN_EVENT = new Event(Event.BEGIN, null); 43 private static final Event FLUSH_EVENT = new Event(Event.FLUSH, null); 44 private static final Event HALT_EVENT = new Event(Event.HALT, null); 45 private static final Event KILL_EVENT = new Event(Event.KILL, null); 46 private static final Event PAUSE_EVENT = new Event(Event.PAUSE, null); 47 private static final Event RELEASE_FRAMES_EVENT = new Event(Event.RELEASE_FRAMES, null); 48 private static final Event RESTART_EVENT = new Event(Event.RESTART, null); 49 private static final Event RESUME_EVENT = new Event(Event.RESUME, null); 50 private static final Event STEP_EVENT = new Event(Event.STEP, null); 51 private static final Event STOP_EVENT = new Event(Event.STOP, null); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 87 import com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.CallState; 88 import com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall; 89 import com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type; 329 case TelephonyCallSession.Event.Type.EVENT_UNKNOWN: in callSessionEventToString() 331 case TelephonyCallSession.Event.Type.SETTINGS_CHANGED: in callSessionEventToString() 333 case TelephonyCallSession.Event.Type.RIL_SERVICE_STATE_CHANGED: in callSessionEventToString() 335 case TelephonyCallSession.Event.Type.IMS_CONNECTION_STATE_CHANGED: in callSessionEventToString() 337 case TelephonyCallSession.Event.Type.IMS_CAPABILITIES_CHANGED: in callSessionEventToString() 339 case TelephonyCallSession.Event.Type.DATA_CALL_LIST_CHANGED: in callSessionEventToString() 341 case TelephonyCallSession.Event.Type.RIL_REQUEST: in callSessionEventToString() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | MockPriorityJobService.java | 40 new TestEnvironment.Event(TestEnvironment.EVENT_START_JOB, params.getJobId())); in onStartJob() 55 .add(new TestEnvironment.Event(event, params.getJobId())); in onStopJob() 67 private ArrayList<Event> executedEvents = new ArrayList<Event>(); 76 public static class Event { class in MockPriorityJobService.TestEnvironment 80 public Event() { in Event() method in MockPriorityJobService.TestEnvironment.Event 83 public Event(int event, int jobId) { in Event() method in MockPriorityJobService.TestEnvironment.Event 90 if (other instanceof Event) { in equals() 91 Event otherEvent = (Event) other; in equals() 102 public ArrayList<Event> getExecutedEvents() { in getExecutedEvents()
|
D | PrioritySchedulingTest.java | 26 import com.android.server.job.MockPriorityJobService.TestEnvironment.Event; 77 Event job4Execution = new Event(TestEnvironment.EVENT_START_JOB, 444); in testLowerPriorityJobPreempted() 78 ArrayList<Event> executedEvents = kTestEnvironment.getExecutedEvents(); in testLowerPriorityJobPreempted() 81 for (Event event: executedEvents) { in testLowerPriorityJobPreempted() 115 Event job4Execution = new Event(TestEnvironment.EVENT_START_JOB, 444); in testHigherPriorityJobNotPreempted()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | ResChunkPullParser.h | 38 enum class Event { enum 47 static bool IsGoodEvent(Event event); 53 Event event() const; 58 Event Next(); 63 Event event_; 90 inline bool ResChunkPullParser::IsGoodEvent(ResChunkPullParser::Event event) { in IsGoodEvent() 91 return event != Event::kEndDocument && event != Event::kBadDocument; in IsGoodEvent() 95 : event_(Event::kStartDocument), in ResChunkPullParser() 101 inline ResChunkPullParser::Event ResChunkPullParser::event() const { in event()
|
D | ResChunkPullParser.cpp | 39 ResChunkPullParser::Event ResChunkPullParser::Next() { in Next() 44 if (event_ == Event::kStartDocument) { in Next() 57 return (event_ = Event::kEndDocument); in Next() 61 return (event_ = Event::kBadDocument); in Next() 67 return (event_ = Event::kBadDocument); in Next() 72 return (event_ = Event::kBadDocument); in Next() 76 return (event_ = Event::kBadDocument); in Next() 78 return (event_ = Event::kChunk); in Next()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioEventLogger.java | 29 private final LinkedList<Event> mEvents; 36 public static abstract class Event { class in AudioEventLogger 42 Event() { in Event() method in AudioEventLogger.Event 62 public Event printLog(String tag) { in printLog() 78 public static class StringEvent extends Event { 97 mEvents = new LinkedList<Event>(); in AudioEventLogger() 102 public synchronized void log(Event evt) { in log() 111 for (Event evt : mEvents) { in dump()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerLogger.java | 32 private final LinkedList<Event> mEvents; 42 public abstract static class Event { class in SoundTriggerLogger 48 Event() { in Event() method in SoundTriggerLogger.Event 72 public Event printLog(String tag) { in printLog() 91 public static class StringEvent extends Event { 110 mEvents = new LinkedList<Event>(); in SoundTriggerLogger() 119 public synchronized void log(Event evt) { in log() 132 for (Event evt : mEvents) { in dump()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 44 private static class Event { class in TrustArchive 58 private Event(int type, int userId, ComponentName agent, String message, in Event() method in TrustArchive.Event 71 ArrayDeque<Event> mEvents = new ArrayDeque<Event>(); 75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust() 80 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); in logRevokeTrust() 84 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, null, 0, 0, false)); in logTrustTimeout() 88 addEvent(new Event(TYPE_AGENT_DIED, userId, agent, null, 0, 0, false)); in logAgentDied() 92 addEvent(new Event(TYPE_AGENT_CONNECTED, userId, agent, null, 0, 0, false)); in logAgentConnected() 96 addEvent(new Event(TYPE_AGENT_STOPPED, userId, agent, null, 0, 0, false)); in logAgentStopped() 100 addEvent(new Event(TYPE_MANAGING_TRUST, userId, agent, null, 0, 0, managing)); in logManagingTrust() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageEvents.java | 47 public static final class Event { class in UsageEvents 394 public Event() { in Event() method in UsageEvents.Event 398 public Event(int type, long timeStamp) { in Event() method in UsageEvents.Event 404 public Event(Event orig) { in Event() method in UsageEvents.Event 563 public Event getObfuscatedIfInstantApp() { in getObfuscatedIfInstantApp() 567 final Event ret = new Event(this); in getObfuscatedIfInstantApp() 579 private List<Event> mEventsToWrite = null; 640 public UsageEvents(List<Event> events, String[] stringPool) { in UsageEvents() 648 public UsageEvents(List<Event> events, String[] stringPool, boolean includeTaskRoots) { in UsageEvents() 673 public boolean getNextEvent(Event eventOut) { in getNextEvent() [all …]
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageLogActivity.java | 75 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS); 80 UsageEvents.Event event = new UsageEvents.Event(); in update() 101 public UsageEvents.Event getItem(int position) { in getItem() 113 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType() 121 final UsageEvents.Event event = getItem(position); in getView() 127 if (event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView() 151 event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView() 159 case UsageEvents.Event.ACTIVITY_RESUMED: in eventToString() 162 case UsageEvents.Event.ACTIVITY_PAUSED: in eventToString() 165 case UsageEvents.Event.CONFIGURATION_CHANGE: in eventToString() [all …]
|
/frameworks/base/core/java/android/metrics/ |
D | MetricsReader.java | 77 ArrayList<Event> nativeEvents = new ArrayList<>(); in read() 85 for (Event event : nativeEvents) { in read() 158 public static class Event { class in MetricsReader 164 public Event(long timeMillis, int pid, int uid, Object data) { in Event() method in MetricsReader.Event 171 Event(EventLog.Event nativeEvent) { in Event() method in MetricsReader.Event 207 public void readEvents(int[] tags, long horizonMs, Collection<Event> events) in readEvents() 210 ArrayList<EventLog.Event> nativeEvents = new ArrayList<>(); in readEvents() 213 for (EventLog.Event nativeEvent : nativeEvents) { in readEvents() 214 Event event = new Event(nativeEvent); in readEvents()
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 19 import static android.app.usage.UsageEvents.Event.ACTIVITY_DESTROYED; 20 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED; 21 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED; 22 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED; 23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE; 24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN; 25 import static android.app.usage.UsageEvents.Event.END_OF_DAY; 26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK; 27 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_START; 28 import static android.app.usage.UsageEvents.Event.FOREGROUND_SERVICE_STOP; [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 33 import com.android.server.wifi.WifiScoreCardProto.Event; 174 assertTrue(perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in testRssiPollUpdates() 175 == perBssid.lookupSignal(Event.SIGNAL_POLL, 5805)); in testRssiPollUpdates() 177 assertEquals(2, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805).rssi.count); in testRssiPollUpdates() 178 assertEquals(expectSum, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in testRssiPollUpdates() 180 assertEquals(expectSumSq, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in testRssiPollUpdates() 182 assertEquals(-77.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in testRssiPollUpdates() 184 assertEquals(-55.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in testRssiPollUpdates() 187 assertEquals(1, perBssid.lookupSignal(Event.SIGNAL_POLL, 5290).rssi.count); in testRssiPollUpdates() 189 assertEquals(666.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 5290).linkspeed.sum, TOL); in testRssiPollUpdates() [all …]
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Hid.java | 39 private final Event.Reader mReader; 72 mReader = new Event.Reader(new InputStreamReader(in, "UTF-8")); in Hid() 80 Event e = null; in run() 93 private void process(Event e) { in process() 97 if (Event.COMMAND_DELAY.equals(e.getCommand())) { in process() 99 } else if (Event.COMMAND_REPORT.equals(e.getCommand())) { in process() 102 if (Event.COMMAND_REGISTER.equals(e.getCommand())) { in process() 108 } else if (Event.COMMAND_REGISTER.equals(e.getCommand())) { in process() 115 private void registerDevice(Event e) { in registerDevice() 116 if (!Event.COMMAND_REGISTER.equals(e.getCommand())) { in registerDevice()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiWakeMetrics.java | 224 Event mUnlockEvent; 227 Event mInitEvent; 230 Event mWakeupEvent; 233 Event mResetEvent; 253 mInitEvent = new Event(numScans, timestamp - mStartTimestamp); in recordInitializeEvent() 267 mUnlockEvent = new Event(numScans, timestamp - mStartTimestamp); in recordUnlockEvent() 281 mWakeupEvent = new Event(numScans, timestamp - mStartTimestamp); in recordWakeupEvent() 302 mResetEvent = new Event(numScans, timestamp - mStartTimestamp); in recordResetEvent() 343 public static class Event { class in WifiWakeMetrics 350 public Event(int numScans, long elapsedTime) { in Event() method in WifiWakeMetrics.Event [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | LifecycleFragment.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 20 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY; 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME; 23 import static androidx.lifecycle.Lifecycle.Event.ON_START; 24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
|
/frameworks/base/core/java/android/net/metrics/ |
D | IpConnectivityLog.java | 51 public interface Event extends Parcelable {} interface in IpConnectivityLog 113 public boolean log(long timestamp, @NonNull Event data) { in log() 125 public boolean log(@NonNull String ifname, @NonNull Event data) { in log() 139 public boolean log(@NonNull Network network, @NonNull int[] transports, @NonNull Event data) { in log() 151 public boolean log(int netid, @NonNull int[] transports, @NonNull Event data) { in log() 163 public boolean log(@NonNull Event data) { in log() 167 private static ConnectivityMetricsEvent makeEv(Event data) { in makeEv()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | ObservableDialogFragment.java | 18 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 19 import static androidx.lifecycle.Lifecycle.Event.ON_DESTROY; 20 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 21 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME; 22 import static androidx.lifecycle.Lifecycle.Event.ON_START; 23 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
|