Home
last modified time | relevance | path

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

12345678910>>...30

/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 …]
DHeadsetClientStateMachine.java851 StackEvent event = (StackEvent) message.obj; in processMessage() local
852 logD("Stack event type: " + event.type); in processMessage()
853 switch (event.type) { in processMessage()
855 logD("Disconnected: Connection " + event.device in processMessage()
856 + " state changed:" + event.valueInt); in processMessage()
857 processConnectionEvent(event.valueInt, event.device); in processMessage()
860 Log.e(TAG, "Disconnected: Unexpected stack event: " + event.type); in processMessage()
938 StackEvent event = (StackEvent) message.obj; in processMessage() local
939 logD("Connecting: event type: " + event.type); in processMessage()
940 switch (event.type) { in processMessage()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DRaceConditionReproducer.java107 for (String event : mNextEvents.keySet()) { in numberOfLeafNodes()
108 leaves += mNextEvents.get(event).numberOfLeafNodes(); in numberOfLeafNodes()
120 for (String event : mNextEvents.keySet()) { in stoppedAddingChildrenToTree()
121 if (!mNextEvents.get(event).stoppedAddingChildrenToTree()) return false; in stoppedAddingChildrenToTree()
133 for (String event : mNextEvents.keySet()) { in populatePathToGrowthPoint()
134 if (mNextEvents.get(event).populatePathToGrowthPoint(path)) { in populatePathToGrowthPoint()
135 path.add(0, event); in populatePathToGrowthPoint()
247 public void onEvent(String event) { in onEvent() argument
248 final Semaphore waitObject = tryRegisterEvent(event); in onEvent()
250 waitUntilCanRegister(event, waitObject); in onEvent()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DUserEventDispatcher.java95 void modifyUserEvent(LauncherEvent event); in modifyUserEvent() argument
103 public boolean fillInLogContainerData(LauncherLogProto.LauncherEvent event, @Nullable View v) { in fillInLogContainerData() argument
110 final Target target = event.srcTarget[0]; in fillInLogContainerData()
111 final Target targetParent = event.srcTarget[1]; in fillInLogContainerData()
139 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logAppLaunch() local
142 if (fillInLogContainerData(event, v)) { in logAppLaunch()
144 mDelegate.modifyUserEvent(event); in logAppLaunch()
146 fillIntentInfo(event.srcTarget[0], intent); in logAppLaunch()
148 dispatchUserEvent(event, intent); in logAppLaunch()
161 LauncherEvent event = newLauncherEvent(newTouchAction(action), // TAP or SWIPE or FLING in logTaskLaunchOrDismiss() local
[all …]
DEventLogArray.java50 public void addLog(String event) { in addLog() argument
51 addLog(TYPE_ONE_OFF, event, 0); in addLog()
54 public void addLog(String event, int extras) { in addLog() argument
55 addLog(TYPE_INTEGER, event, extras); in addLog()
58 public void addLog(String event, boolean extras) { in addLog() argument
59 addLog(extras ? TYPE_BOOL_TRUE : TYPE_BOOL_FALSE, event, 0); in addLog()
62 private void addLog(int type, String event, float extras) { in addLog() argument
66 if (isEntrySame(logs[last], type, event) && isEntrySame(logs[secondLast], type, event)) { in addLog()
67 logs[last].update(type, event, extras, mLogId); in addLog()
75 logs[nextIndex].update(type, event, extras, mLogId); in addLog()
[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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java116 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_single_toListener() local
117 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in dispatchesInputEvent_single_toListener()
118 assertThat(event.getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_single_toListener()
129 KeyEvent event = inv.getArgument(0); in dispatchesInputEvent_multiple_toListener()
130 events.add(event.copy()); in dispatchesInputEvent_multiple_toListener()
149 KeyEvent event = dispatchSingleEvent(Key.DOWN, KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys() local
150 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeys()
151 assertThat(event.getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in handlesRepeatedKeys()
152 assertThat(event.getEventTime()).isEqualTo(0L); in handlesRepeatedKeys()
153 assertThat(event.getDownTime()).isEqualTo(0L); in handlesRepeatedKeys()
[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/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/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/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 …]
DHeadsetStateMachine.java489 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage() local
490 stateLogD("STACK_EVENT: " + event); in processMessage()
491 if (!mDevice.equals(event.device)) { in processMessage()
493 + "], event: " + event); in processMessage()
496 switch (event.type) { in processMessage()
498 processConnectionEvent(message, event.valueInt); in processMessage()
501 stateLogE("Unexpected stack event: " + event); in processMessage()
597 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage() local
598 stateLogD("STACK_EVENT: " + event); in processMessage()
599 if (!mDevice.equals(event.device)) { in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java200 A2dpStackEvent event = (A2dpStackEvent) message.obj; in processMessage() local
201 log("Disconnected: stack event: " + event); in processMessage()
202 if (!mDevice.equals(event.device)) { in processMessage()
203 Log.wtf(TAG, "Device(" + mDevice + "): event mismatch: " + event); in processMessage()
205 switch (event.type) { in processMessage()
207 processConnectionEvent(event.valueInt); in processMessage()
210 processCodecConfigEvent(event.codecStatus); in processMessage()
213 Log.e(TAG, "Disconnected: ignoring stack event: " + event); in processMessage()
224 private void processConnectionEvent(int event) { in processConnectionEvent() argument
225 switch (event) { in processConnectionEvent()
[all …]
DA2dpNativeInterface.java156 private void sendMessageToService(A2dpStackEvent event) { in sendMessageToService() argument
159 service.messageFromNative(event); in sendMessageToService()
161 Log.w(TAG, "Event ignored, service not available: " + event); in sendMessageToService()
170 A2dpStackEvent event = in onConnectionStateChanged() local
172 event.device = getDevice(address); in onConnectionStateChanged()
173 event.valueInt = state; in onConnectionStateChanged()
176 Log.d(TAG, "onConnectionStateChanged: " + event); in onConnectionStateChanged()
178 sendMessageToService(event); in onConnectionStateChanged()
182 A2dpStackEvent event = new A2dpStackEvent(A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() local
183 event.device = getDevice(address); in onAudioStateChanged()
[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/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/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/apps/Camera2/src/com/android/camera/captureintent/state/
DStateReadyForCapture.java31 import com.android.camera.captureintent.event.EventCameraBusy;
32 import com.android.camera.captureintent.event.EventCameraQuickExpose;
33 import com.android.camera.captureintent.event.EventCameraReady;
34 import com.android.camera.captureintent.event.EventClickOnCameraKey;
35 import com.android.camera.captureintent.event.EventFastPictureBitmapAvailable;
36 import com.android.camera.captureintent.event.EventOnSurfaceTextureUpdated;
37 import com.android.camera.captureintent.event.EventOnTextureViewLayoutChanged;
38 import com.android.camera.captureintent.event.EventPause;
39 import com.android.camera.captureintent.event.EventPictureCompressed;
40 import com.android.camera.captureintent.event.EventPictureDecoded;
[all …]
/packages/services/Car/service/src/com/android/car/
DCarSensorEventFactory.java29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createBooleanEvent() local
30 event.intValues[0] = value ? 1 : 0; in createBooleanEvent()
31 return event; in createBooleanEvent()
35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createIntEvent() local
36 event.intValues[0] = value; in createIntEvent()
37 return event; in createIntEvent()
50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); in createInt64VecEvent() local
52 event.longValues[i] = value.get(i); in createInt64VecEvent()
54 return event; in createInt64VecEvent()
58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); in createFloatEvent() local
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DDefaultOmtpEventHandler.java32 OmtpEvents event) { in handleEvent() argument
33 switch (event.getType()) { in handleEvent()
35 handleConfigurationEvent(context, status, event); in handleEvent()
38 handleDataChannelEvent(context, status, event); in handleEvent()
41 handleNotificationChannelEvent(context, config, status, event); in handleEvent()
44 handleOtherEvent(context, status, event); in handleEvent()
47 VvmLog.wtf(TAG, "invalid event type " + event.getType() + " for " + event); in handleEvent()
52 Context context, VoicemailStatus.Editor status, OmtpEvents event) { in handleConfigurationEvent() argument
53 switch (event) { in handleConfigurationEvent()
85 VvmLog.wtf(TAG, "invalid configuration event " + event); in handleConfigurationEvent()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DDragGestureDetector.java44 private void computeAveragePosition(MotionEvent event, float[] position) { in computeAveragePosition() argument
45 computeAveragePosition(event, position, -1); in computeAveragePosition()
48 private void computeAveragePosition(MotionEvent event, float[] position, int ignore) { in computeAveragePosition() argument
49 final int pointerCount = event.getPointerCount(); in computeAveragePosition()
55 position[0] += event.getX(p); in computeAveragePosition()
56 position[1] += event.getY(p); in computeAveragePosition()
64 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
65 int index = event.getActionIndex(); in onTouchEvent()
66 switch (event.getActionMasked()) { in onTouchEvent()
68 computeAveragePosition(event, mLast); in onTouchEvent()
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/touch/
DTouchPointView.java66 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
68 logTouchEvents(event); in onTouchEvent()
72 if (event.getActionMasked() == MotionEvent.ACTION_UP) { in onTouchEvent()
76 for (int i = 0; i < event.getPointerCount(); i++) { in onTouchEvent()
77 int pointerId = event.getPointerId(i); in onTouchEvent()
78 int pointerIndex = event.findPointerIndex(pointerId); in onTouchEvent()
80 finger.point = new Point((int) event.getX(pointerIndex), in onTouchEvent()
81 (int) event.getY(pointerIndex)); in onTouchEvent()
90 private void logTouchEvents(MotionEvent event) { in logTouchEvents() argument
91 if (event.getActionMasked() != MotionEvent.ACTION_UP) { in logTouchEvents()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DTouchPointView.java63 public boolean onTouchEvent(MotionEvent event) { in onTouchEvent() argument
65 logTouchEvents(event); in onTouchEvent()
69 if (event.getActionMasked() == MotionEvent.ACTION_UP) { in onTouchEvent()
73 for (int i = 0; i < event.getPointerCount(); i++) { in onTouchEvent()
74 int pointerId = event.getPointerId(i); in onTouchEvent()
75 int pointerIndex = event.findPointerIndex(pointerId); in onTouchEvent()
77 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent()
86 private void logTouchEvents(MotionEvent event) { in logTouchEvents() argument
87 if (event.getActionMasked() != MotionEvent.ACTION_UP) { in logTouchEvents()
91 for (int i = 0; i < event.getPointerCount(); i++) { in logTouchEvents()
[all …]

12345678910>>...30