Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 25 of 188) sorted by relevance

12345678

/packages/apps/Camera2/src/com/android/camera/
DFatalErrorHandlerImpl.java44 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/
DFetchMatchingAlarmsAction.java85 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 …]
DHandleApiCalls.java131 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/
DProfileBase.java53 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
DGuardingProfile.java43 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()
DLoggingProfile.java39 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/
DCallForwardInfoUtil.java42 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()
DVoicemailProviderSettings.java58 fi.reason = FORWARDING_SETTINGS_REASONS[i]; in VoicemailProviderSettings()
59 fi.status = (fi.reason == CommandsInterface.CF_REASON_UNCONDITIONAL) ? 0 : 1; in VoicemailProviderSettings()
117 || i1.reason != i2.reason in forwardingSettingsEqual()
/packages/services/Telephony/src/com/android/phone/
DNumberVerificationManager.java118 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()
DCallForwardEditPreference.java47 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()
132 Log.d(LOG_TAG, "reason=" + reason + ", action=" + action + ", number=" + number); in onDialogClosed()
138 reason, in onDialogClosed()
150 if (reason == CommandsInterface.CF_REASON_NO_REPLY) { in onDialogClosed()
170 Log.d(LOG_TAG, "reason=" + reason + ", action=" + action in onDialogClosed()
180 reason, in onDialogClosed()
241 mPhone.getCallForwardingOption(reason, mServiceClass, in startCallForwardOptionsQuery()
418 switch (reason) { in handleGetCFResponse()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java209 int reason = getUnbondReasonFromHALCode(msg.arg2); in processMessage() local
212 && reason == BluetoothDevice.BOND_SUCCESS) { in processMessage()
213 reason = BluetoothDevice.UNBOND_REASON_REMOVED; in processMessage()
215 sendIntent(dev, newState, reason); in processMessage()
360 void sendIntent(BluetoothDevice device, int newState, int reason) { in sendIntent() argument
389 newState, BluetoothProtoEnums.BOND_SUB_STATE_UNKNOWN, reason, in sendIntent()
418 intent.putExtra(BluetoothDevice.EXTRA_REASON, reason); in sendIntent()
584 private int getUnbondReasonFromHALCode(int reason) { in getUnbondReasonFromHALCode() argument
585 if (reason == AbstractionLayer.BT_STATUS_SUCCESS) { in getUnbondReasonFromHALCode()
587 } else if (reason == AbstractionLayer.BT_STATUS_RMT_DEV_DOWN) { in getUnbondReasonFromHALCode()
[all …]
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
DTrampolineActivity.java87 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/Dialer/java/com/android/dialer/preferredsim/suggestion/
DSuggestionProvider.java53 @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/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java431 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/
DWifiP2pSettings.java243 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/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java246 public void onFailure(int reason) { in onActivityCreated()
267 public void onFailure(int reason) { in onActivityCreated()
268 if (DBG) Log.d(TAG, " remove group fail " + reason); in onActivityCreated()
287 public void onFailure(int reason) { in onActivityCreated()
288 if (DBG) Log.d(TAG, " cancel connect fail " + reason); in onActivityCreated()
311 public void onFailure(int reason) { in onActivityCreated()
312 if (DBG) Log.d(TAG, " delete group fail " + reason); in onActivityCreated()
449 public void onFailure(int reason) { in onPreferenceTreeClick()
450 Log.e(TAG, " connect fail " + reason); in onPreferenceTreeClick()
624 public void onFailure(int reason) { in startSearch()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingTask.java258 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/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DStreamStateTracker.java42 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()
DAppActiveStreams.java82 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/services/Car/service/src/com/android/car/
DCarProjectionService.java679 int reason; in startLocalOnlyApLocked()
682 reason = ProjectionAccessPointCallback.ERROR_NO_CHANNEL; in startLocalOnlyApLocked()
685 reason = ProjectionAccessPointCallback.ERROR_TETHERING_DISALLOWED; in startLocalOnlyApLocked()
688 reason = ProjectionAccessPointCallback.ERROR_INCOMPATIBLE_MODE; in startLocalOnlyApLocked()
691 reason = ERROR_GENERIC; in startLocalOnlyApLocked()
694 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/incallui/disconnectdialog/
DEnableWifiCallingPrompt.java43 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/apps/SecureElement/src/com/android/se/security/
DAccessControlEnforcer.java241 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/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/
DStreamingServiceTracker.java36 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/services/Telephony/src/com/android/services/telephony/rcs/
DUserCapabilityExchangeImpl.java429 public void onNetworkResponse(int responseCode, String reason, int operationToken) {
430 logi("onNetworkResponse: code=" + responseCode + ", reason=" + reason
433 onNetworkResponseForPublishRequest(responseCode, reason, operationToken);
435 onNetworkResponseForCapabilityRequest(responseCode, reason, operationToken);
437 onNetworkResponseForAvailabilityRequest(responseCode, reason, operationToken);
621 private void onNetworkResponseForPublishRequest(int responseCode, String reason, in onNetworkResponseForPublishRequest() argument
627 mPresencePublication.onSipResponse(operationToken, responseCode, reason); in onNetworkResponseForPublishRequest()
630 private void onNetworkResponseForCapabilityRequest(int responseCode, String reason, in onNetworkResponseForCapabilityRequest() argument
635 mPresenceSubscriber.onSipResponse(operationToken, responseCode, reason); in onNetworkResponseForCapabilityRequest()
638 private void onNetworkResponseForAvailabilityRequest(int responseCode, String reason, in onNetworkResponseForAvailabilityRequest() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DAssert.java52 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()

12345678