/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionServiceImpl.java | 17 package com.android.messaging.datamodel.action; 55 protected static void startAction(final Action action) { in startAction() argument 58 actionBundle.putParcelable(BUNDLE_ACTION, action); in startAction() 60 action.markStart(); in startAction() 70 protected static void scheduleAction(final Action action, final int requestCode, in scheduleAction() argument 74 actionBundle.putParcelable(BUNDLE_ACTION, action); in scheduleAction() 85 protected static void handleResponseFromBackgroundWorker(final Action action, in handleResponseFromBackgroundWorker() argument 90 actionBundle.putParcelable(BUNDLE_ACTION, action); in handleResponseFromBackgroundWorker() 101 protected static void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker() argument 106 actionBundle.putParcelable(BUNDLE_ACTION, action); in handleFailureFromBackgroundWorker() [all …]
|
D | ActionMonitor.java | 17 package com.android.messaging.datamodel.action; 55 abstract void onActionExecuted(ActionMonitor monitor, final Action action, in onActionExecuted() argument 71 final Action action, final Object data, final Object result); in onActionSucceeded() argument 76 abstract void onActionFailed(ActionMonitor monitor, final Action action, in onActionFailed() argument 89 void onActionStateChanged(Action action, int state); in onActionStateChanged() argument 241 protected void updateState(final Action action, final int expectedOldState, in updateState() argument 256 listener.onActionStateChanged(action, newState); in updateState() 266 static void setState(final Action action, final int expectedOldState, in setState() argument 271 = ActionMonitor.lookupActionMonitor(action.actionKey); in setState() 274 monitor.updateState(action, expectedOldState, newState); in setState() [all …]
|
D | BackgroundWorkerService.java | 17 package com.android.messaging.datamodel.action; 60 for (final Action action : actions) { in queueBackgroundWork() 61 startServiceWithAction(action, 0); in queueBackgroundWork() 80 private static void startServiceWithAction(final Action action, in startServiceWithAction() argument 83 intent.putExtra(EXTRA_ACTION, action); in startServiceWithAction() 115 final Action action = intent.getParcelableExtra(EXTRA_ACTION); in onHandleWork() local 117 doBackgroundWork(action, attempt); in onHandleWork() 130 private void doBackgroundWork(final Action action, final int attempt) { in doBackgroundWork() argument 131 action.markBackgroundWorkStarting(); in doBackgroundWork() 135 TAG, action.getClass().getSimpleName() + "#doBackgroundWork"); in doBackgroundWork() [all …]
|
D | ActionService.java | 17 package com.android.messaging.datamodel.action; 28 final Action action, final int requestCode, final boolean launchesAnActivity) { in makeStartActionPendingIntent() argument 29 return ActionServiceImpl.makeStartActionPendingIntent(context, action, requestCode, in makeStartActionPendingIntent() 36 public void startAction(final Action action) { in startAction() argument 37 ActionServiceImpl.startAction(action); in startAction() 43 public void scheduleAction(final Action action, final int code, in scheduleAction() argument 45 ActionServiceImpl.scheduleAction(action, code, delayMs); in scheduleAction() 52 final Action action, final Bundle response) { in handleResponseFromBackgroundWorker() argument 53 ActionServiceImpl.handleResponseFromBackgroundWorker(action, response); in handleResponseFromBackgroundWorker() 59 protected void handleFailureFromBackgroundWorker(final Action action, in handleFailureFromBackgroundWorker() argument [all …]
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/utils/ |
D | MockMessageNotificationBuilder.java | 320 Action action = mock(Action.class); in getMockReplyAction() local 321 when(action.actionIntent).thenReturn(mPendingIntent); in getMockReplyAction() 322 when(action.title).thenReturn(TITLE_REPLY); in getMockReplyAction() 323 when(action.icon).thenReturn(iconCompat.getResId()); in getMockReplyAction() 324 when(action.getActionIntent()).thenReturn(mPendingIntent); in getMockReplyAction() 325 when(action.getAllowGeneratedReplies()).thenReturn(true); in getMockReplyAction() 326 when(action.getDataOnlyRemoteInputs()).thenReturn(null); in getMockReplyAction() 327 when(action.getExtras()).thenReturn(new Bundle()); in getMockReplyAction() 328 when(action.getRemoteInputs()).thenReturn(new RemoteInput[]{new RemoteInput.Builder( in getMockReplyAction() 330 when(action.getSemanticAction()).thenReturn(semanticAction); in getMockReplyAction() [all …]
|
/packages/apps/Settings/src/com/android/settings/core/instrumentation/ |
D | StatsLogWriter.java | 72 public void action(Context context, int action, Pair<Integer, Object>... taggedData) { in action() method in StatsLogWriter 73 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action() 74 action, in action() 81 public void action(Context context, int action, int value) { in action() method in StatsLogWriter 82 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action() 83 action, in action() 90 public void action(Context context, int action, boolean value) { in action() argument 91 action(SettingsEnums.PAGE_UNKNOWN /* attribution */, in action() 92 action, in action() 99 public void action(Context context, int action, String pkg) { in action() argument [all …]
|
/packages/modules/SdkExtensions/gen_sdk/ |
D | gen_sdk_test.sh | 34 …diff -b ${tmp_dir}/golden_binary <(gen_sdk --action print_binary --database testdata/test_extensio… 42 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER --database ${db} 43 gen_sdk --action new_sdk --sdk 2 --modules MEDIA,IPSEC --database ${db} 44 gen_sdk --action new_sdk --sdk 3 --modules MEDIA_PROVIDER --database ${db} 45 gen_sdk --action new_sdk --sdk 4 --modules SDK_EXTENSIONS,IPSEC --database ${db} 55 gen_sdk --action new_sdk --sdk 1 --database ${db} | grep -q MEDIA_PROVIDER 56 gen_sdk --action new_sdk --sdk 2 --database ${db} | grep -q ART 57 ! gen_sdk --action new_sdk --sdk 3 --database ${db} | grep -q UNKNOWN 66 if gen_sdk --action validate --database ${db}; then 72 gen_sdk --action new_sdk --sdk 1 --modules MEDIA_PROVIDER --database ${db} [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/ |
D | UserPresetsAdapter.java | 58 public void add(Action action) { in add() argument 59 super.add(action); in add() 60 action.setAdapter(this); in add() 63 private void deletePreset(Action action) { in deletePreset() argument 64 FilterRepresentation rep = action.getRepresentation(); in deletePreset() 68 remove(action); in deletePreset() 72 private void changePreset(Action action) { in changePreset() argument 73 FilterRepresentation rep = action.getRepresentation(); in changePreset() 74 rep.setName(action.getName()); in changePreset() 108 Action action = getItem(position); in getView() local [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | PickActivity.java | 216 if (mState.action == ACTION_CREATE) { in setupLayout() 220 } else if (mState.action == ACTION_OPEN_TREE || in setupLayout() 221 mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout() 244 if (mState.action == ACTION_GET_CONTENT in setupLayout() 245 || mState.action == ACTION_OPEN in setupLayout() 246 || mState.action == ACTION_CREATE in setupLayout() 247 || mState.action == ACTION_OPEN_TREE in setupLayout() 248 || mState.action == ACTION_PICK_COPY_DESTINATION) { in setupLayout() 250 /* includeApps= */ mState.action == ACTION_GET_CONTENT, in setupLayout() 262 final String action = intent.getAction(); in includeState() local [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | ActionAdapter.java | 77 public void onActionClicked(Action action); in onActionClicked() argument 85 public void onActionFocused(Action action); in onActionFocused() argument 96 public void onActionSelect(Action action); in onActionSelect() argument 101 public void onActionUnselect(Action action); in onActionUnselect() argument 182 Action action = mActions.get(position); in getView() local 185 description.setText(action.getDescription()); in getView() 187 TextUtils.isEmpty(action.getDescription()) ? View.GONE : View.VISIBLE); in getView() 188 title.setText(action.getTitle()); in getView() 190 checkmarkView.setVisibility(action.isChecked() ? View.VISIBLE : View.INVISIBLE); in getView() 193 setIndicator(indicatorView, action); in getView() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | BottomActionBar.java | 285 BottomAction action) { in bindBottomSheetContentWithAction() argument 286 mContentViewMap.put(action, bottomSheetContent); in bindBottomSheetContentWithAction() 288 setActionClickListener(action, actionView -> { in bindBottomSheetContentWithAction() 290 updateContentViewFor(action); in bindBottomSheetContentWithAction() 420 for (BottomAction action : actions) { in showActions() 421 mActionMap.get(action).setVisibility(VISIBLE); in showActions() 431 for (BottomAction action : actions) { in hideActions() 432 mActionMap.get(action).setVisibility(GONE); in hideActions() 434 if (isExpandable(action) && mSelectedAction == action) { in hideActions() 445 public void focusAccessibilityAction(BottomAction action) { in focusAccessibilityAction() argument [all …]
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/list/ |
D | RroListPanelReducer.kt | 87 action = PanelSelectUserHandleAction(UserHandle.CURRENT), in <lambda>() 92 action = PanelSelectUserHandleAction(UserHandle.SYSTEM), in <lambda>() 104 override fun reduce(panel: Panel, action: PanelAction): Panel = when (action) { in <lambda>() 105 is PanelToggleRroAction -> toggleRro(action) in <lambda>() 106 is PanelSearchTargetPackageAction -> filterByTargetPackage(action) in <lambda>() 107 is PanelSearchRroPackageAction -> filterByRroPackage(action) in <lambda>() 108 is PanelSelectUserHandleAction -> selectUserHandle(action) in <lambda>() 109 else -> throw NotImplementedError("Action $action not implemented for this Panel") in <lambda>() 112 private fun toggleRro(action: PanelToggleRroAction): Panel { in <lambda>() 113 overlayManager.setEnabled(action.rroPackage, action.newState, currentUserHandle) in <lambda>() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | CategoryAdapter.java | 55 Action action = getItem(i); in clear() local 56 action.clearBitmap(); in clear() 70 public void add(Action action) { in add() argument 71 super.add(action); in add() 72 action.setAdapter(this); in add() 97 Action action = getItem(position); in getView() local 98 view.setAction(action, this); in getView() 101 if (action.getType() == Action.SPACER) { in getView() 108 if (action.getType() == Action.ADD_ACTION in getView() 156 Action action = getItem(i); in getTinyPlanet() local [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomBroadcastIntentProcessor.java | 123 String action = intent.getAction(); in processIntent() local 125 if (ACTION_SEND_SMS_FROM_NOTIFICATION.equals(action) || in processIntent() 126 ACTION_CALL_BACK_FROM_NOTIFICATION.equals(action) || in processIntent() 127 ACTION_CLEAR_MISSED_CALLS.equals(action)) { in processIntent() 128 Log.v(this, "Action received: %s.", action); in processIntent() 138 if (ACTION_SEND_SMS_FROM_NOTIFICATION.equals(action)) { in processIntent() 145 } else if (ACTION_CALL_BACK_FROM_NOTIFICATION.equals(action)) { in processIntent() 152 } else if (ACTION_CLEAR_MISSED_CALLS.equals(action)) { in processIntent() 155 } else if(ACTION_DISCONNECTED_SEND_SMS_FROM_NOTIFICATION.equals(action) || in processIntent() 156 ACTION_DISCONNECTED_CALL_BACK_FROM_NOTIFICATION.equals(action)) { in processIntent() [all …]
|
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/ |
D | CarAssistUtils.java | 232 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction() 233 if (action.getSemanticAction() in getMarkAsReadAction() 235 return action; in getMarkAsReadAction() 247 for (NotificationCompat.Action action : getAllActions(notification)) { in getMuteAction() 248 if (action.getSemanticAction() == Action.SEMANTIC_ACTION_MUTE) { in getMuteAction() 249 return action; in getMuteAction() 261 for (NotificationCompat.Action action : getAllActions(notification)) { in getReplyAction() 262 if (action.getSemanticAction() in getReplyAction() 264 return action; in getReplyAction() 278 .filter(action -> action.getSemanticAction() == SEMANTIC_ACTION_REPLY) in replyCallbackHasRemoteInput() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/events/ |
D | Events.kt | 38 fun sendAlarmEvent(@StringRes action: Int, @StringRes label: Int) { in sendAlarmEvent() 39 sendEvent(R.string.category_alarm, action, label) in sendAlarmEvent() 49 fun sendClockEvent(@StringRes action: Int, @StringRes label: Int) { in sendClockEvent() 50 sendEvent(R.string.category_clock, action, label) in sendClockEvent() 60 fun sendTimerEvent(@StringRes action: Int, @StringRes label: Int) { in sendTimerEvent() 61 sendEvent(R.string.category_timer, action, label) in sendTimerEvent() 71 fun sendStopwatchEvent(@StringRes action: Int, @StringRes label: Int) { in sendStopwatchEvent() 72 sendEvent(R.string.category_stopwatch, action, label) in sendStopwatchEvent() 82 fun sendScreensaverEvent(@StringRes action: Int, @StringRes label: Int) { in sendScreensaverEvent() 83 sendEvent(R.string.category_screensaver, action, label) in sendScreensaverEvent() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/viewmodel/ |
D | FingerprintNavigationStep.kt | 58 fun update(state: NavigationState, action: FingerprintAction): FingerprintNavigationStep? in update() 71 action: FingerprintAction, in update() 73 return when (action) { in update() 86 action: FingerprintAction, in update() 100 action: FingerprintAction, in update() 102 return when (action) { in update() 121 action: FingerprintAction, in update() 123 return when (action) { in update() 138 action: FingerprintAction, in update() 140 return when (action) { in update() [all …]
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/rro/unbundled/apprro/ |
D | UnbundledRroPanelReducer.kt | 62 action = UnbundledAppsRroToggleAction( in <lambda>() 75 action: PanelAction, in <lambda>() 76 ): Panel = when (action) { in <lambda>() 77 is UnbundledAppsRroToggleAction -> toggleRRO(panel, action) in <lambda>() 78 else -> throw NotImplementedError("Action $action not implemented for this Panel") in <lambda>() 83 action: UnbundledAppsRroToggleAction, in <lambda>() 85 overlayManager.setEnabled(action.rroPackage, action.newState, UserHandle.CURRENT) in <lambda>() 89 if (item is PanelItem.Switch && item.text == action.rroPackage) { in <lambda>() 91 isChecked = action.newState, in <lambda>() 92 action = action.copy(newState = !action.newState) in <lambda>()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionTestHelpers.java | 17 package com.android.messaging.datamodel.action; 84 Action action; field in ActionTestHelpers.StubChatActionMonitor.StateTransition 87 public StateTransition(final Action action, final int from, final int to) { in StateTransition() argument 88 this.action = action; in StateTransition() 106 protected void updateState(final Action action, final int expectedState, in updateState() argument 108 mTransitions.add(new StateTransition(action, mState, state)); in updateState() 109 super.updateState(action, expectedState, state); in updateState() 123 public final Action action; field in ActionTestHelpers.StubActionService.StubActionServiceCallLog 129 public StubActionServiceCallLog(final Action action, in StubActionServiceCallLog() argument 134 this.action = action; in StubActionServiceCallLog() [all …]
|
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/ |
D | QCActionItemTest.java | 48 QCActionItem action = createAction(QC_TYPE_ACTION_SWITCH, /* action= */ null, in onCreateSwitch_hasCorrectType() local 50 assertThat(action.getType()).isEqualTo(QC_TYPE_ACTION_SWITCH); in onCreateSwitch_hasCorrectType() 55 QCActionItem action = createAction(QC_TYPE_ACTION_TOGGLE, /* action= */ null, in onCreateToggle_hasCorrectType() local 57 assertThat(action.getType()).isEqualTo(QC_TYPE_ACTION_TOGGLE); in onCreateToggle_hasCorrectType() 62 QCActionItem action = createAction(QC_TYPE_ACTION_TOGGLE, /* action= */ null, in onBundle_nullActions_noCrash() local 64 writeAndLoadFromBundle(action); in onBundle_nullActions_noCrash() 70 QCActionItem action = createAction(QC_TYPE_ACTION_TOGGLE, mDefaultAction, in onBundle_nullIcon_noCrash() local 72 writeAndLoadFromBundle(action); in onBundle_nullIcon_noCrash() 78 QCActionItem action = createAction(QC_TYPE_ACTION_SWITCH, mDefaultAction, in onBundle_switch_accurateData() local 80 QCActionItem newAction = writeAndLoadFromBundle(action); in onBundle_switch_accurateData() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app2/src/com/android/cts/netpolicy/hostside/app2/ |
D | MyBroadcastReceiver.java | 71 final String action = intent.getAction(); in onReceive() local 72 switch (action) { in onReceive() 74 increaseCounter(context, action); in onReceive() 77 increaseCounter(context, action); in onReceive() 88 Log.e(TAG, "received unexpected action: " + action); in onReceive() 97 private void increaseCounter(Context context, String action) { in increaseCounter() argument 100 final int value = prefs.getInt(action, 0) + 1; in increaseCounter() 101 Log.d(TAG, "increaseCounter('" + action + "'): setting '" + mName + "' to " + value); in increaseCounter() 102 prefs.edit().putInt(action, value).apply(); in increaseCounter() 105 static int getCounter(Context context, String action, String receiverName) { in getCounter() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactsIntentResolver.java | 58 String action = intent.getAction(); in resolveIntent() local 60 Log.i(TAG, "Called with action: " + action); in resolveIntent() 62 if (UiIntentActions.LIST_DEFAULT.equals(action) ) { in resolveIntent() 64 } else if (UiIntentActions.LIST_ALL_CONTACTS_ACTION.equals(action)) { in resolveIntent() 66 } else if (UiIntentActions.LIST_CONTACTS_WITH_PHONES_ACTION.equals(action)) { in resolveIntent() 68 } else if (UiIntentActions.LIST_STARRED_ACTION.equals(action)) { in resolveIntent() 70 } else if (UiIntentActions.LIST_FREQUENT_ACTION.equals(action)) { in resolveIntent() 72 } else if (UiIntentActions.LIST_STREQUENT_ACTION.equals(action)) { in resolveIntent() 74 } else if (UiIntentActions.LIST_GROUP_ACTION.equals(action)) { in resolveIntent() 77 } else if (UiIntentActions.ACTION_SELECT_ITEMS.equals(action)) { in resolveIntent() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupGuidedStepFragment.java | 123 public boolean performAccessibilityAction(View host, int action, Bundle args) { in onResume() 124 if (action == AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS in onResume() 132 return super.performAccessibilityAction(host, action, args); in onResume() 162 public void onGuidedActionClicked(GuidedAction action) { 163 if (!action.isFocusable()) { 168 SetupActionHelper.onActionClick(this, getActionCategory(), (int) action.getId()); 182 GuidedAction action) { 183 if (!mAccessibilityMode || findActionPositionById(action.getId()) == 0) { 189 public boolean performAccessibilityAction(View host, int action, Bundle args) { 190 if ((action == AccessibilityNodeInfo.ACTION_FOCUS [all …]
|
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/ |
D | QCRowView.java | 284 QCActionItem action = row.getStartItems().get(i); in setRow() local 285 initActionItem(mStartItemsContainer, mStartItemsContainer.getChildAt(i), action); in setRow() 300 QCActionItem action = row.getEndItems().get(i); in setRow() local 301 initActionItem(mEndItemsContainer, mEndItemsContainer.getChildAt(i), action); in setRow() 316 @NonNull QCActionItem action) { in initActionItem() argument 317 if (action.getType().equals(QC_TYPE_ACTION_SWITCH)) { in initActionItem() 318 initSwitchView(action, root, actionView); in initActionItem() 320 initToggleView(action, root, actionView); in initActionItem() 324 private void initSwitchView(QCActionItem action, ViewGroup root, View actionView) { in initSwitchView() argument 331 CarUiUtils.makeAllViewsEnabled(switchView, action.isEnabled()); in initSwitchView() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/ |
D | FingerprintEnrollEnrollingViewModel.java | 128 final int action = FINGERPRINT_ENROLL_ENROLLING_CANCELED_BECAUSE_USER_SKIP; in onCancelledDueToOnSkipPressed() local 130 Log.d(TAG, "onSkipButtonClick, post action " + action); in onCancelledDueToOnSkipPressed() 133 mActionLiveData.postValue(action); in onCancelledDueToOnSkipPressed() 140 final int action = FINGERPRINT_ENROLL_ENROLLING_ACTION_DONE; in onEnrollingDone() local 142 Log.d(TAG, "onEnrollingDone, post action " + action); in onEnrollingDone() 144 mActionLiveData.postValue(action); in onEnrollingDone() 162 final int action = FINGERPRINT_ENROLL_ENROLLING_CANCELED_BECAUSE_BACK_PRESSED; in onCancelledDueToOnBackPressed() local 164 Log.d(TAG, "onCancelledEventReceivedAfterOnBackPressed, post action " + action); in onCancelledDueToOnBackPressed() 167 mActionLiveData.postValue(action); in onCancelledDueToOnBackPressed() 174 final int action = FINGERPRINT_ENROLL_ENROLLING_ACTION_SHOW_ICON_TOUCH_DIALOG; in showIconTouchDialog() local [all …]
|