Home
last modified time | relevance | path

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

12345678910>>...31

/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/modules/Uwb/framework/java/android/uwb/
DRangingSession.java222 void onOpenFailed(@Reason int reason, @NonNull PersistableBundle params); in onOpenFailed() argument
244 void onStartFailed(@Reason int reason, @NonNull PersistableBundle params); in onStartFailed() argument
259 void onReconfigureFailed(@Reason int reason, @NonNull PersistableBundle params); in onReconfigureFailed() argument
267 void onStopped(@Reason int reason, @NonNull PersistableBundle parameters); in onStopped() argument
275 void onStopFailed(@Reason int reason, @NonNull PersistableBundle params); in onStopFailed() argument
284 void onClosed(@Reason int reason, @NonNull PersistableBundle parameters); in onClosed() argument
307 @ControleeFailureReason int reason, @NonNull PersistableBundle parameters) {} in onControleeAddFailed()
323 @ControleeFailureReason int reason, @NonNull PersistableBundle parameters) {} in onControleeRemoveFailed()
338 default void onPauseFailed(@Reason int reason, @NonNull PersistableBundle parameters) {} in onPauseFailed() argument
353 default void onResumeFailed(@Reason int reason, @NonNull PersistableBundle parameters) {} in onResumeFailed() argument
[all …]
DRangingManager.java117 public void onRangingOpenFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingOpenFailed() argument
128 session.onRangingOpenFailed(convertToReason(reason), parameters); in onRangingOpenFailed()
150 @RangingChangeReason int reason, PersistableBundle params) { in onRangingReconfigureFailed() argument
159 session.onRangingReconfigureFailed(convertToReason(reason), params); in onRangingReconfigureFailed()
179 public void onRangingStartFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStartFailed() argument
189 session.onRangingStartFailed(convertToReason(reason), params); in onRangingStartFailed()
194 public void onRangingStopped(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopped() argument
204 session.onRangingStopped(convertToReason(reason), params); in onRangingStopped()
209 public void onRangingStopFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopFailed() argument
219 session.onRangingStopFailed(convertToReason(reason), parameters); in onRangingStopFailed()
[all …]
DIUwbRangingCallbacks.aidl45 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/Wifi/service/java/com/android/server/wifi/
DSelfRecovery.java91 public static String getRecoveryReasonAsString(@RecoveryReason int reason) { in getRecoveryReasonAsString() argument
92 switch (reason) { in getRecoveryReasonAsString()
104 return "Unknown " + reason; in getRecoveryReasonAsString()
134 public void onSubsystemRestart(@RecoveryReason int reason) { in onSubsystemRestart() argument
135 Log.e(TAG, "Restarting wifi for reason: " + getRecoveryReasonAsString(reason)); in onSubsystemRestart()
136 mActiveModeWarden.recoveryRestartWifi(reason, in onSubsystemRestart()
137 reason != REASON_LAST_RESORT_WATCHDOG && reason != REASON_API_CALL); in onSubsystemRestart()
177 public void trigger(@RecoveryReason int reason) { in trigger() argument
178 if (!(reason == REASON_LAST_RESORT_WATCHDOG || reason == REASON_WIFINATIVE_FAILURE in trigger()
179 || reason == REASON_STA_IFACE_DOWN || reason == REASON_API_CALL)) { in trigger()
[all …]
DWifiBlocklistMonitor.java252 @FailureReason int reason, int rssi) { in addToBlocklist() argument
253 entry.setAsBlocked(durationMs, reason, rssi); in addToBlocklist()
255 + ", durationMs=" + durationMs + ", reason=" + getFailureReasonString(reason) in addToBlocklist()
1042 public boolean updateNetworkSelectionStatus(WifiConfiguration config, int reason) { in updateNetworkSelectionStatus() argument
1043 if (reason < 0 || reason >= NetworkSelectionStatus.NETWORK_SELECTION_DISABLED_MAX) { in updateNetworkSelectionStatus()
1044 Log.e(TAG, "Invalid Network disable reason " + reason); in updateNetworkSelectionStatus()
1048 if (reason != NetworkSelectionStatus.DISABLED_NONE) { in updateNetworkSelectionStatus()
1050 if (reason != NetworkSelectionStatus.DISABLED_BY_WIFI_MANAGER in updateNetworkSelectionStatus()
1058 if (reason == NetworkSelectionStatus.DISABLED_ASSOCIATION_REJECTION in updateNetworkSelectionStatus()
1059 || reason == NetworkSelectionStatus.DISABLED_AUTHENTICATION_FAILURE in updateNetworkSelectionStatus()
[all …]
DWifiLastResortWatchdog.java335 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason, in noteConnectionFailureAndTriggerIfNeeded() argument
339 + reason + "]"); in noteConnectionFailureAndTriggerIfNeeded()
343 updateFailureCountForNetwork(ssid, bssid, reason); in noteConnectionFailureAndTriggerIfNeeded()
447 private void updateFailureCountForNetwork(String ssid, String bssid, int reason) { in updateFailureCountForNetwork() argument
449 + reason + "]"); in updateFailureCountForNetwork()
451 incrementSsidFailureCount(ssid, reason); in updateFailureCountForNetwork()
455 incrementBssidFailureCount(ssid, bssid, reason); in updateFailureCountForNetwork()
465 private void incrementSsidFailureCount(String ssid, int reason) { in incrementSsidFailureCount() argument
472 failureCount.incrementFailureCount(reason); in incrementSsidFailureCount()
480 private void incrementBssidFailureCount(String ssid, String bssid, int reason) { in incrementBssidFailureCount() argument
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastAssistantCallback.java105 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 …]
DBluetoothLeBroadcast.java82 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/
DIBluetoothLeBroadcastAssistantCallback.aidl29 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
DIBluetoothLeBroadcastCallback.aidl27 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/
DFetchMatchingAlarmsAction.kt74 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/services/Telephony/src/com/android/phone/
DImsStateCallbackController.java308 public void connectionUnavailable(int reason) { in connectionUnavailable() argument
309 logd(mLogPrefix + "connectionUnavailable reason=" + connectorReasonToString(reason)); in connectionUnavailable()
311 reason = convertReasonType(reason); in connectionUnavailable()
312 if (mReason == reason) return; in connectionUnavailable()
314 connectionUnavailableInternal(reason); in connectionUnavailable()
317 private void connectionUnavailableInternal(int reason) { in connectionUnavailableInternal() argument
319 mReason = reason; in connectionUnavailableInternal()
323 if (!mHasConfig && reason != REASON_NO_IMS_SERVICE_CONFIGURED) return; in connectionUnavailableInternal()
456 public void connectionUnavailable(int reason) { in connectionUnavailable() argument
457 logd(mLogPrefix + "connectionUnavailable reason=" + connectorReasonToString(reason)); in connectionUnavailable()
[all …]
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()
/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
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveTracker.java362 void stop(int reason) { in stop() argument
378 mStopReason = reason; in stop()
380 + ": " + reason); in stop()
455 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument
460 ki.stop(reason); in handleStopAllKeepalives()
468 public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) { in handleStopKeepalive() argument
480 ki.stop(reason); in handleStopKeepalive()
508 final int reason = ki.mStopReason; in cleanupStoppedKeepalive() local
509 if (reason == SUCCESS) { in cleanupStoppedKeepalive()
513 Log.w(TAG, "Discarded onStop callback: " + reason); in cleanupStoppedKeepalive()
[all …]
/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()
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_sr.cc687 uint8_t reason = in gatts_process_primary_service_req() local
689 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
690 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
723 reason = gatt_build_primary_service_rsp(p_msg, tcb, cid, op_code, s_hdl, in gatts_process_primary_service_req()
725 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
727 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
748 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl); in gatts_process_find_info() local
749 if (reason != GATT_SUCCESS) { in gatts_process_find_info()
750 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info()
759 reason = GATT_NOT_FOUND; in gatts_process_find_info()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothFindBroadcastsFragment.java87 public void onSearchStarted(int reason) {
88 Log.d(TAG, "onSearchStarted: " + reason);
93 public void onSearchStartFailed(int reason) {
94 Log.d(TAG, "onSearchStartFailed: " + reason);
98 public void onSearchStopped(int reason) {
99 Log.d(TAG, "onSearchStopped: " + reason);
103 public void onSearchStopFailed(int reason) {
104 Log.d(TAG, "onSearchStopFailed: " + reason);
115 public void onSourceAdded(@NonNull BluetoothDevice sink, int sourceId, int reason) {
127 @NonNull BluetoothLeBroadcastMetadata source, int reason) {
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/
DBassClientService.java396 private void checkForPendingGroupOpRequest(BluetoothDevice sink, int reason, int reqMsg, in checkForPendingGroupOpRequest() argument
398 log("checkForPendingGroupOpRequest device: " + sink + ", reason: " + reason in checkForPendingGroupOpRequest()
412 if (isSuccess(reason)) { in checkForPendingGroupOpRequest()
1329 final int reason = msg.arg1; in checkForPendingGroupOpRequest() local
1337 sService.checkForPendingGroupOpRequest(sink, reason, in checkForPendingGroupOpRequest()
1343 sService.checkForPendingGroupOpRequest(sink, reason, in checkForPendingGroupOpRequest()
1378 final int reason = msg.arg1; in invokeCallback() local
1385 callback.onSearchStarted(reason); in invokeCallback()
1388 callback.onSearchStartFailed(reason); in invokeCallback()
1391 callback.onSearchStopped(reason); in invokeCallback()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipTransportController.java209 public final int reason; field in SipTransportController.DestroyRequest
213 reason = r; in DestroyRequest()
236 return "DestroyRequest{" + "controller=" + controller + ", reason=" + reason + '}'; in toString()
399 public void destroySipDelegate(int subId, ISipDelegate connection, int reason) { in destroySipDelegate() argument
400 mExecutorService.execute(() -> destroySipDelegateInternal(subId, connection, reason)); in destroySipDelegate()
462 private void destroySipDelegateInternal(int subId, ISipDelegate connection, int reason) { in destroySipDelegateInternal() argument
486 addPendingDestroyAndEvaluate(match, reason); in destroySipDelegateInternal()
596 private boolean addPendingDestroy(SipDelegateController c, int reason) { in addPendingDestroy() argument
597 DestroyRequest request = new DestroyRequest(c, reason); in addPendingDestroy()
608 private void addPendingDestroyAndEvaluate(SipDelegateController c, int reason) { in addPendingDestroyAndEvaluate() argument
[all …]
DSipDelegateBinderConnection.java129 public void onDestroyed(int reason) {
132 mExecutor.execute(() -> notifySipDelegateDestroyed(reason));
191 public void destroy(int reason, Consumer<Integer> destroyedConsumer) { in destroy() argument
195 mSipTransport.destroySipDelegate(mDelegateBinder, reason); in destroy()
197 mExecutor.execute(() -> notifySipDelegateDestroyed(reason)); in destroy()
202 mExecutor.execute(() -> notifySipDelegateDestroyed(reason)); in destroy()
236 private void notifySipDelegateDestroyed(int reason) { in notifySipDelegateDestroyed() argument
237 logi("Delegate Destroyed, reason: " + reason); in notifySipDelegateDestroyed()
240 mPendingDestroyedConsumer.accept(reason); in notifySipDelegateDestroyed()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java87 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/providers/MediaProvider/src/com/android/providers/media/util/
DMetrics.java46 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()
66 public static void logDeletionPersistent(@NonNull String volumeName, String reason, in logDeletionPersistent() argument
75 .append(reason); in logDeletionPersistent()
141 public static String translateReason(int reason) { in translateReason() argument
142 switch (reason) { in translateReason()
147 default: return String.valueOf(reason); in translateReason()
/packages/modules/Bluetooth/system/main/shim/
Dacl.cc130 using OnDisconnect = std::function<void(HciHandle, hci::ErrorCode reason)>;
417 virtual void InitiateDisconnect(hci::DisconnectReason reason) = 0;
621 void OnDisconnection(hci::ErrorCode reason) override { in OnDisconnection() argument
623 on_disconnect_(handle_, reason); in OnDisconnection()
664 void InitiateDisconnect(hci::DisconnectReason reason) override { in InitiateDisconnect() argument
665 connection_->Disconnect(reason); in InitiateDisconnect()
775 void OnDisconnection(hci::ErrorCode reason) { in OnDisconnection() argument
777 on_disconnect_(handle_, reason); in OnDisconnection()
784 void InitiateDisconnect(hci::DisconnectReason reason) override { in InitiateDisconnect() argument
785 connection_->Disconnect(reason); in InitiateDisconnect()
[all …]

12345678910>>...31