/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | NativeInterface.java | 84 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED); in onConnectionStateChanged() local 85 event.valueInt = state; in onConnectionStateChanged() 86 event.valueInt2 = peerFeat; in onConnectionStateChanged() 87 event.valueInt3 = chldFeat; in onConnectionStateChanged() 88 event.device = getDevice(address); in onConnectionStateChanged() 92 Log.d(TAG, "Device addr " + event.device.getAddress() + " State " + state); in onConnectionStateChanged() 96 service.messageFromNative(event); in onConnectionStateChanged() 98 Log.w(TAG, "Ignoring message because service not available: " + event); in onConnectionStateChanged() 103 StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() local 104 event.valueInt = state; in onAudioStateChanged() [all …]
|
D | HeadsetClientStateMachine.java | 885 StackEvent event = (StackEvent) message.obj; in processMessage() local 887 Log.d(TAG, "Stack event type: " + event.type); in processMessage() 889 switch (event.type) { in processMessage() 892 Log.d(TAG, "Disconnected: Connection " + event.device in processMessage() 893 + " state changed:" + event.valueInt); in processMessage() 895 processConnectionEvent(event.valueInt, event.device); in processMessage() 898 Log.e(TAG, "Disconnected: Unexpected stack event: " + event.type); in processMessage() 981 StackEvent event = (StackEvent) message.obj; in processMessage() local 983 Log.d(TAG, "Connecting: event type: " + event.type); in processMessage() 985 switch (event.type) { in processMessage() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 92 void modifyUserEvent(LauncherEvent event); in modifyUserEvent() argument 99 …public static boolean fillInLogContainerData(LauncherLogProto.LauncherEvent event, @Nullable View … in fillInLogContainerData() argument 106 provider.fillInLogContainerData(v, itemInfo, event.srcTarget[0], event.srcTarget[1]); in fillInLogContainerData() 128 LauncherEvent event = newLauncherEvent(newTouchAction(Action.Touch.TAP), in logAppLaunch() local 131 if (fillInLogContainerData(event, v)) { in logAppLaunch() 133 mDelegate.modifyUserEvent(event); in logAppLaunch() 135 fillIntentInfo(event.srcTarget[0], intent); in logAppLaunch() 137 dispatchUserEvent(event, intent); in logAppLaunch() 146 LauncherEvent event = newLauncherEvent(newTouchAction(action), // TAP or SWIPE or FLING in logTaskLaunchOrDismiss() local 150 event.action.dir = direction; in logTaskLaunchOrDismiss() [all …]
|
D | EventLogArray.java | 47 public void addLog(String event) { in addLog() argument 48 addLog(TYPE_ONE_OFF, event, 0); in addLog() 51 public void addLog(String event, int extras) { in addLog() argument 52 addLog(TYPE_INTEGER, event, extras); in addLog() 55 public void addLog(String event, float extras) { in addLog() argument 56 addLog(TYPE_FLOAT, event, extras); in addLog() 59 public void addLog(String event, boolean extras) { in addLog() argument 60 addLog(extras ? TYPE_BOOL_TRUE : TYPE_BOOL_FALSE, event, 0); in addLog() 63 private void addLog(int type, String event, float extras) { in addLog() argument 67 if (isEntrySame(logs[last], type, event) && isEntrySame(logs[secondLast], type, event)) { in addLog() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
D | RaceConditionReproducer.java | 109 for (String event : mNextEvents.keySet()) { in numberOfLeafNodes() 110 leaves += mNextEvents.get(event).numberOfLeafNodes(); in numberOfLeafNodes() 122 for (String event : mNextEvents.keySet()) { in stoppedAddingChildrenToTree() 123 if (!mNextEvents.get(event).stoppedAddingChildrenToTree()) return false; in stoppedAddingChildrenToTree() 135 for (String event : mNextEvents.keySet()) { in populatePathToGrowthPoint() 136 if (mNextEvents.get(event).populatePathToGrowthPoint(path)) { in populatePathToGrowthPoint() 137 path.add(0, event); in populatePathToGrowthPoint() 249 public void onEvent(String event) { in onEvent() argument 250 final Semaphore waitObject = tryRegisterEvent(event); in onEvent() 252 waitUntilCanRegister(event, waitObject); in onEvent() [all …]
|
/packages/services/Car/tools/emulator/ |
D | obd2_to_diagjson.py | 148 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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | InputHalServiceTest.java | 116 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/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 48 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 …]
|
D | CalendarController.java | 242 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/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 156 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/ |
D | MetricsFeatureProvider.java | 41 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/ |
D | HeadsetNativeInterface.java | 59 private void sendMessageToService(HeadsetStackEvent event) { in sendMessageToService() argument 62 service.messageFromNative(event); in sendMessageToService() 66 Log.wtfStack(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 …]
|
D | HeadsetStateMachine.java | 484 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage() local 485 stateLogD("STACK_EVENT: " + event); in processMessage() 486 if (!mDevice.equals(event.device)) { in processMessage() 488 + "], event: " + event); in processMessage() 491 switch (event.type) { in processMessage() 493 processConnectionEvent(message, event.valueInt); in processMessage() 496 stateLogE("Unexpected stack event: " + event); in processMessage() 591 HeadsetStackEvent event = (HeadsetStackEvent) message.obj; in processMessage() local 592 stateLogD("STACK_EVENT: " + event); in processMessage() 593 if (!mDevice.equals(event.device)) { in processMessage() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 199 A2dpStackEvent event = (A2dpStackEvent) message.obj; in processMessage() local 200 log("Disconnected: stack event: " + event); in processMessage() 201 if (!mDevice.equals(event.device)) { in processMessage() 202 Log.wtfStack(TAG, "Device(" + mDevice + "): event mismatch: " + event); in processMessage() 204 switch (event.type) { in processMessage() 206 processConnectionEvent(event.valueInt); in processMessage() 209 processCodecConfigEvent(event.codecStatus); in processMessage() 212 Log.e(TAG, "Disconnected: ignoring stack event: " + event); in processMessage() 223 private void processConnectionEvent(int event) { in processConnectionEvent() argument 224 switch (event) { in processConnectionEvent() [all …]
|
D | A2dpNativeInterface.java | 154 private void sendMessageToService(A2dpStackEvent event) { in sendMessageToService() argument 157 service.messageFromNative(event); in sendMessageToService() 159 Log.w(TAG, "Event ignored, service not available: " + event); in sendMessageToService() 168 A2dpStackEvent event = in onConnectionStateChanged() local 170 event.device = getDevice(address); in onConnectionStateChanged() 171 event.valueInt = state; in onConnectionStateChanged() 174 Log.d(TAG, "onConnectionStateChanged: " + event); in onConnectionStateChanged() 176 sendMessageToService(event); in onConnectionStateChanged() 180 A2dpStackEvent event = new A2dpStackEvent(A2dpStackEvent.EVENT_TYPE_AUDIO_STATE_CHANGED); in onAudioStateChanged() local 181 event.device = getDevice(address); in onAudioStateChanged() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | MoreKeysKeyboardAccessibilityDelegate.java | 63 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/ |
D | Logger.java | 69 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/ |
D | InputLogicTestsDeadKeys.java | 21 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/ |
D | StateReadyForCapture.java | 31 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/ |
D | CarSensorEventFactory.java | 29 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/ |
D | DefaultOmtpEventHandler.java | 32 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/ |
D | DragGestureDetector.java | 44 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/ |
D | TouchPointView.java | 66 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/ |
D | TouchPointView.java | 63 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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidStateMachine.java | 176 HearingAidStackEvent event = (HearingAidStackEvent) message.obj; in processMessage() local 178 Log.d(TAG, "Disconnected: stack event: " + event); in processMessage() 180 if (!mDevice.equals(event.device)) { in processMessage() 181 Log.wtfStack(TAG, "Device(" + mDevice + "): event mismatch: " + event); in processMessage() 183 switch (event.type) { in processMessage() 185 processConnectionEvent(event.valueInt1); in processMessage() 188 Log.e(TAG, "Disconnected: ignoring stack event: " + event); in processMessage() 282 HearingAidStackEvent event = (HearingAidStackEvent) message.obj; in processMessage() local 283 log("Connecting: stack event: " + event); in processMessage() 284 if (!mDevice.equals(event.device)) { in processMessage() [all …]
|