Home
last modified time | relevance | path

Searched refs:eventTypes (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/core/java/android/net/metrics/
DDnsEvent.java43 public byte[] eventTypes; field in DnsEvent
53 eventTypes = new byte[initialCapacity]; in DnsEvent()
64 if (eventCount == eventTypes.length) { in addResult()
67 eventTypes[eventCount] = eventType; in addResult()
78 eventTypes = Arrays.copyOf(eventTypes, newLength); in resize()
/frameworks/base/core/java/android/app/ambientcontext/
DAmbientContextEventRequest.java43 @NonNull Set<Integer> eventTypes, in AmbientContextEventRequest()
45 this.mEventTypes = eventTypes; in AmbientContextEventRequest()
47 Preconditions.checkArgument(!eventTypes.isEmpty(), "eventTypes cannot be empty"); in AmbientContextEventRequest()
48 for (int eventType : eventTypes) { in AmbientContextEventRequest()
89 Set<Integer> eventTypes = (Set<Integer>) in.readArraySet(Integer.class.getClassLoader()); in AmbientContextEventRequest() local
93 this.mEventTypes = eventTypes; in AmbientContextEventRequest()
96 Preconditions.checkArgument(!eventTypes.isEmpty(), "eventTypes cannot be empty"); in AmbientContextEventRequest()
97 for (int eventType : eventTypes) { in AmbientContextEventRequest()
DIAmbientContextManager.aidl40 void queryServiceStatus(in int[] eventTypes, in String callingPackage, in queryServiceStatus() argument
42 void startConsentActivity(in int[] eventTypes, in String callingPackage); in startConsentActivity() argument
DAmbientContextManager.java186 @NonNull @AmbientContextEvent.EventCode Set<Integer> eventTypes, in queryAmbientContextServiceStatus()
199 mService.queryServiceStatus(integerSetToIntArray(eventTypes), in queryAmbientContextServiceStatus()
216 @NonNull @AmbientContextEvent.EventCode Set<Integer> eventTypes) { in startConsentActivity()
219 integerSetToIntArray(eventTypes), mContext.getOpPackageName()); in startConsentActivity()
/frameworks/base/services/core/java/com/android/server/ambientcontext/
DAmbientContextManagerService.java353 int[] eventTypes, RemoteCallback callback) { in queryServiceStatus() argument
359 userId, intArrayToIntegerSet(eventTypes)); in queryServiceStatus()
361 service.onQueryServiceStatus(eventTypes, packageName, callback); in queryServiceStatus()
404 @UserIdInt int userId, Set<Integer> eventTypes) { in getAmbientContextManagerPerUserServiceForEventTypes() argument
405 if (isWearableEventTypesOnly(eventTypes)) { in getAmbientContextManagerPerUserServiceForEventTypes()
465 private boolean isWearableEventTypesOnly(Set<Integer> eventTypes) { in isWearableEventTypesOnly() argument
466 if (eventTypes.isEmpty()) { in isWearableEventTypesOnly()
470 for (Integer eventType : eventTypes) { in isWearableEventTypesOnly()
480 private boolean isWearableEventTypesOnly(int[] eventTypes) { in isWearableEventTypesOnly() argument
481 Integer[] events = intArrayToIntegerArray(eventTypes); in isWearableEventTypesOnly()
[all …]
DAmbientContextManagerPerUserService.java141 public void onQueryServiceStatus(int[] eventTypes, String callingPackage, in onQueryServiceStatus() argument
143 Slog.d(TAG, "Query event status of " + Arrays.toString(eventTypes) in onQueryServiceStatus()
154 eventTypes, in onQueryServiceStatus()
176 public void onStartConsentActivity(int[] eventTypes, String callingPackage) { in onStartConsentActivity() argument
177 Slog.d(TAG, "Opening consent activity of " + Arrays.toString(eventTypes) in onStartConsentActivity()
229 intent.putExtra(eventArrayExtraKey, eventTypes); in onStartConsentActivity()
DDefaultRemoteAmbientContextDetectionService.java78 @AmbientContextEvent.EventCode int[] eventTypes, in queryServiceStatus()
82 post(service -> service.queryServiceStatus(eventTypes, packageName, callback)); in queryServiceStatus()
DRemoteWearableSensingService.java78 @AmbientContextEvent.EventCode int[] eventTypes, in queryServiceStatus()
82 post(service -> service.queryServiceStatus(eventTypes, packageName, callback)); in queryServiceStatus()
DRemoteAmbientDetectionService.java53 @AmbientContextEvent.EventCode int[] eventTypes, in queryServiceStatus()
/frameworks/base/services/people/java/com/android/server/people/data/
DAggregateEventHistoryImpl.java44 public EventIndex getEventIndex(Set<Integer> eventTypes) { in getEventIndex() argument
47 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in getEventIndex()
59 public List<Event> queryEvents(Set<Integer> eventTypes, long startTime, long endTime) { in queryEvents() argument
62 EventIndex eventIndex = eventHistory.getEventIndex(eventTypes); in queryEvents()
66 List<Event> queryResults = eventHistory.queryEvents(eventTypes, startTime, endTime); in queryEvents()
DEventHistory.java33 EventIndex getEventIndex(Set<Integer> eventTypes); in getEventIndex() argument
43 List<Event> queryEvents(Set<Integer> eventTypes, long fromTimestamp, long toTimestamp); in queryEvents() argument
DEventList.java64 List<Event> queryEvents(@NonNull Set<Integer> eventTypes, long fromTimestamp, in queryEvents() argument
77 if (eventTypes.contains(e.getType())) { in queryEvents()
DEventHistoryImpl.java164 public synchronized EventIndex getEventIndex(Set<Integer> eventTypes) { in getEventIndex() argument
166 for (@Event.EventType int eventType : eventTypes) { in getEventIndex()
177 public synchronized List<Event> queryEvents(Set<Integer> eventTypes, long startTime, in queryEvents() argument
179 return mRecentEvents.queryEvents(eventTypes, startTime, endTime); in queryEvents()
/frameworks/base/core/java/android/app/usage/
DUsageEventsQuery.java206 public @NonNull Builder setEventTypes(@NonNull @Event.EventType int... eventTypes) { in setEventTypes() argument
207 if (eventTypes == null || eventTypes.length == 0) { in setEventTypes()
212 for (int i = 0; i < eventTypes.length; i++) { in setEventTypes()
213 final int eventType = eventTypes[i]; in setEventTypes()
/frameworks/base/core/java/android/service/ambientcontext/
DAmbientContextDetectionService.java113 @AmbientContextEvent.EventCode int[] eventTypes, in onBind()
116 Objects.requireNonNull(eventTypes); in onBind()
129 eventTypes, packageName, consumer); in onBind()
180 @NonNull int[] eventTypes,
DIAmbientContextDetectionService.aidl31 void queryServiceStatus(in int[] eventTypes, in String packageName, in queryServiceStatus() argument
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java442 public int eventTypes; field in AccessibilityServiceInfo
666 mEventTypesDefault = info.eventTypes; in DynamicPropertyDefaults()
732 eventTypes = asAttributes.getInt( in AccessibilityServiceInfo()
841 eventTypes = mDynamicPropertyDefaults.mEventTypesDefault; in resetDynamicallyConfigurableProperties()
879 eventTypes = other.eventTypes; in updateDynamicallyConfigurableProperties()
1371 parcel.writeInt(eventTypes); in writeToParcel()
1397 eventTypes = parcel.readInt(); in initFromParcel()
1453 appendEventTypes(stringBuilder, eventTypes); in toString()
1513 private static void appendEventTypes(StringBuilder stringBuilder, int eventTypes) { in appendEventTypes() argument
1516 while (eventTypes != 0) { in appendEventTypes()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DUiAutomationManagerTest.java166 mMockServiceInfo.eventTypes = 0; in getRequestedEventMaskLocked_dependsOnInfoEventTypes()
168 assertEquals(mMockServiceInfo.eventTypes, in getRequestedEventMaskLocked_dependsOnInfoEventTypes()
171 mMockServiceInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; in getRequestedEventMaskLocked_dependsOnInfoEventTypes()
173 assertEquals(mMockServiceInfo.eventTypes, in getRequestedEventMaskLocked_dependsOnInfoEventTypes()
DProxyAccessibilityServiceConnectionTest.java171 info1.eventTypes = AccessibilityEvent.TYPE_VIEW_CLICKED; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
181 info2.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
198 assertThat(mAccessibilityServiceInfo.eventTypes).isEqualTo( in testSetInstalledAndEnabledServices_connectionInfoIsUnion()
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityManagerClient.aidl31 void setRelevantEventTypes(int eventTypes); in setRelevantEventTypes() argument
/frameworks/base/core/java/android/service/wearable/
DWearableSensingService.java308 @AmbientContextEvent.EventCode int[] eventTypes, in onBind()
311 Objects.requireNonNull(eventTypes); in onBind()
323 Integer[] events = intArrayToIntegerArray(eventTypes); in onBind()
597 public abstract void onQueryServiceStatus(@NonNull Set<Integer> eventTypes,
DIWearableSensingService.aidl44 void queryServiceStatus(in int[] eventTypes, in String packageName, in RemoteCallback callback); in queryServiceStatus() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DProxyAccessibilityServiceConnection.java139 proxyInfo.eventTypes = 0; in setInstalledAndEnabledServices()
163 proxyInfo.eventTypes |= info.eventTypes; in setInstalledAndEnabledServices()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java110 dnsLookupBatch.eventTypes = bytesToInts(in.eventTypes); in toProto()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java3590 int eventTypes;
3592 eventTypes = mCompletedEventTypes.get(userId, 0);
3611 Integer.toBinaryString(eventTypes), Integer.toBinaryString(eligibleEventTypes));
3612 eventTypes &= eligibleEventTypes;
3614 mInjector.systemServiceManagerOnUserCompletedEvent(userId, eventTypes);
3823 void systemServiceManagerOnUserCompletedEvent(@UserIdInt int userId, int eventTypes) {
3824 getSystemServiceManager().onUserCompletedEvent(userId, eventTypes);

12