Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 1021) sorted by relevance

12345678910>>...41

/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c91 AStatsEvent* event = malloc(sizeof(AStatsEvent)); in AStatsEvent_obtain() local
92 event->lastFieldPos = 0; in AStatsEvent_obtain()
93 event->numBytesWritten = 2; // reserve first 2 bytes for root event type and number of elements in AStatsEvent_obtain()
94 event->numElements = 0; in AStatsEvent_obtain()
95 event->atomId = 0; in AStatsEvent_obtain()
96 event->errors = 0; in AStatsEvent_obtain()
97 event->built = false; in AStatsEvent_obtain()
98 event->bufSize = MAX_PUSH_EVENT_PAYLOAD; in AStatsEvent_obtain()
99 event->buf = (uint8_t*)calloc(event->bufSize, 1); in AStatsEvent_obtain()
101 event->buf[0] = OBJECT_TYPE; in AStatsEvent_obtain()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java310 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged() local
311 event.valueInt = state; in onConnectionStateChanged()
312 event.valueInt2 = peerFeat; in onConnectionStateChanged()
313 event.valueInt3 = chldFeat; in onConnectionStateChanged()
314 event.device = getDevice(address); in onConnectionStateChanged()
318 Log.d(TAG, "Device addr " + event.device.getAddress() + " State " + state); in onConnectionStateChanged()
322 service.messageFromNative(event); in onConnectionStateChanged()
324 Log.w(TAG, "Ignoring message because service not available: " + event); in onConnectionStateChanged()
329 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() local
330 event.valueInt = state; in onAudioStateChanged()
[all …]
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp125 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
126 AStatsEvent_setAtomId(event, atomId); in TEST()
127 AStatsEvent_writeInt32(event, int32Value); in TEST()
128 AStatsEvent_writeInt64(event, int64Value); in TEST()
129 AStatsEvent_writeFloat(event, floatValue); in TEST()
130 AStatsEvent_writeBool(event, boolValue); in TEST()
131 AStatsEvent_build(event); in TEST()
135 uint8_t* buffer = AStatsEvent_getBuffer(event, &bufferSize); in TEST()
157 EXPECT_EQ(AStatsEvent_getErrors(event), 0); in TEST()
158 AStatsEvent_release(event); in TEST()
[all …]
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/quickstep/
DOrientationTouchTransformerTest.java98 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
100 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
102 event -> mTouchTransformer.touchInAssistantRegion(event)); in disabledMultipleRegions_shouldOverrideFirstRegion()
104 event -> mTouchTransformer.touchInAssistantRegion(event)); in disabledMultipleRegions_shouldOverrideFirstRegion()
110 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
112 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
114 event -> mTouchTransformer.touchInAssistantRegion(event)); in disabledMultipleRegions_shouldOverrideFirstRegion()
116 event -> mTouchTransformer.touchInAssistantRegion(event)); in disabledMultipleRegions_shouldOverrideFirstRegion()
121 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
123 event -> mTouchTransformer.touchInValidSwipeRegions(event.getX(), event.getY())); in disabledMultipleRegions_shouldOverrideFirstRegion()
[all …]
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp81 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
82 AStatsEvent_setAtomId(event, 100); in TEST()
83 AStatsEvent_writeInt32(event, 10); in TEST()
84 AStatsEvent_writeInt64(event, 0x123456789); in TEST()
85 AStatsEvent_writeFloat(event, 2.0); in TEST()
86 AStatsEvent_writeBool(event, true); in TEST()
87 AStatsEvent_build(event); in TEST()
90 uint8_t* buf = AStatsEvent_getBuffer(event, &size); in TEST()
127 AStatsEvent_release(event); in TEST()
131 AStatsEvent* event = AStatsEvent_obtain(); in TEST() local
[all …]
DLogEntryMatcher_test.cpp120 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
121 makeIntLogEvent(&event, TAG_ID, 0, 11); in TEST()
124 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
128 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
137 LogEvent event(/*uid=*/0, /*pid=*/0); in TEST() local
138 makeAttributionLogEvent(&event, TAG_ID, 0, attributionUids, attributionTags, "some value"); in TEST()
159 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
162 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
165 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
169 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event)); in TEST()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeCallback.java411 public void eventClusterEvent(NanClusterEventInd event) { in eventClusterEvent() argument
413 Log.v(TAG, "eventClusterEvent: eventType=" + event.eventType + ", addr=" in eventClusterEvent()
414 + String.valueOf(HexEncoding.encode(event.addr))); in eventClusterEvent()
418 if (event.eventType == NanClusterEventType.DISCOVERY_MAC_ADDRESS_CHANGED) { in eventClusterEvent()
419 mWifiAwareStateManager.onInterfaceAddressChangeNotification(event.addr); in eventClusterEvent()
420 } else if (event.eventType == NanClusterEventType.STARTED_CLUSTER) { in eventClusterEvent()
422 WifiAwareClientState.CLUSTER_CHANGE_EVENT_STARTED, event.addr); in eventClusterEvent()
423 } else if (event.eventType == NanClusterEventType.JOINED_CLUSTER) { in eventClusterEvent()
425 WifiAwareClientState.CLUSTER_CHANGE_EVENT_JOINED, event.addr); in eventClusterEvent()
427 Log.e(TAG, "eventClusterEvent: invalid eventType=" + event.eventType); in eventClusterEvent()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DRaceConditionReproducer.java120 for (String event : mNextEvents.keySet()) { in numberOfLeafNodes()
121 leaves += mNextEvents.get(event).numberOfLeafNodes(); in numberOfLeafNodes()
133 for (String event : mNextEvents.keySet()) { in stoppedAddingChildrenToTree()
134 if (!mNextEvents.get(event).stoppedAddingChildrenToTree()) return false; in stoppedAddingChildrenToTree()
146 for (String event : mNextEvents.keySet()) { in populatePathToGrowthPoint()
147 if (mNextEvents.get(event).populatePathToGrowthPoint(path)) { in populatePathToGrowthPoint()
148 path.add(0, event); in populatePathToGrowthPoint()
261 public void onEvent(String event) { in onEvent() argument
262 final Semaphore waitObject = tryRegisterEvent(event); in onEvent()
264 waitUntilCanRegister(event, waitObject); in onEvent()
[all …]
/packages/services/Car/tools/emulator/
Dobd2_to_diagjson.py148 event = Event()
149 event.setTimestamp(json.timestamp)
150 event.setType(json.type)
152 event.setIntValue(intValue.id, intValue.value)
154 event.setFloatValue(floatValue.id, floatValue.value)
155 event.setStringValue(json.stringValue)
156 return event
159 event = Event()
160 event.setTimestamp(self.getTimestamp())
161 event.setType(self.getType())
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
49 if (event.drawAsAllday()) { in computeEventRect()
54 int startDay = event.startDay; in computeEventRect()
55 int endDay = event.endDay; in computeEventRect()
61 int startTime = event.startTime; in computeEventRect()
62 int endTime = event.endTime; in computeEventRect()
76 int col = event.getColumn(); in computeEventRect()
77 int maxCols = event.getMaxColumns(); in computeEventRect()
87 event.top = top; in computeEventRect()
88 event.top += (int) (startTime * cellMinuteHeight); in computeEventRect()
[all …]
DCalendarController.java242 void handleEvent(EventInfo event); in handleEvent() argument
406 public void sendEvent(Object sender, final EventInfo event) { in sendEvent() argument
410 Log.d(TAG, eventInfoToString(event)); in sendEvent()
414 if (filteredTypes != null && (filteredTypes.longValue() & event.eventType) != 0) { in sendEvent()
425 if (event.viewType == ViewType.DETAIL) { in sendEvent()
426 event.viewType = mDetailViewType; in sendEvent()
428 } else if (event.viewType == ViewType.CURRENT) { in sendEvent()
429 event.viewType = mViewType; in sendEvent()
430 } else if (event.viewType != ViewType.EDIT) { in sendEvent()
431 mViewType = event.viewType; in sendEvent()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp69 NetworkDnsEventReported event; in fromNetworkDnsEventReportedStr() local
77 dnsQueryEvent = event.mutable_dns_query_events()->add_dns_query_event(); in fromNetworkDnsEventReportedStr()
95 event.set_event_type(static_cast<EventType>(value)); in fromNetworkDnsEventReportedStr()
97 event.set_return_code(static_cast<ReturnCode>(value)); in fromNetworkDnsEventReportedStr()
99 event.set_latency_micros(value); in fromNetworkDnsEventReportedStr()
101 event.set_hints_ai_flags(value); in fromNetworkDnsEventReportedStr()
103 event.set_res_nsend_flags(value); in fromNetworkDnsEventReportedStr()
105 event.set_network_type(static_cast<NetworkType>(value)); in fromNetworkDnsEventReportedStr()
107 event.set_private_dns_modes(static_cast<PrivateDnsModes>(value)); in fromNetworkDnsEventReportedStr()
109 event.set_sampling_rate_denom(value); in fromNetworkDnsEventReportedStr()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/instrumentation/
DMetricsFeatureProvider.java41 final SettingsIntelligenceEvent event = new SettingsIntelligenceEvent(); in logGetSuggestion() local
42 event.eventType = SettingsIntelligenceEvent.GET_SUGGESTION; in logGetSuggestion()
43 event.latencyMillis = latency; in logGetSuggestion()
45 event.suggestionIds = ids.toArray(new String[0]); in logGetSuggestion()
47 logEvent(event); in logGetSuggestion()
51 final SettingsIntelligenceEvent event = new SettingsIntelligenceEvent(); in logDismissSuggestion() local
52 event.eventType = SettingsIntelligenceEvent.DISMISS_SUGGESTION; in logDismissSuggestion()
53 event.latencyMillis = latency; in logDismissSuggestion()
55 event.suggestionIds = new String[]{id}; in logDismissSuggestion()
57 logEvent(event); in logDismissSuggestion()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java156 ICalendar.Component event = ICalendar.parseEvent(text); in testParseBareEvent() local
158 assertEquals("VEVENT", event.getName()); in testParseBareEvent()
159 assertNull(event.getComponents()); in testParseBareEvent()
160 assertEquals(0, event.getPropertyNames().size()); in testParseBareEvent()
171 ICalendar.Component event = ICalendar.parseEvent(text); in testParseEvent1() local
173 assertEquals("VEVENT", event.getName()); in testParseEvent1()
174 assertNull(event.getComponents()); in testParseEvent1()
175 assertEquals(3, event.getPropertyNames().size()); in testParseEvent1()
176 assertEquals(1, event.getProperties("DTSTART").size()); in testParseEvent1()
177 assertEquals("19970714T170000Z", event.getFirstProperty("DTSTART").getValue()); in testParseEvent1()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java170 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER, VehicleDisplay.MAIN, in dispatchesInputEvent_single_toListener_mainDisplay() local
172 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in dispatchesInputEvent_single_toListener_mainDisplay()
173 assertThat(event.getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_single_toListener_mainDisplay()
180 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER, in dispatchesInputEvent_single_toListener_clusterDisplay() local
183 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in dispatchesInputEvent_single_toListener_clusterDisplay()
184 assertThat(event.getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_single_toListener_clusterDisplay()
195 KeyEvent event = inv.getArgument(0); in dispatchesInputEvent_multiple_toListener_mainDisplay()
196 events.add(event.copy()); in dispatchesInputEvent_multiple_toListener_mainDisplay()
219 KeyEvent event = inv.getArgument(0); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
220 events.add(event.copy()); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java59 private void sendMessageToService(HeadsetStackEvent event) { in sendMessageToService() argument
62 service.messageFromNative(event); in sendMessageToService()
66 Log.wtf(TAG, "FATAL: Stack sent event while service is not available: " + event); in sendMessageToService()
75 HeadsetStackEvent event = in onConnectionStateChanged() local
78 sendMessageToService(event); in onConnectionStateChanged()
84 HeadsetStackEvent event = in onAudioStateChanged() local
87 sendMessageToService(event); in onAudioStateChanged()
91 HeadsetStackEvent event = in onVrStateChanged() local
94 sendMessageToService(event); in onVrStateChanged()
98 HeadsetStackEvent event = in onAnswerCall() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioNativeInterface.java74 private void sendMessageToService(LeAudioStackEvent event) { in sendMessageToService() argument
77 service.messageFromNative(event); in sendMessageToService()
79 Log.e(TAG, "Event ignored, service not available: " + event); in sendMessageToService()
91 LeAudioStackEvent event = in onConnectionStateChanged() local
93 event.device = getDevice(address); in onConnectionStateChanged()
94 event.valueInt1 = state; in onConnectionStateChanged()
97 Log.d(TAG, "onConnectionStateChanged: " + event); in onConnectionStateChanged()
99 sendMessageToService(event); in onConnectionStateChanged()
106 LeAudioStackEvent event = in onSetMemberAvailable() local
108 event.device = getDevice(address); in onSetMemberAvailable()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java203 A2dpStackEvent event = (A2dpStackEvent) message.obj; in processMessage() local
204 log("Disconnected: stack event: " + event); in processMessage()
205 if (!mDevice.equals(event.device)) { in processMessage()
206 Log.wtf(TAG, "Device(" + mDevice + "): event mismatch: " + event); in processMessage()
208 switch (event.type) { in processMessage()
210 processConnectionEvent(event.valueInt); in processMessage()
213 processCodecConfigEvent(event.codecStatus); in processMessage()
216 Log.e(TAG, "Disconnected: ignoring stack event: " + event); in processMessage()
227 private void processConnectionEvent(int event) { in processConnectionEvent() argument
228 switch (event) { in processConnectionEvent()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DMoreKeysKeyboardAccessibilityDelegate.java63 protected void onHoverEnter(final MotionEvent event) { in onHoverEnter() argument
65 Log.d(TAG, "onHoverEnter: key=" + getHoverKeyOf(event)); in onHoverEnter()
67 super.onHoverEnter(event); in onHoverEnter()
68 final int actionIndex = event.getActionIndex(); in onHoverEnter()
69 final int x = (int)event.getX(actionIndex); in onHoverEnter()
70 final int y = (int)event.getY(actionIndex); in onHoverEnter()
71 final int pointerId = event.getPointerId(actionIndex); in onHoverEnter()
72 final long eventTime = event.getEventTime(); in onHoverEnter()
77 protected void onHoverMove(final MotionEvent event) { in onHoverMove() argument
78 super.onHoverMove(event); in onHoverMove()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp97 auto event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST() local
99 processor->OnLogEvent(event.get()); in TEST()
102 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids4, attributionTags4, in TEST()
104 processor->OnLogEvent(event.get()); in TEST()
107 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 3, attributionUids2, attributionTags2, in TEST()
109 processor->OnLogEvent(event.get()); in TEST()
112 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 3, attributionUids5, attributionTags5, in TEST()
114 processor->OnLogEvent(event.get()); in TEST()
117 event = CreateAcquireWakelockEvent(bucketStartTimeNs + 4, attributionUids3, attributionTags3, in TEST()
119 processor->OnLogEvent(event.get()); in TEST()
[all …]
DMetricActivation_e2e_test.cpp291 std::unique_ptr<LogEvent> event; in TEST() local
293 event = CreateAppCrashEvent(bucketStartTimeNs + 5, 111); in TEST()
294 processor.OnLogEvent(event.get(), bucketStartTimeNs + 5); in TEST()
300 event = CreateBatterySaverOnEvent(bucketStartTimeNs + 10); in TEST()
301 processor.OnLogEvent(event.get(), bucketStartTimeNs + 10); in TEST()
315 event = CreateAppCrashEvent(bucketStartTimeNs + 15, 222); in TEST()
316 processor.OnLogEvent(event.get(), bucketStartTimeNs + 15); in TEST()
319 event = CreateScreenStateChangedEvent(bucketStartTimeNs + 20, android::view::DISPLAY_STATE_ON); in TEST()
320 processor.OnLogEvent(event.get(), bucketStartTimeNs + 20); in TEST()
332 event = CreateAppCrashEvent(bucketStartTimeNs + NS_PER_SEC * 60 * 2 + 25, 333); in TEST()
[all …]
/packages/apps/Contacts/src/com/android/contacts/logging/
DLogger.java69 final ListEvent event = new ListEvent(); in logListEvent() local
70 event.actionType = actionType; in logListEvent()
71 event.listType = listType; in logListEvent()
72 event.count = count; in logListEvent()
73 event.clickedIndex = clickedIndex; in logListEvent()
74 event.numSelected = numSelected; in logListEvent()
78 logger.logListEventImpl(event); in logListEvent()
89 final QuickContactEvent event = new QuickContactEvent(); in logQuickContactEvent() local
90 event.referrer = referrer == null ? "Unknown" : referrer; in logQuickContactEvent()
91 event.contactType = contactType; in logQuickContactEvent()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pProvDiscEventTest.java44 WifiP2pProvDiscEvent event = in testPbcReqEvent() local
46 assertEquals(WifiP2pProvDiscEvent.PBC_REQ, event.event); in testPbcReqEvent()
47 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testPbcReqEvent()
56 WifiP2pProvDiscEvent event = in testPbcRespEvent() local
58 assertEquals(WifiP2pProvDiscEvent.PBC_RSP, event.event); in testPbcRespEvent()
59 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testPbcRespEvent()
67 WifiP2pProvDiscEvent event = in testEnterPinEvent() local
69 assertEquals(WifiP2pProvDiscEvent.ENTER_PIN, event.event); in testEnterPinEvent()
70 assertEquals(DEVICE_ADDRESS, event.device.deviceAddress); in testEnterPinEvent()
78 WifiP2pProvDiscEvent event = in testShowPinEvent() local
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsDeadKeys.java21 import com.android.inputmethod.event.Event;
31 final Event event; in addCodePoint() local
33 event = Event.createDeadEvent(codePoint, Event.NOT_A_KEY_CODE, null /* next */); in addCodePoint()
35 event = Event.createSoftwareKeypressEvent(codePoint, Event.NOT_A_KEY_CODE, in addCodePoint()
39 add(event); in addCodePoint()
58 for (final Event event : events) { in testDeadCircumflexSimple()
59 mLatinIME.onEvent(event); in testDeadCircumflexSimple()
72 for (final Event event : events) { in testDeadCircumflexBackspace()
73 mLatinIME.onEvent(event); in testDeadCircumflexBackspace()
84 for (final Event event : events) { in testDeadCircumflexFeedback()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarInputService.java90 void onKeyEvent(KeyEvent event); in onKeyEvent() argument
232 private final CarUserManager.UserLifecycleListener mUserLifecycleListener = event -> {
233 Slogf.d(TAG, "CarInputService.onEvent(%s)", event);
234 if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING == event.getEventType()) {
235 updateRotaryServiceSettings(event.getUserId());
252 event -> in CarInputService()
254 .injectInputEvent(event, INJECT_INPUT_EVENT_MODE_ASYNC), in CarInputService()
353 public void onKeyEvent(KeyEvent event, @DisplayTypeEnum int targetDisplayType) { in onKeyEvent() argument
355 switch (event.getKeyCode()) { in onKeyEvent()
357 handleVoiceAssistKey(event); in onKeyEvent()
[all …]

12345678910>>...41