Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/hardware/location/
DContextHubIntentEvent.java47 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
50 mEventType = eventType; in ContextHubIntentEvent()
57 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType) { in ContextHubIntentEvent() argument
58 this(contextHubInfo, eventType, -1 /* nanoAppId */, null /* nanoAppMessage */, in ContextHubIntentEvent()
63 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
65 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, in ContextHubIntentEvent()
70 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
72 this(contextHubInfo, eventType, nanoAppId, nanoAppMessage, -1 /* nanoAppAbortCode */); in ContextHubIntentEvent()
76 @NonNull ContextHubInfo contextHubInfo, @ContextHubManager.Event int eventType, in ContextHubIntentEvent() argument
78 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, nanoAppAbortCode); in ContextHubIntentEvent()
[all …]
DActivityRecognitionHardware.java117 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) { in enableActivityEvent() argument
125 int result = nativeEnableActivityEvent(activityType, eventType, reportLatencyNs); in enableActivityEvent()
127 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_ENABLED; in enableActivityEvent()
134 public boolean disableActivityEvent(String activity, int eventType) { in disableActivityEvent() argument
142 int result = nativeDisableActivityEvent(activityType, eventType); in disableActivityEvent()
144 mSupportedActivitiesEnabledEvents[activityType][eventType] = EVENT_TYPE_DISABLED; in disableActivityEvent()
248 private void disableActivityEventIfEnabled(int activityType, int eventType) { in disableActivityEventIfEnabled() argument
249 if (mSupportedActivitiesEnabledEvents[activityType][eventType] != EVENT_TYPE_ENABLED) { in disableActivityEventIfEnabled()
253 int result = nativeDisableActivityEvent(activityType, eventType); in disableActivityEventIfEnabled()
254 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.java54 public final int eventType; field in IpReachabilityEvent
56 public IpReachabilityEvent(int eventType) { in IpReachabilityEvent() argument
57 this.eventType = eventType; in IpReachabilityEvent()
61 this.eventType = in.readInt(); in IpReachabilityEvent()
67 out.writeInt(eventType); in writeToParcel()
90 int hi = eventType & 0xff00; in toString()
91 int lo = eventType & 0x00ff; in toString()
100 return eventType == other.eventType; in equals()
DNetworkEvent.java75 public final @EventType int eventType; field in NetworkEvent
79 public NetworkEvent(@EventType int eventType, long durationMs) { in NetworkEvent() argument
80 this.eventType = eventType; in NetworkEvent()
84 public NetworkEvent(@EventType int eventType) { in NetworkEvent() argument
85 this(eventType, 0); in NetworkEvent()
89 eventType = in.readInt(); in NetworkEvent()
96 out.writeInt(eventType); in writeToParcel()
121 Decoder.constants.get(eventType), durationMs); in toString()
128 return eventType == other.eventType in equals()
DIpManagerEvent.java59 public final @EventType int eventType; field in IpManagerEvent
63 public IpManagerEvent(@EventType int eventType, long duration) { in IpManagerEvent() argument
64 this.eventType = eventType; in IpManagerEvent()
69 this.eventType = in.readInt(); in IpManagerEvent()
76 out.writeInt(eventType); in writeToParcel()
101 Decoder.constants.get(eventType), durationMs); in toString()
108 return eventType == other.eventType in equals()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java835 int eventType = parser.getEventType(); in readThisMapXml() local
837 if (eventType == parser.START_TAG) { in readThisMapXml()
840 } else if (eventType == parser.END_TAG) { in readThisMapXml()
847 eventType = parser.next(); in readThisMapXml()
848 } while (eventType != parser.END_DOCUMENT); in readThisMapXml()
864 int eventType = parser.getEventType(); in readThisArrayMapXml() local
866 if (eventType == parser.START_TAG) { in readThisArrayMapXml()
869 } else if (eventType == parser.END_TAG) { in readThisArrayMapXml()
876 eventType = parser.next(); in readThisArrayMapXml()
877 } while (eventType != parser.END_DOCUMENT); in readThisArrayMapXml()
[all …]
/frameworks/base/media/java/android/media/
DMediaSyncEvent.java55 public static MediaSyncEvent createEvent(int eventType) in createEvent() argument
57 if (!isValidType(eventType)) { in createEvent()
58 throw (new IllegalArgumentException(eventType in createEvent()
61 return new MediaSyncEvent(eventType); in createEvent()
68 private MediaSyncEvent(int eventType) { in MediaSyncEvent() argument
69 mType = eventType; in MediaSyncEvent()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierEvent.java422 final int eventType; in toSelectionEvent() local
425 eventType = SelectionEvent.EVENT_SELECTION_STARTED; in toSelectionEvent()
428 eventType = SelectionEvent.EVENT_SELECTION_MODIFIED; in toSelectionEvent()
431 eventType = SelectionEvent.EVENT_SMART_SELECTION_SINGLE; in toSelectionEvent()
434 eventType = SelectionEvent.EVENT_SMART_SELECTION_MULTI; in toSelectionEvent()
437 eventType = SelectionEvent.EVENT_AUTO_SELECTION; in toSelectionEvent()
440 eventType = SelectionEvent.ACTION_OVERTYPE; in toSelectionEvent()
443 eventType = SelectionEvent.ACTION_COPY; in toSelectionEvent()
446 eventType = SelectionEvent.ACTION_PASTE; in toSelectionEvent()
449 eventType = SelectionEvent.ACTION_CUT; in toSelectionEvent()
[all …]
/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/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureMetricsLogger.java36 public static void writeServiceEvent(int eventType, @NonNull String serviceName, in writeServiceEvent() argument
38 StatsLog.write(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS, eventType, serviceName, in writeServiceEvent()
43 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent() argument
45 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), in writeServiceEvent()
50 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent() argument
52 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), targetPackage); in writeServiceEvent()
56 public static void writeServiceEvent(int eventType, @NonNull ComponentName service) { in writeServiceEvent() argument
57 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), null); in writeServiceEvent()
/frameworks/base/core/java/android/app/usage/
DUsageStats.java422 private void updateActivity(String className, long timeStamp, int eventType, int instanceId) { in updateActivity() argument
423 if (eventType != ACTIVITY_RESUMED in updateActivity()
424 && eventType != ACTIVITY_PAUSED in updateActivity()
425 && eventType != ACTIVITY_STOPPED in updateActivity()
426 && eventType != ACTIVITY_DESTROYED) { in updateActivity()
448 switch(eventType) { in updateActivity()
458 mActivities.put(instanceId, eventType); in updateActivity()
465 mActivities.put(instanceId, eventType); in updateActivity()
484 private void updateForegroundService(String className, long timeStamp, int eventType) { in updateForegroundService() argument
485 if (eventType != FOREGROUND_SERVICE_STOP in updateForegroundService()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java321 private static String eventTypeToString(int eventType) { in eventTypeToString() argument
322 switch (eventType) { in eventTypeToString()
367 int eventType = next(); in nextText() local
368 if (eventType == TEXT) { in nextText()
370 eventType = next(); in nextText()
371 if (eventType != END_TAG) { in nextText()
378 } else if (eventType == END_TAG) { in nextText()
389 int eventType = next(); in nextTag() local
390 if (eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
391 eventType = next(); in nextTag()
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsEventQueryHelper.java82 int eventType = cursor.getInt(cursor.getColumnIndex(EVENT_TYPE_COLUMN)); in performEventQuery() local
83 switch (eventType) { in performEventQuery()
101 "RcsEventQueryHelper: invalid event type: " + eventType); in performEventQuery()
114 int createGroupThreadEvent(int eventType, long timestamp, int threadId, in createGroupThreadEvent() argument
118 values.put(EVENT_TYPE_COLUMN, eventType); in createGroupThreadEvent()
123 Integer.toString(threadId)).appendPath(getPathForEventType(eventType)).build(); in createGroupThreadEvent()
133 "Could not create event with type: " + eventType + " on thread: " + threadId); in createGroupThreadEvent()
138 private String getPathForEventType(int eventType) throws RemoteException { in getPathForEventType() argument
139 switch (eventType) { in getPathForEventType()
149 throw new RemoteException("Event type unrecognized: " + eventType); in getPathForEventType()
/frameworks/av/drm/libmediadrm/
DIDrmClient.cpp43 virtual void notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj) in notify() argument
47 data.writeInt32((int)eventType); in notify()
66 int eventType = data.readInt32(); in onTransact() local
73 notify((DrmPlugin::EventType)eventType, extra, &obj); in onTransact()
/frameworks/base/core/java/android/nfc/cardemulation/
DNfcFServiceInfo.java116 int eventType = parser.getEventType(); in NfcFServiceInfo() local
117 while (eventType != XmlPullParser.START_TAG && in NfcFServiceInfo()
118 eventType != XmlPullParser.END_DOCUMENT) { in NfcFServiceInfo()
119 eventType = parser.next(); in NfcFServiceInfo()
144 while (((eventType = parser.next()) != XmlPullParser.END_TAG || in NfcFServiceInfo()
145 parser.getDepth() > depth) && eventType != XmlPullParser.END_DOCUMENT) { in NfcFServiceInfo()
147 if (eventType == XmlPullParser.START_TAG && in NfcFServiceInfo()
159 } else if (eventType == XmlPullParser.START_TAG && in NfcFServiceInfo()
172 } else if (eventType == XmlPullParser.START_TAG && tagName.equals("t3tPmm-filter") in NfcFServiceInfo()
DAidGroup.java162 int eventType = parser.getEventType(); in createFromXml() local
164 while (eventType != XmlPullParser.END_DOCUMENT && parser.getDepth() >= minDepth) { in createFromXml()
166 if (eventType == XmlPullParser.START_TAG) { in createFromXml()
186 } else if (eventType == XmlPullParser.END_TAG) { in createFromXml()
192 eventType = parser.next(); in createFromXml()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java178 public boolean sendEventForVirtualView(int virtualViewId, int eventType) { in sendEventForVirtualView() argument
188 final AccessibilityEvent event = createEvent(virtualViewId, eventType); in sendEventForVirtualView()
291 private AccessibilityEvent createEvent(int virtualViewId, int eventType) { in createEvent() argument
294 return createEventForHost(eventType); in createEvent()
296 return createEventForChild(virtualViewId, eventType); in createEvent()
307 private AccessibilityEvent createEventForHost(int eventType) { in createEventForHost() argument
308 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); in createEventForHost()
327 private AccessibilityEvent createEventForChild(int virtualViewId, int eventType) { in createEventForChild() argument
328 final AccessibilityEvent event = AccessibilityEvent.obtain(eventType); in createEventForChild()
/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionProvider.java92 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) in enableActivityEvent() argument
94 return mService.enableActivityEvent(activity, eventType, reportLatencyNs); in enableActivityEvent()
97 public boolean disableActivityEvent(String activity, int eventType) throws RemoteException { in disableActivityEvent() argument
98 return mService.disableActivityEvent(activity, eventType); in disableActivityEvent()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java112 final int eventType = getItem(position).getEventType(); in getItemViewType() local
113 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType()
157 private String eventToString(int eventType) { in eventToString() argument
158 switch (eventType) { in eventToString()
172 return "Unknown: " + eventType; in eventToString()
/frameworks/base/core/java/android/content/res/
DXmlBlock.java298 int eventType = next(); in nextText() local
299 if(eventType == TEXT) { in nextText()
301 eventType = next(); in nextText()
302 if(eventType != END_TAG) { in nextText()
308 } else if(eventType == END_TAG) { in nextText()
317 int eventType = next(); in nextTag() local
318 if(eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
319 eventType = next(); in nextTag()
321 if (eventType != START_TAG && eventType != END_TAG) { in nextTag()
326 return eventType; in nextTag()
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventlogger/
DAELogger.java49 final String eventType = AccessibilityEvent.eventTypeToString(event.getEventType()); in onAccessibilityEvent() local
53 eventType, in onAccessibilityEvent()
63 eventType + ": " + eventClass, Toast.LENGTH_SHORT); in onAccessibilityEvent()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java970 public void setEventType(@EventType int eventType) { in setEventType() argument
972 mEventType = eventType; in setEventType()
1096 public static AccessibilityEvent obtain(int eventType) { in obtain() argument
1098 event.setEventType(eventType); in obtain()
1369 public static String eventTypeToString(int eventType) { in eventTypeToString() argument
1370 if (eventType == TYPES_ALL_MASK) { in eventTypeToString()
1375 while (eventType != 0) { in eventTypeToString()
1376 final int eventTypeFlag = 1 << Integer.numberOfTrailingZeros(eventType); in eventTypeToString()
1377 eventType &= ~eventTypeFlag; in eventTypeToString()
1393 private static String singleEventTypeToString(int eventType) { in singleEventTypeToString() argument
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/
DEventBus.java87 Class<? extends EventBus.Event> eventType; field in EventHandlerMethod
89 EventHandlerMethod(Method method, Class<? extends EventBus.Event> eventType) { in EventHandlerMethod() argument
92 this.eventType = eventType; in EventHandlerMethod()
102 return mMethod.getName() + "(" + eventType.getSimpleName() + ")"; in toString()
421 ArrayList<EventHandler> eventHandlers = mEventTypeMap.get(method.eventType); in unregister()
570 ArrayList<EventHandler> eventTypeHandlers = mEventTypeMap.get(method.eventType); in registerSubscriber()
593 Class<? extends Event> eventType = (Class<? extends Event>) parameterTypes[0]; in registerSubscriber() local
594 ArrayList<EventHandler> eventTypeHandlers = mEventTypeMap.get(eventType); in registerSubscriber()
597 mEventTypeMap.put(eventType, eventTypeHandlers); in registerSubscriber()
599 EventHandlerMethod method = new EventHandlerMethod(m, eventType); in registerSubscriber()

123456