Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 135) sorted by relevance

123456

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphRunner.java42 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 …]
DCameraStreamer.java747 private static class Event { class in CameraStreamer
758 public Event(int code) { in Event() method in CameraStreamer.Event
772 private LinkedBlockingQueue<Event> mEventQueue = new LinkedBlockingQueue<Event>(MAX_EVENTS);
898 Event event = nextEvent(); in loop()
901 case Event.START: in loop()
904 case Event.STOP: in loop()
907 case Event.FRAME: in loop()
910 case Event.HALT: in loop()
913 case Event.RESTART: in loop()
916 case Event.UPDATE: in loop()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp37 mEventQueue.push(EventData{ Event::kStartDocument, 0, mDepth++ }); in XmlPullParser()
44 XmlPullParser::Event XmlPullParser::next() { in next()
45 const Event currentEvent = getEvent(); in next()
46 if (currentEvent == Event::kBadDocument || currentEvent == Event::kEndDocument) { in next()
57 mEventQueue.push(EventData{ Event::kBadDocument }); in next()
63 mEventQueue.push(EventData{ Event::kBadDocument }); in next()
68 mEventQueue.push(EventData{ Event::kEndDocument, 0, 0 }); in next()
72 Event event = getEvent(); in next()
76 if (event == Event::kStartNamespace || event == Event::kEndNamespace) { in next()
78 if (event == Event::kStartNamespace) { in next()
[all …]
DXmlPullParser.h40 enum class Event { enum
61 static bool isGoodEvent(Event event);
69 Event getEvent() const;
77 Event next();
155 Event event;
194 inline ::std::ostream& operator<<(::std::ostream& out, XmlPullParser::Event event) {
196 case XmlPullParser::Event::kBadDocument: return out << "BadDocument";
197 case XmlPullParser::Event::kStartDocument: return out << "StartDocument";
198 case XmlPullParser::Event::kEndDocument: return out << "EndDocument";
199 case XmlPullParser::Event::kStartNamespace: return out << "StartNamespace";
[all …]
DXmlPullParser_test.cpp34 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST()
39 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST()
44 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST()
48 EXPECT_EQ(xml::XmlPullParser::Event::kStartElement, parser.getEvent()); in TEST()
52 EXPECT_EQ(xml::XmlPullParser::Event::kEndDocument, parser.getEvent()); in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DMockPriorityJobService.java40 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()
DPrioritySchedulingTest.java26 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/services/usage/java/com/android/server/usage/
DIntervalStats.java33 public TimeSparseArray<UsageEvents.Event> events;
75 UsageEvents.Event buildEvent(String packageName, String className) { in buildEvent()
76 UsageEvents.Event event = new UsageEvents.Event(); in buildEvent()
86 case UsageEvents.Event.MOVE_TO_FOREGROUND: in isStatefulEvent()
87 case UsageEvents.Event.MOVE_TO_BACKGROUND: in isStatefulEvent()
88 case UsageEvents.Event.END_OF_DAY: in isStatefulEvent()
89 case UsageEvents.Event.CONTINUE_PREVIOUS_DAY: in isStatefulEvent()
100 if (eventType == UsageEvents.Event.MOVE_TO_BACKGROUND || in update()
101 eventType == UsageEvents.Event.END_OF_DAY) { in update()
102 if (usageStats.mLastEvent == UsageEvents.Event.MOVE_TO_FOREGROUND || in update()
[all …]
DUserUsageStatsService.java22 import android.app.usage.UsageEvents.Event;
131 if (pkgStats.mLastEvent == UsageEvents.Event.MOVE_TO_FOREGROUND || in init()
132 pkgStats.mLastEvent == UsageEvents.Event.CONTINUE_PREVIOUS_DAY) { in init()
134 UsageEvents.Event.END_OF_DAY); in init()
153 void reportEvent(UsageEvents.Event event) { in reportEvent()
168 if (event.mEventType == UsageEvents.Event.CONFIGURATION_CHANGE && in reportEvent()
179 if (event.mEventType != UsageEvents.Event.SYSTEM_INTERACTION) { in reportEvent()
184 if (event.mEventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in reportEvent()
309 List<UsageEvents.Event> results = queryStats(UsageStatsManager.INTERVAL_DAILY, in queryEvents()
310 beginTime, endTime, new StatCombiner<UsageEvents.Event>() { in queryEvents()
[all …]
/frameworks/base/tools/aapt2/unflatten/
DResChunkPullParser.h41 enum class Event { enum
52 static bool isGoodEvent(Event event);
62 Event getEvent() const;
69 Event next();
72 Event mEvent;
99 inline bool ResChunkPullParser::isGoodEvent(ResChunkPullParser::Event event) { in isGoodEvent()
100 return event != Event::EndDocument && event != Event::BadDocument; in isGoodEvent()
104 mEvent(Event::StartDocument), in ResChunkPullParser()
110 inline ResChunkPullParser::Event ResChunkPullParser::getEvent() const { in getEvent()
DResChunkPullParser.cpp27 ResChunkPullParser::Event ResChunkPullParser::next() { in next()
32 if (mEvent == Event::StartDocument) { in next()
45 return (mEvent = Event::EndDocument); in next()
49 return (mEvent = Event::BadDocument); in next()
55 return (mEvent = Event::BadDocument); in next()
60 return (mEvent = Event::BadDocument); in next()
64 return (mEvent = Event::BadDocument); in next()
66 return (mEvent = Event::Chunk); in next()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java43 private static class Event { class in TrustArchive
57 private Event(int type, int userId, ComponentName agent, String message, in Event() method in TrustArchive.Event
70 ArrayDeque<Event> mEvents = new ArrayDeque<Event>();
74 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust()
79 addEvent(new Event(TYPE_REVOKE_TRUST, userId, agent, null, 0, 0, false)); in logRevokeTrust()
83 addEvent(new Event(TYPE_TRUST_TIMEOUT, userId, agent, null, 0, 0, false)); in logTrustTimeout()
87 addEvent(new Event(TYPE_AGENT_DIED, userId, agent, null, 0, 0, false)); in logAgentDied()
91 addEvent(new Event(TYPE_AGENT_CONNECTED, userId, agent, null, 0, 0, false)); in logAgentConnected()
95 addEvent(new Event(TYPE_AGENT_STOPPED, userId, agent, null, 0, 0, false)); in logAgentStopped()
99 addEvent(new Event(TYPE_MANAGING_TRUST, userId, agent, null, 0, 0, managing)); in logManagingTrust()
[all …]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java74 private final CircularArray<UsageEvents.Event> mEvents = new CircularArray<>(MAX_EVENTS);
79 UsageEvents.Event event = new UsageEvents.Event(); in update()
100 public UsageEvents.Event getItem(int position) { in getItem()
112 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType()
120 final UsageEvents.Event event = getItem(position); in getView()
126 if (event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
150 event.getEventType() == UsageEvents.Event.CONFIGURATION_CHANGE) { in getView()
158 case UsageEvents.Event.MOVE_TO_FOREGROUND: in eventToString()
161 case UsageEvents.Event.MOVE_TO_BACKGROUND: in eventToString()
164 case UsageEvents.Event.CONFIGURATION_CHANGE: in eventToString()
[all …]
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DHid.java40 private final Event.Reader mReader;
73 mReader = new Event.Reader(new InputStreamReader(in, "UTF-8")); in Hid()
81 Event e = null; in run()
95 private void process(Event e) { in process()
99 if (Event.COMMAND_DELAY.equals(e.getCommand())) { in process()
101 } else if (Event.COMMAND_REPORT.equals(e.getCommand())) { in process()
111 private void registerDevice(Event e) { in registerDevice()
112 if (!Event.COMMAND_REGISTER.equals(e.getCommand())) { in registerDevice()
DEvent.java28 public class Event { class
89 private Event mEvent;
92 mEvent = new Event(); in Builder()
127 public Event build() { in build()
158 public Event getNextEvent() throws IOException { in getNextEvent()
159 Event e = null; in getNextEvent()
161 Event.Builder eb = new Event.Builder(); in getNextEvent()
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java34 public static final class Event { class in UsageEvents
151 private List<Event> mEventsToWrite = null;
197 public UsageEvents(List<Event> events, String[] stringPool) { in UsageEvents()
221 public boolean getNextEvent(Event eventOut) { in getNextEvent()
260 private void writeEventToParcel(Event event, Parcel p, int flags) { in writeEventToParcel()
279 if (event.mEventType == Event.CONFIGURATION_CHANGE) { in writeEventToParcel()
287 private void readEventFromParcel(Parcel p, Event eventOut) { in readEventFromParcel()
305 if (eventOut.mEventType == Event.CONFIGURATION_CHANGE) { in readEventFromParcel()
330 final Event event = mEventsToWrite.get(i); in writeToParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/
DEventBus.java94 Class<? extends EventBus.Event> eventType;
96 EventHandlerMethod(Method method, Class<? extends EventBus.Event> eventType) { in EventHandlerMethod()
102 public void invoke(Object target, EventBus.Event event) in invoke()
215 public static class Event implements Cloneable { class in EventBus
224 protected Event() {} in Event() method in EventBus.Event
242 Event evt = (Event) super.clone(); in clone()
256 public static class AnimatedEvent extends Event {
298 public static class ReusableEvent extends Event {
320 public static class InterprocessEvent extends Event {
394 … private HashMap<Class<? extends Event>, ArrayList<EventHandler>> mEventTypeMap = new HashMap<>();
[all …]
/frameworks/native/include/gui/
DDisplayEventReceiver.h47 struct Event { struct
104 ssize_t getEvents(Event* events, size_t count);
106 Event* events, size_t count);
113 Event const* events, size_t count);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardExporterTests.java27 import android.provider.ContactsContract.CommonDataKinds.Event;
1056 entry.addContentValues(Event.CONTENT_ITEM_TYPE) in testEventCommon()
1057 .put(Event.TYPE, Event.TYPE_ANNIVERSARY) in testEventCommon()
1058 .put(Event.START_DATE, "1982-06-16"); in testEventCommon()
1059 entry.addContentValues(Event.CONTENT_ITEM_TYPE) in testEventCommon()
1060 .put(Event.TYPE, Event.TYPE_BIRTHDAY) in testEventCommon()
1061 .put(Event.START_DATE, "2008-10-22"); in testEventCommon()
1062 entry.addContentValues(Event.CONTENT_ITEM_TYPE) in testEventCommon()
1063 .put(Event.TYPE, Event.TYPE_OTHER) in testEventCommon()
1064 .put(Event.START_DATE, "2018-03-12"); in testEventCommon()
[all …]
/frameworks/native/services/surfaceflinger/
DEventThread.h61 status_t postEvent(const DisplayEventReceiver::Event& event);
98 DisplayEventReceiver::Event* event);
126 Vector< DisplayEventReceiver::Event > mPendingEvents;
127 DisplayEventReceiver::Event mVSyncEvent[DisplayDevice::NUM_BUILTIN_DISPLAY_TYPES];
/frameworks/native/libs/gui/
DDisplayEventReceiver.cpp80 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents()
86 Event* events, size_t count) in getEvents()
92 Event const* events, size_t count) in sendEvents()
/frameworks/base/core/java/android/util/
DEventLog.java57 public static final class Event { class in EventLog
81 /*package*/ Event(byte[] data) { in Event() method in EventLog.Event
167 public static Event fromBytes(byte[] data) { in fromBytes()
168 return new Event(data); in fromBytes()
226 public static native void readEvents(int[] tags, Collection<Event> output) in readEvents()
/frameworks/av/include/media/nbaio/
DNBLog.h39 enum Event { enum
49 Entry(Event event, const void *data, size_t length) in Entry()
57 Event mEvent; // event type
141 void log(Event event, const void *data, size_t length);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/activity/
DDockedFirstAnimationFrameEvent.java19 import com.android.systemui.recents.events.EventBus.Event;
24 public class DockedFirstAnimationFrameEvent extends Event {
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/
DDraggingInRecentsEndedEvent.java3 import com.android.systemui.recents.events.EventBus.Event;
8 public class DraggingInRecentsEndedEvent extends Event {

123456