/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/modules/Wifi/service/java/com/android/server/wifi/ |
D | SelfRecovery.java | 96 public static String getRecoveryReasonAsString(@RecoveryReason int reason) { in getRecoveryReasonAsString() argument 97 switch (reason) { in getRecoveryReasonAsString() 111 return "Unknown " + reason; in getRecoveryReasonAsString() 141 public void onSubsystemRestart(@RecoveryReason int reason) { in onSubsystemRestart() argument 142 Log.e(TAG, "Restarting wifi for reason: " + getRecoveryReasonAsString(reason)); in onSubsystemRestart() 143 mActiveModeWarden.recoveryRestartWifi(reason, in onSubsystemRestart() 144 reason != REASON_LAST_RESORT_WATCHDOG && reason != REASON_API_CALL); in onSubsystemRestart() 185 public void trigger(@RecoveryReason int reason) { in trigger() argument 188 if (!(reason == REASON_LAST_RESORT_WATCHDOG || reason == REASON_WIFINATIVE_FAILURE in trigger() 189 || reason == REASON_STA_IFACE_DOWN || reason == REASON_API_CALL in trigger() [all …]
|
/packages/modules/Uwb/framework/java/android/uwb/ |
D | RangingSession.java | 240 void onOpenFailed(@Reason int reason, @NonNull PersistableBundle params); in onOpenFailed() argument 262 void onStartFailed(@Reason int reason, @NonNull PersistableBundle params); in onStartFailed() argument 277 void onReconfigureFailed(@Reason int reason, @NonNull PersistableBundle params); in onReconfigureFailed() argument 285 void onStopped(@Reason int reason, @NonNull PersistableBundle parameters); in onStopped() argument 293 void onStopFailed(@Reason int reason, @NonNull PersistableBundle params); in onStopFailed() argument 302 void onClosed(@Reason int reason, @NonNull PersistableBundle parameters); in onClosed() argument 325 @ControleeFailureReason int reason, @NonNull PersistableBundle parameters) {} in onControleeAddFailed() 341 @ControleeFailureReason int reason, @NonNull PersistableBundle parameters) {} in onControleeRemoveFailed() 356 default void onPauseFailed(@Reason int reason, @NonNull PersistableBundle parameters) {} in onPauseFailed() argument 371 default void onResumeFailed(@Reason int reason, @NonNull PersistableBundle parameters) {} in onResumeFailed() argument [all …]
|
D | RangingManager.java | 120 public void onRangingOpenFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingOpenFailed() argument 131 session.onRangingOpenFailed(convertToReason(reason), parameters); in onRangingOpenFailed() 153 @RangingChangeReason int reason, PersistableBundle params) { in onRangingReconfigureFailed() argument 162 session.onRangingReconfigureFailed(convertToReason(reason), params); in onRangingReconfigureFailed() 182 public void onRangingStartFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStartFailed() argument 192 session.onRangingStartFailed(convertToReason(reason), params); in onRangingStartFailed() 197 public void onRangingStopped(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopped() argument 207 session.onRangingStopped(convertToReason(reason), params); in onRangingStopped() 212 public void onRangingStopFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopFailed() argument 222 session.onRangingStopFailed(convertToReason(reason), parameters); in onRangingStopFailed() [all …]
|
D | IUwbRangingCallbacks.aidl | 45 RangingChangeReason reason, in onRangingOpenFailed() argument 70 RangingChangeReason reason, in onRangingStartFailed() argument 90 RangingChangeReason reason, in onRangingReconfigureFailed() argument 102 RangingChangeReason reason, in onRangingStopped() argument 113 RangingChangeReason reason, in onRangingStopFailed() argument 124 RangingChangeReason reason, in onRangingClosed() argument 155 RangingChangeReason reason, in PersistableBundle parameters); in onControleeAddFailed() argument 173 RangingChangeReason reason, in PersistableBundle parameters); in onControleeRemoveFailed() argument 191 RangingChangeReason reason, in PersistableBundle parameters); in onRangingPauseFailed() argument 208 RangingChangeReason reason, in PersistableBundle parameters); in onRangingResumeFailed() argument [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothLeBroadcastAssistantCallback.java | 105 public void onSearchStarted(int reason) { in onSearchStarted() argument 111 executor.execute(() -> cb.onSearchStarted(reason)); in onSearchStarted() 120 public void onSearchStartFailed(int reason) { in onSearchStartFailed() argument 126 executor.execute(() -> cb.onSearchStartFailed(reason)); in onSearchStartFailed() 135 public void onSearchStopped(int reason) { in onSearchStopped() argument 141 executor.execute(() -> cb.onSearchStopped(reason)); in onSearchStopped() 150 public void onSearchStopFailed(int reason) { in onSearchStopFailed() argument 156 executor.execute(() -> cb.onSearchStopFailed(reason)); in onSearchStopFailed() 180 public void onSourceAdded(BluetoothDevice sink, int sourceId, int reason) { in onSourceAdded() argument 186 executor.execute(() -> cb.onSourceAdded(sink, sourceId, reason)); in onSourceAdded() [all …]
|
D | BluetoothLeBroadcast.java | 82 public void onBroadcastStarted(int reason, int broadcastId) { 87 executor.execute(() -> callback.onBroadcastStarted(reason, broadcastId)); 92 public void onBroadcastStartFailed(int reason) { 97 executor.execute(() -> callback.onBroadcastStartFailed(reason)); 102 public void onBroadcastStopped(int reason, int broadcastId) { 107 executor.execute(() -> callback.onBroadcastStopped(reason, broadcastId)); 112 public void onBroadcastStopFailed(int reason) { 117 executor.execute(() -> callback.onBroadcastStopFailed(reason)); 122 public void onPlaybackStarted(int reason, int broadcastId) { 127 executor.execute(() -> callback.onPlaybackStarted(reason, broadcastId)); [all …]
|
/packages/modules/Bluetooth/system/binder/android/bluetooth/ |
D | IBluetoothLeBroadcastAssistantCallback.aidl | 29 void onSearchStarted(in int reason); in onSearchStarted() argument 30 void onSearchStartFailed(in int reason); in onSearchStartFailed() argument 31 void onSearchStopped(in int reason); in onSearchStopped() argument 32 void onSearchStopFailed(in int reason); in onSearchStopFailed() argument 34 void onSourceAdded(in BluetoothDevice sink, in int sourceId, in int reason); in onSourceAdded() argument 36 in int reason); in onSourceAddFailed() argument 37 void onSourceModified(in BluetoothDevice sink, in int sourceId, in int reason); in onSourceModified() argument 38 void onSourceModifyFailed(in BluetoothDevice sink, in int sourceId, in int reason); in onSourceModifyFailed() argument 39 void onSourceRemoved(in BluetoothDevice sink, in int sourceId, in int reason); in onSourceRemoved() argument 40 void onSourceRemoveFailed(in BluetoothDevice sink, in int sourceId, in int reason); in onSourceRemoveFailed() argument
|
D | IBluetoothLeBroadcastCallback.aidl | 27 void onBroadcastStarted(in int reason, in int broadcastId); in onBroadcastStarted() argument 29 void onBroadcastStartFailed(in int reason); in onBroadcastStartFailed() argument 31 void onBroadcastStopped(in int reason, in int broadcastId); in onBroadcastStopped() argument 33 void onBroadcastStopFailed(in int reason); in onBroadcastStopFailed() argument 35 void onPlaybackStarted(in int reason, in int broadcastId); in onPlaybackStarted() argument 37 void onPlaybackStopped(in int reason, in int broadcastId); in onPlaybackStopped() argument 39 void onBroadcastUpdated(in int reason, in int broadcastId); in onBroadcastUpdated() argument 41 void onBroadcastUpdateFailed(in int reason, in int broadcastId); in onBroadcastUpdateFailed() argument
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | FetchMatchingAlarmsAction.kt | 74 val reason = mContext.getString(R.string.invalid_time, hour, minutes, amPm) in run() constant 75 notifyFailureAndLog(reason, mActivity) in run() 88 val reason = mContext.getString(R.string.no_alarm_at, hour24, minutes) in run() constant 89 notifyFailureAndLog(reason, mActivity) in run() 108 val reason = mContext.getString(R.string.no_scheduled_alarms) in run() constant 109 notifyFailureAndLog(reason, mActivity) in run() 125 val reason = mContext.getString(R.string.no_label_specified) in run() constant 126 notifyFailureAndLog(reason, mActivity) in run() 138 val reason = mContext.getString(R.string.no_alarms_with_label) in run() constant 139 notifyFailureAndLog(reason, mActivity) in run() [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | KeepaliveTracker.java | 416 void stop(int reason) { in stop() argument 435 mStopReason = reason; in stop() 437 + ": " + reason); in stop() 443 if (BINDER_DIED == reason) mStartedState = BINDER_DIED; in stop() 524 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument 531 ki.stop(reason); in handleStopAllKeepalives() 539 public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) { in handleStopKeepalive() argument 551 ki.stop(reason); in handleStopKeepalive() 572 final int reason = ki.mStopReason; in cleanupStoppedKeepalive() local 573 if (reason != SUCCESS_PAUSED) { in cleanupStoppedKeepalive() [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
|
/packages/services/Telephony/src/com/android/phone/ |
D | ImsStateCallbackController.java | 326 public void connectionUnavailable(int reason) { in connectionUnavailable() argument 327 logd(mLogPrefix + "connectionUnavailable reason=" + connectorReasonToString(reason)); in connectionUnavailable() 329 reason = convertReasonType(reason); in connectionUnavailable() 330 if (mReason == reason) return; in connectionUnavailable() 336 connectionUnavailableInternal(reason); in connectionUnavailable() 339 private void connectionUnavailableInternal(int reason) { in connectionUnavailableInternal() argument 341 mReason = reason; in connectionUnavailableInternal() 345 if (!mHasConfig && reason != REASON_NO_IMS_SERVICE_CONFIGURED) return; in connectionUnavailableInternal() 478 public void connectionUnavailable(int reason) { in connectionUnavailable() argument 479 logd(mLogPrefix + "connectionUnavailable reason=" + connectorReasonToString(reason)); in connectionUnavailable() [all …]
|
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()
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.h | 35 InvalidConfigReasonEnum reason; member 44 InvalidConfigReason(InvalidConfigReasonEnum reason) : reason(reason){}; in InvalidConfigReason() 45 InvalidConfigReason(InvalidConfigReasonEnum reason, int64_t metricId) in InvalidConfigReason() 46 : reason(reason), metricId(metricId){}; in InvalidConfigReason() 48 return (this->reason == other.reason) && (this->metricId == other.metricId) && 91 std::optional<InvalidConfigReason> reason; member 287 const std::optional<InvalidConfigReason>& reason); 584 const int32_t callingUid, const InvalidQueryReason reason); 589 const int32_t callingUid, const InvalidQueryReason reason, 806 const InvalidQueryReason reason, [all …]
|
D | StatsdStats.cpp | 186 const optional<InvalidConfigReason>& reason) { in noteConfigReceived() argument 201 configStats->is_valid = !reason.has_value(); in noteConfigReceived() 202 configStats->reason = reason; in noteConfigReceived() 207 if (!reason.has_value()) { in noteConfigReceived() 686 const InvalidQueryReason reason) { in noteQueryRestrictedMetricFailed() argument 688 noteQueryRestrictedMetricFailedLocked(configId, configPackage, configUid, callingUid, reason, in noteQueryRestrictedMetricFailed() 694 const int32_t callingUid, const InvalidQueryReason reason, const string& error) { in noteQueryRestrictedMetricFailed() argument 696 noteQueryRestrictedMetricFailedLocked(configId, configPackage, configUid, callingUid, reason, in noteQueryRestrictedMetricFailed() 702 const int32_t callingUid, const InvalidQueryReason reason, const string& error) { in noteQueryRestrictedMetricFailedLocked() argument 707 callingUid, configId, configPackage, configUid, getWallClockNs(), reason, error, in noteQueryRestrictedMetricFailedLocked() [all …]
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/ |
D | DeviceCheckInClientImpl.java | 110 public PauseDeviceProvisioningGrpcResponse pauseDeviceProvisioning(int reason) { in pauseDeviceProvisioning() argument 114 createPauseDeviceProvisioningRequest(sRegisteredId, reason))); in pauseDeviceProvisioning() 187 @DeviceLockConstants.PauseDeviceProvisioningReason int reason) { in createPauseDeviceProvisioningRequest() argument 191 PauseDeviceProvisioningReason.forNumber(reason)) in createPauseDeviceProvisioningRequest() 200 ClientProvisionFailureReason reason; in createReportDeviceProvisionStateRequest() local 203 reason = CLIENT_PROVISION_FAILURE_REASON_SETUP_FAILED; in createReportDeviceProvisionStateRequest() 206 reason = CLIENT_PROVISION_FAILURE_REASON_DOWNLOAD_FAILED; in createReportDeviceProvisionStateRequest() 209 reason = CLIENT_PROVISION_FAILURE_REASON_VERIFICATION_FAILED; in createReportDeviceProvisionStateRequest() 212 reason = CLIENT_PROVISION_FAILURE_REASON_INSTALL_FAILED; in createReportDeviceProvisionStateRequest() 215 reason = CLIENT_PROVISION_FAILURE_REASON_PACKAGE_DOES_NOT_EXIST; in createReportDeviceProvisionStateRequest() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | DistanceMeasurementManager.java | 157 int reason = timeout ? BluetoothStatusCodes.ERROR_TIMEOUT : in stopRssiTracker() local 159 invokeOnStopped(tracker.mCallback, tracker.mDevice, reason); in stopRssiTracker() 176 int reason) { in invokeStartFail() argument 178 callback.onStartFail(device, reason); in invokeStartFail() 185 int reason) { in invokeOnStopped() argument 187 callback.onStopped(device, reason); in invokeOnStopped() 247 void onDistanceMeasurementStartFail(String address, int reason, int method) { in onDistanceMeasurementStartFail() argument 252 handleRssiStartFail(address, reason); in onDistanceMeasurementStartFail() 259 void handleRssiStartFail(String address, int reason) { in handleRssiStartFail() argument 267 invokeStartFail(tracker.mCallback, tracker.mDevice, reason); in handleRssiStartFail() [all …]
|
/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/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr.cc | 697 uint8_t reason = in gatts_process_primary_service_req() local 699 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req() 700 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req() 733 reason = gatt_build_primary_service_rsp(p_msg, tcb, cid, op_code, s_hdl, in gatts_process_primary_service_req() 735 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req() 737 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req() 758 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl); in gatts_process_find_info() local 759 if (reason != GATT_SUCCESS) { in gatts_process_find_info() 760 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info() 769 reason = GATT_NOT_FOUND; in gatts_process_find_info() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/viewmodel/ |
D | FingerprintSettingsNavigationViewModel.kt | 95 fun onEnrollFirstFailure(reason: String) { in onEnrollFirstFailure() 96 launchFinishSettings(reason) in onEnrollFirstFailure() 100 fun onEnrollFirstFailure(reason: String, resultCode: Int) { in onEnrollFirstFailure() 101 launchFinishSettings(reason, resultCode) in onEnrollFirstFailure() 159 private fun launchFinishSettings(reason: String) { in launchFinishSettings() 160 _nextStep.update { FinishSettings(reason) } in launchFinishSettings() 163 private fun launchFinishSettings(reason: String, errorCode: Int) { in launchFinishSettings() 164 _nextStep.update { FinishSettingsWithResult(errorCode, reason) } in launchFinishSettings()
|
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/snippet/ |
D | UwbManagerSnippet.java | 172 public void onStateChanged(int state, int reason) { in onStateChanged() argument 175 + ", state changed reason " + String.valueOf(reason)); in onStateChanged() 211 public void onOpenFailed(int reason, PersistableBundle params) { in onOpenFailed() argument 213 Log.d(TAG + "OpenFailed reason " + String.valueOf(reason)); in onOpenFailed() 226 public void onStartFailed(int reason, PersistableBundle params) { in onStartFailed() argument 228 Log.d(TAG + "StartFailed reason " + String.valueOf(reason)); in onStartFailed() 241 public void onReconfigureFailed(int reason, PersistableBundle params) { in onReconfigureFailed() argument 243 Log.d(TAG + "ReconfigureFailed reason " + String.valueOf(reason)); in onReconfigureFailed() 249 public void onStopped(int reason, PersistableBundle params) { in onStopped() argument 251 Log.d(TAG + "Stopped reason " + String.valueOf(reason)); in onStopped() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothFindBroadcastsFragment.java | 94 public void onSearchStarted(int reason) { 95 Log.d(TAG, "onSearchStarted: " + reason); 100 public void onSearchStartFailed(int reason) { 101 Log.d(TAG, "onSearchStartFailed: " + reason); 105 public void onSearchStopped(int reason) { 106 Log.d(TAG, "onSearchStopped: " + reason); 110 public void onSearchStopFailed(int reason) { 111 Log.d(TAG, "onSearchStopFailed: " + reason); 122 public void onSourceAdded(@NonNull BluetoothDevice sink, int sourceId, int reason) { 138 @NonNull BluetoothLeBroadcastMetadata source, int reason) { [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | MyNotificationListenerService.java | 87 private void send(String reason, PendingIntent pendingIntent) { in send() argument 90 Log.v(TAG, "Not sending null pending intent for " + reason); in send() 98 + ") for reason '" + mReason + "' when requested another for '" + reason in send() 101 Log.i(TAG, "Sending pending intent for " + reason + ":" + pendingIntent); in send() 105 mReason = reason; in send() 111 private void send(String reason, Bundle extras) { in send() argument 116 send(reason + " with key '" + key + "'", (PendingIntent) value); in send()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/ |
D | BassClientService.java | 398 private void checkForPendingGroupOpRequest(BluetoothDevice sink, int reason, int reqMsg, in checkForPendingGroupOpRequest() argument 400 log("checkForPendingGroupOpRequest device: " + sink + ", reason: " + reason in checkForPendingGroupOpRequest() 414 if (isSuccess(reason)) { in checkForPendingGroupOpRequest() 1359 final int reason = msg.arg1; in checkForPendingGroupOpRequest() local 1367 sService.checkForPendingGroupOpRequest(sink, reason, in checkForPendingGroupOpRequest() 1373 sService.checkForPendingGroupOpRequest(sink, reason, in checkForPendingGroupOpRequest() 1408 final int reason = msg.arg1; in invokeCallback() local 1415 callback.onSearchStarted(reason); in invokeCallback() 1418 callback.onSearchStartFailed(reason); in invokeCallback() 1421 callback.onSearchStopped(reason); in invokeCallback() [all …]
|