/packages/apps/Camera2/src/com/android/camera/ |
D | FatalErrorHandlerImpl.java | 44 Reason reason = Reason.MEDIA_STORAGE_FAILURE; in onMediaStorageFailure() local 45 boolean finishActivity = reason.doesFinishActivity(); in onMediaStorageFailure() 46 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onMediaStorageFailure() 60 Reason reason = Reason.CANNOT_CONNECT_TO_CAMERA; in onCameraOpenFailure() local 61 boolean finishActivity = reason.doesFinishActivity(); in onCameraOpenFailure() 62 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onCameraOpenFailure() 76 Reason reason = Reason.CANNOT_CONNECT_TO_CAMERA; in onCameraReconnectFailure() local 77 boolean finishActivity = reason.doesFinishActivity(); in onCameraReconnectFailure() 78 CameraUtil.showError(mActivity, reason.getDialogMsgId(), reason.getFeedbackMsgId(), in onCameraReconnectFailure() 92 Reason reason = Reason.CANNOT_CONNECT_TO_CAMERA; in onGenericCameraAccessFailure() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.java | 85 final String reason = mContext.getString(R.string.invalid_time, hour, minutes, in run() local 87 notifyFailureAndLog(reason, mActivity); in run() 100 final String reason = mContext.getString(R.string.no_alarm_at, hour24, minutes); in run() 101 notifyFailureAndLog(reason, mActivity); in run() 122 final String reason = mContext.getString(R.string.no_scheduled_alarms); in run() 123 notifyFailureAndLog(reason, mActivity); in run() 141 final String reason = mContext.getString(R.string.no_label_specified); in run() 142 notifyFailureAndLog(reason, mActivity); in run() 154 final String reason = mContext.getString(R.string.no_alarms_with_label); in run() 155 notifyFailureAndLog(reason, mActivity); in run() [all …]
|
D | HandleApiCalls.java | 131 final String reason = context.getString(R.string.no_alarm_scheduled_for_this_time); in dismissAlarm() local 132 Controller.getController().notifyVoiceFailure(activity, reason); in dismissAlarm() 155 final String reason = context.getString( in dismissAlarmInstance() local 157 Controller.getController().notifyVoiceFailure(activity, reason); in dismissAlarmInstance() 162 final String reason = context.getString(R.string.alarm_is_dismissed, time); in dismissAlarmInstance() local 163 Controller.getController().notifyVoiceSuccess(activity, reason); in dismissAlarmInstance() 185 final String reason = mContext.getString(R.string.no_scheduled_alarms); in doInBackground() local 186 Controller.getController().notifyVoiceFailure(mActivity, reason); in doInBackground() 271 final String reason = mContext.getString(R.string.no_firing_alarms); in doInBackground() local 272 Controller.getController().notifyVoiceFailure(mActivity, reason); in doInBackground() [all …]
|
/packages/apps/Camera2/src/com/android/camera/stats/profiler/ |
D | ProfileBase.java | 53 public final void mark(String reason) { in mark() argument 55 onMark(getTotalMillis(time), getTimeFromLastMillis(time), reason); in mark() local 67 public final void stop(String reason) { in stop() argument 69 onStop(getTotalMillis(time), getTimeFromLastMillis(time), reason); in stop() local 88 protected final String format(double totalMillis, String event, String reason) { in format() argument 94 reason); in format() 101 …protected final String format(double totalMillis, String event, double lastMillis, String reason) { in format() argument 108 reason); in format() 120 protected void onMark(double totalMillis, double lastMillis, String reason) { } in onMark() argument 132 protected void onStop(double totalMillis, double lastMillis, String reason) { } in onStop() argument
|
D | GuardingProfile.java | 43 protected void onMark(double totalMillis, double lastMillis, String reason) { in onMark() argument 45 mGuardWriter.write(format(totalMillis, "GUARD", lastMillis, reason)); in onMark() 47 mVerboseWriter.write(format(totalMillis, "GUARD", lastMillis, reason)); in onMark() 61 protected void onStop(double totalMillis, double lastMillis, String reason) { in onStop() argument 62 onMark(totalMillis, lastMillis, reason); in onStop()
|
D | LoggingProfile.java | 39 protected void onMark(double totalMillis, double lastMillis, String reason) { in onMark() argument 40 mWriter.write(format(totalMillis, "MARK", lastMillis, reason)); in onMark() 49 protected void onStop(double totalMillis, double lastMillis, String reason) { in onStop() argument 50 mWriter.write(format(totalMillis, "END", lastMillis, reason)); in onStop()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | CallForwardInfoUtil.java | 42 public static CallForwardInfo infoForReason(CallForwardInfo[] infos, int reason) { in infoForReason() argument 49 if (infos[i].reason == reason) { in infoForReason() 83 info.reason, in setCallForwardingOption() 95 public static CallForwardInfo getCallForwardInfo(CallForwardInfo[] infos, int reason) { in getCallForwardInfo() argument 110 info.reason = reason; in getCallForwardInfo() 113 if (DBG) Log.d(LOG_TAG, "Created default info for reason: " + reason); in getCallForwardInfo() 119 if (DBG) Log.d(LOG_TAG, "Retrieved " + info.toString() + " for " + reason); in getCallForwardInfo()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NumberVerificationManager.java | 118 int reason = -1; in checkNumberVerificationFeasibility() local 121 reason = NumberVerificationCallback.REASON_CONCURRENT_REQUESTS; in checkNumberVerificationFeasibility() 129 reason = NumberVerificationCallback.REASON_IN_EMERGENCY_CALL; in checkNumberVerificationFeasibility() 133 reason = NumberVerificationCallback.REASON_IN_ECBM; in checkNumberVerificationFeasibility() 149 reason = NumberVerificationCallback.REASON_NETWORK_NOT_AVAILABLE; in checkNumberVerificationFeasibility() 153 reason = NumberVerificationCallback.REASON_TOO_MANY_CALLS; in checkNumberVerificationFeasibility() 157 if (reason >= 0) { in checkNumberVerificationFeasibility() 159 callback.onVerificationFailed(reason); in checkNumberVerificationFeasibility()
|
D | CallForwardEditPreference.java | 47 int reason; field in CallForwardEditPreference 71 reason = a.getInt(R.styleable.CallForwardEditPreference_reason, in CallForwardEditPreference() 75 Log.d(LOG_TAG, "mServiceClass=" + mServiceClass + ", reason=" + reason); in CallForwardEditPreference() 130 if (reason == CommandsInterface.CF_REASON_NO_REPLY) { in onDialogClosed() 150 Log.d(LOG_TAG, "reason=" + reason + ", action=" + action in onDialogClosed() 160 reason, in onDialogClosed() 220 mPhone.getCallForwardingOption(reason, mServiceClass, in startCallForwardOptionsQuery() 395 switch (reason) { in handleGetCFResponse() 431 mPhone.getCallForwardingOption(reason, mServiceClass, in handleSetCFResponse() 530 newCallForwardInfo[0].reason = reason; in makeCallForwardInfo()
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/suggestion/ |
D | SuggestionProvider.java | 53 @NonNull public final Reason reason; field in SuggestionProvider.Suggestion 58 @NonNull Reason reason, in Suggestion() argument 61 this.reason = Assert.isNotNull(reason); in Suggestion() 92 switch (suggestion.reason) { in getHint() 99 LogUtil.w("CallingAccountSelector.getHint", "unhandled reason " + suggestion.reason); in getHint()
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
D | TrampolineActivity.java | 87 final int reason; in onCreate() local 94 reason = cursor.getInt(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_REASON)); in onCreate() 106 Log.d(Constants.TAG, "Found " + id + " with status " + status + ", reason " + reason); in onCreate() 115 if (reason == DownloadManager.PAUSED_QUEUED_FOR_WIFI) { in onCreate() 132 FailedDialogFragment.show(getFragmentManager(), id, reason); in onCreate() local 207 public static void show(FragmentManager fm, long id, int reason) { in show() argument 211 args.putInt(KEY_REASON, reason); in show() 225 final int reason = getArguments().getInt(KEY_REASON); in onCreateDialog() local 231 switch (reason) { in onCreateDialog()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | BondStateMachine.java | 210 int reason = getUnbondReasonFromHALCode(msg.arg2); in processMessage() local 213 && reason == BluetoothDevice.BOND_SUCCESS) { in processMessage() 214 reason = BluetoothDevice.UNBOND_REASON_REMOVED; in processMessage() 216 sendIntent(dev, newState, reason); in processMessage() 363 void sendIntent(BluetoothDevice device, int newState, int reason) { in sendIntent() argument 392 newState, BluetoothProtoEnums.BOND_SUB_STATE_UNKNOWN, reason, in sendIntent() 421 intent.putExtra(BluetoothDevice.EXTRA_REASON, reason); in sendIntent() 587 private int getUnbondReasonFromHALCode(int reason) { in getUnbondReasonFromHALCode() argument 588 if (reason == AbstractionLayer.BT_STATUS_SUCCESS) { in getUnbondReasonFromHALCode() 590 } else if (reason == AbstractionLayer.BT_STATUS_RMT_DEV_DOWN) { in getUnbondReasonFromHALCode() [all …]
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 431 public void showMenu(@MenuShowReason int reason) { in showMenu() argument 433 mMenu.show(reason); in showMenu() 794 public void updateChannelBannerAndShowIfNeeded(@ChannelBannerUpdateReason int reason) { in updateChannelBannerAndShowIfNeeded() argument 795 if (DEBUG) Log.d(TAG, "updateChannelBannerAndShowIfNeeded(reason=" + reason + ")"); in updateChannelBannerAndShowIfNeeded() 797 && reason != UPDATE_CHANNEL_BANNER_REASON_TUNE in updateChannelBannerAndShowIfNeeded() 798 && reason != UPDATE_CHANNEL_BANNER_REASON_TUNE_FAST) { in updateChannelBannerAndShowIfNeeded() 804 if (reason == UPDATE_CHANNEL_BANNER_REASON_TUNE_FAST) { in updateChannelBannerAndShowIfNeeded() 812 } else if (reason == UPDATE_CHANNEL_BANNER_REASON_TUNE) { in updateChannelBannerAndShowIfNeeded() 835 && reason == UPDATE_CHANNEL_BANNER_REASON_LOCK_OR_UNLOCK) { in updateChannelBannerAndShowIfNeeded() 837 } else if (reason == UPDATE_CHANNEL_BANNER_REASON_UPDATE_STREAM_INFO) { in updateChannelBannerAndShowIfNeeded() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Metrics.java | 46 public static void logScan(@NonNull String volumeName, int reason, long itemCount, in logScan() argument 50 volumeName, translateReason(reason), itemCount, durationMillis, insertCount, in logScan() 59 translateVolumeName(volumeName), reason, itemCount, normalizedDurationMillis, in logScan() 123 public static String translateReason(int reason) { in translateReason() argument 124 switch (reason) { in translateReason() 129 default: return String.valueOf(reason); in translateReason()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/ |
D | WifiP2pSettings.java | 243 public void onFailure(int reason) { in onActivityCreated() 264 public void onFailure(int reason) { in onActivityCreated() 265 if (DBG) Log.d(TAG, " remove group fail " + reason); in onActivityCreated() 284 public void onFailure(int reason) { in onActivityCreated() 285 if (DBG) Log.d(TAG, " cancel connect fail " + reason); in onActivityCreated() 308 public void onFailure(int reason) { in onActivityCreated() 309 if (DBG) Log.d(TAG, " delete group fail " + reason); in onActivityCreated() 452 public void onFailure(int reason) { in onPreferenceTreeClick() 453 Log.e(TAG, " connect fail " + reason); in onPreferenceTreeClick() 620 public void onFailure(int reason) { in startSearch() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingTask.java | 258 public void onError(int reason) { in onError() argument 259 Log.i(TAG, "Recording failed with code=" + reason + " for " + mScheduledRecording); in onError() 264 switch (reason) { in onError() 352 private void failAndQuit(Integer reason) { in failAndQuit() argument 353 Log.w(TAG, "Recording " + mScheduledRecording + " failed with code " + reason); in failAndQuit() 354 updateRecordingState(ScheduledRecording.STATE_RECORDING_FAILED, reason); in failAndQuit() 463 @ScheduledRecording.RecordingState int state, @Nullable Integer reason) { in updateRecordingState() argument 485 && reason != null) { in updateRecordingState() 486 builder.setFailedReason(reason); in updateRecordingState()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettings.java | 253 public void onFailure(int reason) { in onActivityCreated() 274 public void onFailure(int reason) { in onActivityCreated() 275 if (DBG) Log.d(TAG, " remove group fail " + reason); in onActivityCreated() 294 public void onFailure(int reason) { in onActivityCreated() 295 if (DBG) Log.d(TAG, " cancel connect fail " + reason); in onActivityCreated() 318 public void onFailure(int reason) { in onActivityCreated() 319 if (DBG) Log.d(TAG, " delete group fail " + reason); in onActivityCreated() 456 public void onFailure(int reason) { in onPreferenceTreeClick() 457 Log.e(TAG, " connect fail " + reason); in onPreferenceTreeClick() 633 public void onFailure(int reason) { in startSearch() [all …]
|
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/ |
D | StreamStateTracker.java | 42 StreamingServiceCallback callback, int reason) { in startStreaming() argument 49 appStreams.startStreaming(serviceId, callback, reason); in startStreaming() 53 int reason) { in stopStreaming() argument 60 appStreams.stopStreaming(serviceId, reason); in stopStreaming()
|
D | AppActiveStreams.java | 82 public void startStreaming(String serviceId, StreamingServiceCallback callback, int reason) { in startStreaming() argument 96 callback.onStreamStateUpdated(StreamingService.STATE_STARTED, reason); in startStreaming() 100 public void stopStreaming(String serviceId, int reason) { in stopStreaming() argument 106 entry.getCallback().onStreamStateUpdated(StreamingService.STATE_STOPPED, reason); in stopStreaming()
|
/packages/apps/Dialer/java/com/android/incallui/disconnectdialog/ |
D | EnableWifiCallingPrompt.java | 43 String reason = disconnectCause.getReason(); in shouldShow() local 44 if (reason != null && reason.startsWith(REASON_WIFI_ON_BUT_WFC_OFF)) { in shouldShow() 48 reason); in shouldShow()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaService.java | 103 private static void onScanVolume(Context context, Uri uri, int reason) in onScanVolume() argument 108 onScanVolume(context, volumeName, reason); in onScanVolume() 111 public static void onScanVolume(Context context, String volumeName, int reason) in onScanVolume() argument 117 onScanVolume(context, MediaStore.VOLUME_INTERNAL, reason); in onScanVolume() 148 provider.scanDirectory(dir, reason); in onScanVolume()
|
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/ |
D | StreamingServiceTracker.java | 36 public void onStreamStateUpdated(int state, int reason) { in onStreamStateUpdated() argument 37 StreamingServiceTracker.this.onStreamStateUpdated(state, reason); in onStreamStateUpdated() 88 private void onStreamStateUpdated(int state, int reason) { in onStreamStateUpdated() argument 96 Toast.makeText(mActivity, "State change reason: " + reason, Toast.LENGTH_SHORT) in onStreamStateUpdated()
|
/packages/apps/SecureElement/src/com/android/se/security/ |
D | AccessControlEnforcer.java | 241 String reason = ca.getReason(); in checkCommand() local 242 if (reason.length() == 0) { in checkCommand() 243 reason = "Unspecified"; in checkCommand() 247 + ca.getApduAccess() + " Reason = " + reason); in checkCommand() 250 throw new AccessControlException(mTag + reason); in checkCommand() 256 + reason); in checkCommand() 264 + reason); in checkCommand()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarProjectionService.java | 678 int reason; in startLocalOnlyApLocked() 681 reason = ProjectionAccessPointCallback.ERROR_NO_CHANNEL; in startLocalOnlyApLocked() 684 reason = ProjectionAccessPointCallback.ERROR_TETHERING_DISALLOWED; in startLocalOnlyApLocked() 687 reason = ProjectionAccessPointCallback.ERROR_INCOMPATIBLE_MODE; in startLocalOnlyApLocked() 690 reason = ERROR_GENERIC; in startLocalOnlyApLocked() 693 sendApFailed(reason); in startLocalOnlyApLocked() 733 private void sendApFailed(int reason) { in sendApFailed() argument 736 message.arg1 = reason; in sendApFailed() 976 int reason; in onStateChanged() local 979 reason = ProjectionAccessPointCallback.ERROR_NO_CHANNEL; in onStateChanged() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/common/ |
D | Assert.java | 52 public static void fail(String reason) { in fail() argument 53 throw new AssertionError(reason); in fail() 62 public static AssertionError createAssertionFailException(String msg, Throwable reason) { in createAssertionFailException() argument 63 return new AssertionError(msg, reason); in createAssertionFailException()
|