Home
last modified time | relevance | path

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

12345678910>>...17

/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.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/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()
/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/Wifi/service/java/com/android/server/wifi/
DSelfRecovery.java126 public void trigger(@RecoveryReason int reason) { in trigger() argument
127 if (!(reason == REASON_LAST_RESORT_WATCHDOG || reason == REASON_WIFINATIVE_FAILURE in trigger()
128 || reason == REASON_STA_IFACE_DOWN || reason == REASON_API_CALL)) { in trigger()
132 if (reason == REASON_STA_IFACE_DOWN) { in trigger()
138 Log.e(TAG, "Triggering recovery for reason: " + REASON_STRINGS[reason]); in trigger()
139 if (reason == REASON_WIFINATIVE_FAILURE) { in trigger()
157 mSelfRecoveryReason = reason; in trigger()
DWifiBlocklistMonitor.java247 @FailureReason int reason, int rssi) { in addToBlocklist() argument
248 entry.setAsBlocked(durationMs, reason, rssi); in addToBlocklist()
250 + ", durationMs=" + durationMs + ", reason=" + getFailureReasonString(reason) in addToBlocklist()
985 public boolean updateNetworkSelectionStatus(WifiConfiguration config, int reason) { in updateNetworkSelectionStatus() argument
986 if (reason < 0 || reason >= NetworkSelectionStatus.NETWORK_SELECTION_DISABLED_MAX) { in updateNetworkSelectionStatus()
987 Log.e(TAG, "Invalid Network disable reason " + reason); in updateNetworkSelectionStatus()
991 if (reason != NetworkSelectionStatus.DISABLED_NONE) { in updateNetworkSelectionStatus()
995 if (reason == NetworkSelectionStatus.DISABLED_ASSOCIATION_REJECTION in updateNetworkSelectionStatus()
996 || reason == NetworkSelectionStatus.DISABLED_AUTHENTICATION_FAILURE in updateNetworkSelectionStatus()
997 || reason == NetworkSelectionStatus.DISABLED_DHCP_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/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()
398 public void destroySipDelegate(int subId, ISipDelegate connection, int reason) { in destroySipDelegate() argument
399 mExecutorService.execute(() -> destroySipDelegateInternal(subId, connection, reason)); in destroySipDelegate()
460 private void destroySipDelegateInternal(int subId, ISipDelegate connection, int reason) { in destroySipDelegateInternal() argument
484 addPendingDestroyAndEvaluate(match, reason); in destroySipDelegateInternal()
594 private boolean addPendingDestroy(SipDelegateController c, int reason) { in addPendingDestroy() argument
595 DestroyRequest request = new DestroyRequest(c, reason); in addPendingDestroy()
606 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/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()
420 switch (reason) { in handleGetCFResponse()
[all …]
/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/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareStateManager.java1007 public void onConfigFailedResponse(short transactionId, int reason) { in onConfigFailedResponse() argument
1011 msg.obj = reason; in onConfigFailedResponse()
1019 public void onDisableResponse(short transactionId, int reason) { in onDisableResponse() argument
1023 msg.obj = reason; in onDisableResponse()
1045 public void onSessionConfigFailResponse(short transactionId, boolean isPublish, int reason) { in onSessionConfigFailResponse() argument
1049 msg.obj = reason; in onSessionConfigFailResponse()
1067 public void onMessageSendQueuedFailResponse(short transactionId, int reason) { in onMessageSendQueuedFailResponse() argument
1071 msg.obj = reason; in onMessageSendQueuedFailResponse()
1132 public void onInitiateDataPathResponseFail(short transactionId, int reason) { in onInitiateDataPathResponseFail() argument
1136 msg.obj = reason; in onInitiateDataPathResponseFail()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBlocklistMonitorTest.java216 private void handleBssidConnectionFailureMultipleTimes(String bssid, int reason, int times) { in handleBssidConnectionFailureMultipleTimes() argument
217 handleBssidConnectionFailureMultipleTimes(bssid, TEST_SSID_1, reason, times); in handleBssidConnectionFailureMultipleTimes()
220 private void handleBssidConnectionFailureMultipleTimes(String bssid, String ssid, int reason, in handleBssidConnectionFailureMultipleTimes() argument
223 mWifiBlocklistMonitor.handleBssidConnectionFailure(bssid, ssid, reason, in handleBssidConnectionFailureMultipleTimes()
606 int reason = entry.getKey(); in testIncrementingBlocklistStreakCount() local
609 handleBssidConnectionFailureMultipleTimes(TEST_BSSID_1, TEST_SSID_1, reason, threshold); in testIncrementingBlocklistStreakCount()
616 verify(mWifiScoreCard).incrementBssidBlocklistStreak(TEST_SSID_1, TEST_BSSID_1, reason); in testIncrementingBlocklistStreakCount()
618 verify(mWifiMetrics).incrementBssidBlocklistCount(reason); in testIncrementingBlocklistStreakCount()
626 reason); in testIncrementingBlocklistStreakCount()
1079 WifiConfiguration config, int reason, int temporaryDisableReasonCounter) { in verifyUpdateNetworkSelectionStatus() argument
[all …]
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java245 String reason(); in reason() method
1203 @Test @SignatureRequiredTest(reason = "InterfaceParams.getByName requires CAP_NET_ADMIN")
1289 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1302 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1315 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1321 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1334 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1364 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1369 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
1374 @Test @SignatureRequiredTest(reason = "TODO: evaluate whether signature perms are required")
[all …]
/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/providers/MediaProvider/src/com/android/providers/media/
DMediaService.java55 public static void queueVolumeScan(Context context, MediaVolume volume, int reason) { in queueVolumeScan() argument
58 intent.putExtra(EXTRA_SCAN_REASON, reason); in queueVolumeScan()
94 int reason = intent.getIntExtra(EXTRA_SCAN_REASON, REASON_DEMAND); in onHandleWork() local
95 onScanVolume(this, volume, reason); in onHandleWork()
150 public static void onScanVolume(Context context, MediaVolume volume, int reason) in onScanVolume() argument
162 onScanVolume(context, MediaVolume.fromInternal(), reason); in onScanVolume()
194 provider.scanDirectory(dir, reason); in onScanVolume()
197 provider.scanDirectory(volume.getPath(), reason); in onScanVolume() local
/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/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareManager.java666 public void onConnectFail(int reason) { in onConnectFail() argument
667 if (VDBG) Log.v(TAG, "onConnectFail: reason=" + reason); in onConnectFail()
670 msg.arg1 = reason; in onConnectFail()
813 public void onSessionConfigFail(int reason) { in onSessionConfigFail() argument
814 if (VDBG) Log.v(TAG, "onSessionConfigFail: reason=" + reason); in onSessionConfigFail()
817 msg.arg1 = reason; in onSessionConfigFail()
822 public void onSessionTerminated(int reason) { in onSessionTerminated() argument
823 if (VDBG) Log.v(TAG, "onSessionTerminated: reason=" + reason); in onSessionTerminated()
826 msg.arg1 = reason; in onSessionTerminated()
880 public void onMessageSendFail(int messageId, int reason) { in onMessageSendFail() argument
[all …]
/packages/apps/Provision/src/com/android/provision/
DDefaultActivity.java229 private void factoryReset(String reason) { in factoryReset() argument
231 .setMessage("Device owner provisioning failed (" + reason in factoryReset()
233 .setPositiveButton("Reset", (d, w) -> sendFactoryResetIntent(reason)) in factoryReset()
234 .setOnDismissListener((d) -> sendFactoryResetIntent(reason)) in factoryReset()
238 private void sendFactoryResetIntent(String reason) { in sendFactoryResetIntent() argument
239 Log.e(TAG, "Factory resetting: " + reason); in sendFactoryResetIntent()
243 intent.putExtra(Intent.EXTRA_REASON, reason); in sendFactoryResetIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DBondStateMachine.java223 int reason = getUnbondReasonFromHALCode(msg.arg2); in processMessage() local
226 && reason == BluetoothDevice.BOND_SUCCESS) { in processMessage()
227 reason = BluetoothDevice.UNBOND_REASON_REMOVED; in processMessage()
229 sendIntent(dev, newState, reason); in processMessage()
381 void sendIntent(BluetoothDevice device, int newState, int reason) { in sendIntent() argument
410 newState, BluetoothProtoEnums.BOND_SUB_STATE_UNKNOWN, reason, in sendIntent()
439 intent.putExtra(BluetoothDevice.EXTRA_REASON, reason); in sendIntent()
610 private int getUnbondReasonFromHALCode(int reason) { in getUnbondReasonFromHALCode() argument
611 if (reason == AbstractionLayer.BT_STATUS_SUCCESS) { in getUnbondReasonFromHALCode()
613 } else if (reason == AbstractionLayer.BT_STATUS_RMT_DEV_DOWN) { in getUnbondReasonFromHALCode()
[all …]
/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 …]

12345678910>>...17