Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/net/metrics/
DIpReachabilityEvent.java49 public final int eventType; field in IpReachabilityEvent
51 public IpReachabilityEvent(int eventType) { in IpReachabilityEvent() argument
52 this.eventType = eventType; in IpReachabilityEvent()
56 this.eventType = in.readInt(); in IpReachabilityEvent()
61 out.writeInt(eventType); in writeToParcel()
93 int hi = eventType & 0xff00; in toString()
94 int lo = eventType & 0x00ff; in toString()
DNetworkEvent.java64 public final @EventType int eventType; field in NetworkEvent
67 public NetworkEvent(int netId, @EventType int eventType, long durationMs) { in NetworkEvent() argument
69 this.eventType = eventType; in NetworkEvent()
73 public NetworkEvent(int netId, @EventType int eventType) { in NetworkEvent() argument
74 this(netId, eventType, 0); in NetworkEvent()
79 eventType = in.readInt(); in NetworkEvent()
86 out.writeInt(eventType); in writeToParcel()
109 netId, Decoder.constants.get(eventType), durationMs); in toString()
DIpManagerEvent.java52 public final @EventType int eventType; field in IpManagerEvent
55 public IpManagerEvent(@EventType int eventType, long duration) { in IpManagerEvent() argument
56 this.eventType = eventType; in IpManagerEvent()
61 this.eventType = in.readInt(); in IpManagerEvent()
67 out.writeInt(eventType); in writeToParcel()
90 Decoder.constants.get(eventType), durationMs); in toString()
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java827 int eventType = parser.getEventType(); in readThisMapXml() local
829 if (eventType == parser.START_TAG) { in readThisMapXml()
832 } else if (eventType == parser.END_TAG) { in readThisMapXml()
839 eventType = parser.next(); in readThisMapXml()
840 } while (eventType != parser.END_DOCUMENT); in readThisMapXml()
856 int eventType = parser.getEventType(); in readThisArrayMapXml() local
858 if (eventType == parser.START_TAG) { in readThisArrayMapXml()
861 } else if (eventType == parser.END_TAG) { in readThisArrayMapXml()
868 eventType = parser.next(); in readThisArrayMapXml()
869 } 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/hardware/location/
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/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/usage/java/com/android/server/usage/
DIntervalStats.java84 private boolean isStatefulEvent(int eventType) { in isStatefulEvent() argument
85 switch (eventType) { in isStatefulEvent()
95 void update(String packageName, long timeStamp, int eventType) { in update() argument
100 if (eventType == UsageEvents.Event.MOVE_TO_BACKGROUND || in update()
101 eventType == UsageEvents.Event.END_OF_DAY) { in update()
108 if (isStatefulEvent(eventType)) { in update()
109 usageStats.mLastEvent = eventType; in update()
112 if (eventType != UsageEvents.Event.SYSTEM_INTERACTION) { in update()
117 if (eventType == UsageEvents.Event.MOVE_TO_FOREGROUND) { in update()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java322 private static String eventTypeToString(int eventType) { in eventTypeToString() argument
323 switch (eventType) { in eventTypeToString()
368 int eventType = next(); in nextText() local
369 if (eventType == TEXT) { in nextText()
371 eventType = next(); in nextText()
372 if (eventType != END_TAG) { in nextText()
379 } else if (eventType == END_TAG) { in nextText()
390 int eventType = next(); in nextTag() local
391 if (eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
392 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/support/v17/leanback/src/android/support/v17/leanback/app/
DListRowDataAdapter.java66 void doNotify(int eventType, int positionStart, int itemCount) { in doNotify() argument
67 switch (eventType) { in doNotify()
81 throw new IllegalArgumentException("Invalid event type " + eventType); in doNotify()
138 protected void onEventFired(int eventType, int positionStart, int itemCount) { in onEventFired() argument
139 doNotify(eventType, positionStart, itemCount); in onEventFired()
/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/packages/SystemUI/src/com/android/systemui/recents/events/
DEventBus.java94 Class<? extends EventBus.Event> eventType; field in EventHandlerMethod
96 EventHandlerMethod(Method method, Class<? extends EventBus.Event> eventType) { in EventHandlerMethod() argument
99 this.eventType = eventType; in EventHandlerMethod()
109 return mMethod.getName() + "(" + eventType.getSimpleName() + ")"; in toString()
530 ArrayList<EventHandler> eventHandlers = mEventTypeMap.get(method.eventType); in unregister()
621 String eventType = event.getClass().getName(); in postInterprocess() local
623 Intent intent = new Intent(eventType); in postInterprocess()
641 … Class<? extends InterprocessEvent> eventType = mInterprocessEventNameMap.get(intent.getAction()); in onReceive() local
643 Constructor<? extends InterprocessEvent> ctor = eventType.getConstructor(Bundle.class); in onReceive()
743 ArrayList<EventHandler> eventTypeHandlers = mEventTypeMap.get(method.eventType); in registerSubscriber()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java893 public void setEventType(int eventType) { in setEventType() argument
895 mEventType = eventType; in setEventType()
999 public static AccessibilityEvent obtain(int eventType) { in obtain() argument
1001 event.setEventType(eventType); in obtain()
1248 public static String eventTypeToString(int eventType) { in eventTypeToString() argument
1249 if (eventType == TYPES_ALL_MASK) { in eventTypeToString()
1254 while (eventType != 0) { in eventTypeToString()
1255 final int eventTypeFlag = 1 << Integer.numberOfTrailingZeros(eventType); in eventTypeToString()
1256 eventType &= ~eventTypeFlag; in eventTypeToString()
1272 private static String singleEventTypeToString(int eventType) { in singleEventTypeToString() argument
[all …]
/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/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.java153 int eventType = parser.getEventType(); in createFromXml() local
155 while (eventType != XmlPullParser.END_DOCUMENT && parser.getDepth() >= minDepth) { in createFromXml()
157 if (eventType == XmlPullParser.START_TAG) { in createFromXml()
177 } else if (eventType == XmlPullParser.END_TAG) { in createFromXml()
183 eventType = parser.next(); in createFromXml()
/frameworks/base/core/java/android/content/res/
DXmlBlock.java281 int eventType = next(); in nextText() local
282 if(eventType == TEXT) { in nextText()
284 eventType = next(); in nextText()
285 if(eventType != END_TAG) { in nextText()
291 } else if(eventType == END_TAG) { in nextText()
300 int eventType = next(); in nextTag() local
301 if(eventType == TEXT && isWhitespace()) { // skip whitespace in nextTag()
302 eventType = next(); in nextTag()
304 if (eventType != START_TAG && eventType != END_TAG) { in nextTag()
309 return eventType; in nextTag()
/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionProvider.java91 public boolean enableActivityEvent(String activity, int eventType, long reportLatencyNs) in enableActivityEvent() argument
93 return mService.enableActivityEvent(activity, eventType, reportLatencyNs); in enableActivityEvent()
96 public boolean disableActivityEvent(String activity, int eventType) throws RemoteException { in disableActivityEvent() argument
97 return mService.disableActivityEvent(activity, eventType); in disableActivityEvent()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java111 final int eventType = getItem(position).getEventType(); in getItemViewType() local
112 if (eventType == UsageEvents.Event.CONFIGURATION_CHANGE) { in getItemViewType()
156 private String eventToString(int eventType) { in eventToString() argument
157 switch (eventType) { in eventToString()
171 return "Unknown: " + eventType; in eventToString()
/frameworks/support/compat/java/android/support/v4/view/
DAccessibilityDelegateCompat.java82 public void sendAccessibilityEvent(View host, int eventType) { in newAccessibilityDelegateBridge() argument
83 compat.sendAccessibilityEvent(host, eventType); in newAccessibilityDelegateBridge()
142 public void sendAccessibilityEvent(View host, int eventType) {
143 compat.sendAccessibilityEvent(host, eventType);
225 public void sendAccessibilityEvent(View host, int eventType) {
226 DEFAULT_DELEGATE.sendAccessibilityEvent(host, eventType);
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp106 void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t eventType) { in android_server_PowerManagerService_userActivity() argument
111 if (eventType >= 0 && eventType <= USER_ACTIVITY_EVENT_LAST) { in android_server_PowerManagerService_userActivity()
117 if (gLastEventTime[eventType] + MIN_TIME_BETWEEN_USERACTIVITIES > eventTime) { in android_server_PowerManagerService_userActivity()
120 gLastEventTime[eventType] = eventTime; in android_server_PowerManagerService_userActivity()
142 nanoseconds_to_milliseconds(eventTime), eventType, 0); in android_server_PowerManagerService_userActivity()
/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/sax/tests/saxtests/src/android/sax/
DExpatPerformanceTest.java104 int eventType = pullParser.next(); in withPullParser() local
105 while (eventType != XmlPullParser.END_DOCUMENT) { in withPullParser()
106 switch (eventType) { in withPullParser()
122 eventType = pullParser.next(); in withPullParser()

12345