Home
last modified time | relevance | path

Searched refs:eventType (Results 1 – 25 of 219) sorted by relevance

123456789

/frameworks/base/core/java/android/hardware/location/
DContextHubIntentEvent.java49 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
53 mEventType = eventType; in ContextHubIntentEvent()
61 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType) { in ContextHubIntentEvent() argument
62 this(contextHubInfo, eventType, -1 /* nanoAppId */, null /* nanoAppMessage */, in ContextHubIntentEvent()
67 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
69 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, in ContextHubIntentEvent()
74 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
76 this(contextHubInfo, eventType, nanoAppId, nanoAppMessage, -1 /* nanoAppAbortCode */, in ContextHubIntentEvent()
81 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
83 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, nanoAppAbortCode, in ContextHubIntentEvent()
[all …]
DActivityRecognitionHardware.java126 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) { in enableActivityEvent() argument
135 int result = nativeEnableActivityEvent(activityType, eventType, reportLatencyNs); in enableActivityEvent()
137 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_ENABLED; in enableActivityEvent()
145 public boolean disableActivityEvent(String activity, int eventType) { in disableActivityEvent() argument
154 int result = nativeDisableActivityEvent(activityType, eventType); in disableActivityEvent()
156 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_DISABLED; in disableActivityEvent()
262 private void disableActivityEventIfEnabled(int activityType, int eventType) { in disableActivityEventIfEnabled() argument
263 if (mSupportedActivitiesEnabledEvents[activityType][eventType] != EVENT_TYPE_ENABLED) { in disableActivityEventIfEnabled()
267 int result = nativeDisableActivityEvent(activityType, eventType); in disableActivityEventIfEnabled()
268 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_DISABLED; in disableActivityEventIfEnabled()
[all …]
DActivityRecognitionEvent.java32 public ActivityRecognitionEvent(String activity, int eventType, long timestampNs) { in ActivityRecognitionEvent() argument
34 mEventType = eventType; in ActivityRecognitionEvent()
55 int eventType = source.readInt();
58 return new ActivityRecognitionEvent(activity, eventType, timestampNs);
/frameworks/base/core/java/android/net/metrics/
DIpReachabilityEvent.java58 public final int eventType; field in IpReachabilityEvent
60 public IpReachabilityEvent(int eventType) { in IpReachabilityEvent() argument
61 this.eventType = eventType; in IpReachabilityEvent()
65 this.eventType = in.readInt(); in IpReachabilityEvent()
71 out.writeInt(eventType); in writeToParcel()
95 int hi = eventType & 0xff00; in toString()
96 int lo = eventType & 0x00ff; in toString()
105 return eventType == other.eventType; in equals()
DNetworkEvent.java79 public final @EventType int eventType; field in NetworkEvent
83 public NetworkEvent(@EventType int eventType, long durationMs) { in NetworkEvent() argument
84 this.eventType = eventType; in NetworkEvent()
88 public NetworkEvent(@EventType int eventType) { in NetworkEvent() argument
89 this(eventType, 0); in NetworkEvent()
93 eventType = in.readInt(); in NetworkEvent()
100 out.writeInt(eventType); in writeToParcel()
126 Decoder.constants.get(eventType), durationMs); in toString()
133 return eventType == other.eventType in equals()
DIpManagerEvent.java63 public final @EventType int eventType; field in IpManagerEvent
67 public IpManagerEvent(@EventType int eventType, long duration) { in IpManagerEvent() argument
68 this.eventType = eventType; in IpManagerEvent()
73 this.eventType = in.readInt(); in IpManagerEvent()
80 out.writeInt(eventType); in writeToParcel()
106 Decoder.constants.get(eventType), durationMs); in toString()
113 return eventType == other.eventType in equals()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageEventsQueryTest.java117 int eventType = Event.NONE - 1; in testQueryEventTypes() local
119 queryBuilder.setEventTypes(eventType); in testQueryEventTypes()
120 fail("Invalid event type: " + eventType); in testQueryEventTypes()
125 eventType = Event.MAX_EVENT_TYPE + 1; in testQueryEventTypes()
127 queryBuilder.setEventTypes(eventType); in testQueryEventTypes()
128 fail("Invalid event type: " + eventType); in testQueryEventTypes()
134 eventType = rnd.nextInt(Event.MAX_EVENT_TYPE + 1); in testQueryEventTypes()
136 UsageEventsQuery query = queryBuilder.setEventTypes(eventType, eventType, eventType) in testQueryEventTypes()
141 assertEquals(type, eventType); in testQueryEventTypes()
143 fail("Valid event type: " + eventType); in testQueryEventTypes()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/pidf/
DPresence.java145 int eventType = parser.next(); in parse() local
147 while(!(eventType == XmlPullParser.END_TAG in parse()
151 if (eventType == XmlPullParser.START_TAG) { in parse()
154 if (isTupleElement(eventType, tagName)) { in parse()
166 } else if (isNoteElement(eventType, tagName)) { in parse()
178 eventType = parser.next(); in parse()
181 if (eventType == XmlPullParser.END_DOCUMENT) { in parse()
187 private boolean isTupleElement(int eventType, String name) { in isTupleElement() argument
188 return (eventType == XmlPullParser.START_TAG && Tuple.ELEMENT_NAME.equals(name)) ? in isTupleElement()
192 private boolean isNoteElement(int eventType, String name) { in isNoteElement() argument
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierEvent.java443 final int eventType; in toSelectionEvent() local
446 eventType = SelectionEvent.EVENT_SELECTION_STARTED; in toSelectionEvent()
449 eventType = SelectionEvent.EVENT_SELECTION_MODIFIED; in toSelectionEvent()
452 eventType = SelectionEvent.EVENT_SMART_SELECTION_SINGLE; in toSelectionEvent()
455 eventType = SelectionEvent.EVENT_SMART_SELECTION_MULTI; in toSelectionEvent()
458 eventType = SelectionEvent.EVENT_AUTO_SELECTION; in toSelectionEvent()
461 eventType = SelectionEvent.ACTION_OVERTYPE; in toSelectionEvent()
464 eventType = SelectionEvent.ACTION_COPY; in toSelectionEvent()
467 eventType = SelectionEvent.ACTION_PASTE; in toSelectionEvent()
470 eventType = SelectionEvent.ACTION_CUT; in toSelectionEvent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderStateProducer.kt34 val eventType = in <lambda>() constant
38 _currentEvent.value = SliderEvent(eventType, progress) in <lambda>()
42 val eventType = in <lambda>() constant
46 SliderEvent(eventType, previousEvent.currentProgress) in <lambda>()
51 val eventType = in <lambda>() constant
55 SliderEvent(eventType, previousEvent.currentProgress) in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DVisualVoicemailSmsParser.java66 String eventType = smsBody.substring(prefixEnd + 1, eventTypeEnd); in parse() local
71 return new WrappedMessageData(eventType, fields); in parse()
131 String eventType = smsBody.substring(0, eventTypeEnd); in parseAlternativeFormat() local
132 if (!isAllowedAlternativeFormatEvent(eventType)) { in parseAlternativeFormat()
139 return new WrappedMessageData(eventType, fields); in parseAlternativeFormat()
145 private static boolean isAllowedAlternativeFormatEvent(String eventType) { in isAllowedAlternativeFormatEvent() argument
147 if (event.equals(eventType)) { in isAllowedAlternativeFormatEvent()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java1056 int eventType = parser.getEventType(); in readThisMapXml() local
1058 if (eventType == parser.START_TAG) { in readThisMapXml()
1061 } else if (eventType == parser.END_TAG) { in readThisMapXml()
1068 eventType = parser.next(); in readThisMapXml()
1069 } while (eventType != parser.END_DOCUMENT); in readThisMapXml()
1084 int eventType = parser.getEventType(); in readThisArrayMapXml() local
1086 if (eventType == parser.START_TAG) { in readThisArrayMapXml()
1089 } else if (eventType == parser.END_TAG) { in readThisArrayMapXml()
1096 eventType = parser.next(); in readThisArrayMapXml()
1097 } while (eventType != parser.END_DOCUMENT); in readThisArrayMapXml()
[all …]
/frameworks/base/media/java/android/media/
DMediaSyncEvent.java70 public static MediaSyncEvent createEvent(int eventType) in createEvent() argument
72 if (!isValidType(eventType)) { in createEvent()
73 throw (new IllegalArgumentException(eventType in createEvent()
76 return new MediaSyncEvent(eventType); in createEvent()
83 private MediaSyncEvent(int eventType) { in MediaSyncEvent() argument
84 mType = eventType; in MediaSyncEvent()
/frameworks/base/services/permission/java/com/android/server/permission/access/util/
DBinaryXmlPullParserExtensions.kt50 when (val eventType = eventType) { in forEachTag() method
54 else -> throw XmlPullParserException("Unexpected event type $eventType") in forEachTag()
57 when (val eventType = eventType) { in forEachTag() method
73 when (val childEventType = this.eventType) { in forEachTag()
95 else -> throw XmlPullParserException("Unexpected event type $eventType") in forEachTag()
110 when (val eventType = next()) { in nextTagOrEnd() method
113 XmlPullParser.END_DOCUMENT -> return eventType in nextTagOrEnd()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSimpleInflater.java65 int eventType = parser.getEventType(); in parseMenu() local
72 if (eventType == XmlPullParser.START_TAG) { in parseMenu()
76 eventType = parser.next(); in parseMenu()
82 eventType = parser.next(); in parseMenu()
83 } while (eventType != XmlPullParser.END_DOCUMENT); in parseMenu()
87 switch (eventType) { in parseMenu()
119 eventType = parser.next(); in parseMenu()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java328 private static String eventTypeToString(int eventType) { in eventTypeToString() argument
329 switch (eventType) { in eventTypeToString()
374 int eventType = next(); in nextText() local
375 if (eventType == TEXT) { in nextText()
377 eventType = next(); in nextText()
378 if (eventType != END_TAG) { in nextText()
385 } else if (eventType == END_TAG) { in nextText()
396 int eventType = next(); in nextTag() local
397 if (eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
398 eventType = next(); in nextTag()
[all …]
/frameworks/base/core/java/android/service/quickaccesswallet/
DWalletServiceEvent.java62 public WalletServiceEvent(@EventType int eventType) { in WalletServiceEvent() argument
63 this.mEventType = eventType; in WalletServiceEvent()
81 int eventType = source.readInt();
82 return new WalletServiceEvent(eventType);
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/
DElementBase.java70 int eventType = type; in moveToElementEndTag() local
73 while(!(eventType == XmlPullParser.END_TAG in moveToElementEndTag()
76 eventType = parser.next(); in moveToElementEndTag()
79 if (eventType == XmlPullParser.END_DOCUMENT) { in moveToElementEndTag()
/frameworks/base/core/java/android/os/
DUserBatteryConsumer.java88 int eventType = parser.getEventType(); in createFromXml() local
89 if (eventType != XmlPullParser.START_TAG in createFromXml()
93 while (!(eventType == XmlPullParser.END_TAG in createFromXml()
95 && eventType != XmlPullParser.END_DOCUMENT) { in createFromXml()
96 if (eventType == XmlPullParser.START_TAG) { in createFromXml()
101 eventType = parser.next(); in createFromXml()
DAggregateBatteryConsumer.java82 int eventType = parser.getEventType(); in parseXml() local
83 if (eventType != XmlPullParser.START_TAG || !parser.getName().equals( in parseXml()
91 while (!(eventType == XmlPullParser.END_TAG && parser.getName().equals( in parseXml()
93 && eventType != XmlPullParser.END_DOCUMENT) { in parseXml()
94 if (eventType == XmlPullParser.START_TAG) { in parseXml()
99 eventType = parser.next(); in parseXml()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/capabilities/
DDuplex.java136 int eventType = parser.next(); in parse() local
138 while(!(eventType == XmlPullParser.END_TAG in parse()
142 if (eventType == XmlPullParser.START_TAG) { in parse()
158 eventType = parser.next(); in parse()
161 if (eventType == XmlPullParser.END_DOCUMENT) { in parse()
169 int eventType = parser.next(); in getDuplexType() local
172 if (eventType == XmlPullParser.START_TAG) { in getDuplexType()
DServiceCaps.java85 int eventType = parser.next(); in parse() local
87 while(!(eventType == XmlPullParser.END_TAG in parse()
91 if (eventType == XmlPullParser.START_TAG) { in parse()
109 eventType = parser.next(); in parse()
112 if (eventType == XmlPullParser.END_DOCUMENT) { in parse()
/frameworks/base/core/java/android/app/usage/
DUsageStats.java479 private void updateActivity(String className, long timeStamp, int eventType, int instanceId) { in updateActivity() argument
480 if (eventType != ACTIVITY_RESUMED in updateActivity()
481 && eventType != ACTIVITY_PAUSED in updateActivity()
482 && eventType != ACTIVITY_STOPPED in updateActivity()
483 && eventType != ACTIVITY_DESTROYED) { in updateActivity()
505 switch(eventType) { in updateActivity()
515 mActivities.put(instanceId, eventType); in updateActivity()
522 mActivities.put(instanceId, eventType); in updateActivity()
541 private void updateForegroundService(String className, long timeStamp, int eventType) { in updateForegroundService() argument
542 if (eventType != FOREGROUND_SERVICE_STOP in updateForegroundService()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmHalListener.cpp61 DrmPlugin::EventType eventType; in onEvent() local
64 eventType = DrmPlugin::kDrmPluginEventProvisionRequired; in onEvent()
67 eventType = DrmPlugin::kDrmPluginEventKeyNeeded; in onEvent()
70 eventType = DrmPlugin::kDrmPluginEventKeyExpired; in onEvent()
73 eventType = DrmPlugin::kDrmPluginEventVendorDefined; in onEvent()
76 eventType = DrmPlugin::kDrmPluginEventSessionReclaimed; in onEvent()
82 listener->sendEvent(eventType, toHidlVec(toVector(sessionId)), toHidlVec(toVector(data))); in onEvent()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/omapres/
DServiceDescription.java105 int eventType = parser.next(); in parse() local
107 while(!(eventType == XmlPullParser.END_TAG in parse()
111 if (eventType == XmlPullParser.START_TAG) { in parse()
129 eventType = parser.next(); in parse()
132 if (eventType == XmlPullParser.END_DOCUMENT) { in parse()

123456789