Home
last modified time | relevance | path

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

12345678910>>...34

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceCompilerMapping.java60 private static String getSystemPropertyName(int reason) { in getSystemPropertyName() argument
61 if (reason < 0 || reason >= REASON_STRINGS.length) { in getSystemPropertyName()
62 throw new IllegalArgumentException("reason " + reason + " invalid"); in getSystemPropertyName()
65 return "pm.dexopt." + REASON_STRINGS[reason]; in getSystemPropertyName()
70 private static String getAndCheckValidity(int reason) { in getAndCheckValidity() argument
71 String sysPropValue = SystemProperties.get(getSystemPropertyName(reason)); in getAndCheckValidity()
76 + "(reason " + REASON_STRINGS[reason] + ")"); in getAndCheckValidity()
77 } else if (!isFilterAllowedForReason(reason, sysPropValue)) { in getAndCheckValidity()
79 + "(reason " + REASON_STRINGS[reason] + ")"); in getAndCheckValidity()
85 private static boolean isFilterAllowedForReason(int reason, String filter) { in isFilterAllowedForReason() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnectionReasons.java32 void add(DataDisallowedReasonType reason) { in add() argument
36 mDataDisallowedReasonSet.add(reason); in add()
39 void add(DataAllowedReasonType reason) { in add() argument
46 if (reason.ordinal() > mDataAllowedReason.ordinal()) { in add()
47 mDataAllowedReason = reason; in add()
56 for (DataDisallowedReasonType reason : mDataDisallowedReasonSet) { in toString()
57 reasonStr.append(" ").append(reason); in toString()
82 public boolean contains(DataDisallowedReasonType reason) { in contains() argument
83 return mDataDisallowedReasonSet.contains(reason); in contains()
92 public boolean containsOnly(DataDisallowedReasonType reason) { in containsOnly() argument
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzStateMachineImpl.java169 String reason = "handleNetworkUnavailable()"; in handleNetworkUnavailable() local
170 clearNetworkStateAndRerunDetection(reason); in handleNetworkUnavailable()
173 private void clearNetworkStateAndRerunDetection(String reason) { in clearNetworkStateAndRerunDetection() argument
177 Rlog.d(LOG_TAG, reason + ": mLatestNitzSignal was already null. Nothing to do."); in clearNetworkStateAndRerunDetection()
189 Rlog.d(LOG_TAG, reason + ": countryIsoCode=" + countryIsoCode); in clearNetworkStateAndRerunDetection()
194 doTimeZoneDetection(countryIsoCode, null /* nitzSignal */, reason); in clearNetworkStateAndRerunDetection()
197 doTimeDetection(null /* nitzSignal */, reason); in clearNetworkStateAndRerunDetection()
245 String reason = "handleNitzReceived(" + nitzSignal + ")"; in handleNitzReceived() local
249 doTimeZoneDetection(countryIsoCode, nitzSignal, reason); in handleNitzReceived()
252 doTimeDetection(nitzSignal, reason); in handleNitzReceived()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOneTimeSafetyChecker.java58 @DevicePolicyOperation int operation, @OperationSafetyReason int reason) { in OneTimeSafetyChecker() argument
61 mReason = reason; in OneTimeSafetyChecker()
64 + ", reason=" + operationSafetyReasonToString(reason) in OneTimeSafetyChecker()
75 int reason = OPERATION_SAFETY_REASON_NONE; in getUnsafeOperationReason() local
77 reason = mReason; in getUnsafeOperationReason()
82 String reasonName = operationSafetyReasonToString(reason); in getUnsafeOperationReason()
87 dpmi.notifyUnsafeOperationStateChanged(this, reason, /* isSafe= */ false); in getUnsafeOperationReason()
90 dpmi.notifyUnsafeOperationStateChanged(this, reason, /* isSafe= */ true); in getUnsafeOperationReason()
95 return reason; in getUnsafeOperationReason()
99 public boolean isSafeOperation(@OperationSafetyReason int reason) { in isSafeOperation() argument
[all …]
/frameworks/base/core/java/android/uwb/
DRangingSession.java161 void onOpenFailed(@Reason int reason, @NonNull PersistableBundle params); in onOpenFailed() argument
175 void onStartFailed(@Reason int reason, @NonNull PersistableBundle params); in onStartFailed() argument
190 void onReconfigureFailed(@Reason int reason, @NonNull PersistableBundle params); in onReconfigureFailed() argument
198 void onStopped(@Reason int reason, @NonNull PersistableBundle parameters); in onStopped() argument
206 void onStopFailed(@Reason int reason, @NonNull PersistableBundle params); in onStopFailed() argument
215 void onClosed(@Reason int reason, @NonNull PersistableBundle parameters); in onClosed() argument
375 public void onRangingOpenFailed(@Callback.Reason int reason, in onRangingOpenFailed() argument
383 executeCallback(() -> mCallback.onOpenFailed(reason, params)); in onRangingOpenFailed()
402 public void onRangingStartFailed(@Callback.Reason int reason, in onRangingStartFailed() argument
409 executeCallback(() -> mCallback.onStartFailed(reason, params)); in onRangingStartFailed()
[all …]
DRangingManager.java96 public void onRangingOpenFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingOpenFailed() argument
107 session.onRangingOpenFailed(convertToReason(reason), parameters); in onRangingOpenFailed()
129 @RangingChangeReason int reason, PersistableBundle params) { in onRangingReconfigureFailed() argument
138 session.onRangingReconfigureFailed(convertToReason(reason), params); in onRangingReconfigureFailed()
158 public void onRangingStartFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStartFailed() argument
168 session.onRangingStartFailed(convertToReason(reason), params); in onRangingStartFailed()
173 public void onRangingStopped(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopped() argument
183 session.onRangingStopped(convertToReason(reason), params); in onRangingStopped()
188 public void onRangingStopFailed(SessionHandle sessionHandle, @RangingChangeReason int reason, in onRangingStopFailed() argument
198 session.onRangingStopFailed(convertToReason(reason), parameters); in onRangingStopFailed()
[all …]
DIUwbRangingCallbacks.aidl43 RangingChangeReason reason, in onRangingOpenFailed() argument
68 RangingChangeReason reason, in onRangingStartFailed() argument
88 RangingChangeReason reason, in onRangingReconfigureFailed() argument
100 RangingChangeReason reason, in onRangingStopped() argument
111 RangingChangeReason reason, in onRangingStopFailed() argument
122 RangingChangeReason reason, in onRangingClosed() argument
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java93 public static void recordCheckPoint(@Nullable String reason) { in recordCheckPoint() argument
94 INSTANCE.recordCheckPointInternal(reason); in recordCheckPoint()
98 public static void recordCheckPoint(int callerProcessId, @Nullable String reason) { in recordCheckPoint() argument
99 INSTANCE.recordCheckPointInternal(callerProcessId, reason); in recordCheckPoint()
104 String intentName, String packageName, @Nullable String reason) { in recordCheckPoint() argument
105 INSTANCE.recordCheckPointInternal(intentName, packageName, reason); in recordCheckPoint()
123 void recordCheckPointInternal(@Nullable String reason) { in recordCheckPointInternal() argument
124 recordCheckPointInternal(new SystemServerCheckPoint(mInjector, reason)); in recordCheckPointInternal()
129 void recordCheckPointInternal(int callerProcessId, @Nullable String reason) { in recordCheckPointInternal() argument
131 ? new SystemServerCheckPoint(mInjector, reason) in recordCheckPointInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/
DUserspaceRebootLogger.java144 String reason = TextUtils.emptyIfNull(SystemProperties.get(LAST_BOOT_REASON_PROPERTY, "")); in computeOutcome() local
145 if (reason.startsWith("reboot,")) { in computeOutcome()
146 reason = reason.substring("reboot".length()); in computeOutcome()
148 if (reason.startsWith("userspace_failed,watchdog_fork")) { in computeOutcome()
151 if (reason.startsWith("userspace_failed,shutdown_aborted")) { in computeOutcome()
154 if (reason.startsWith("mount_userdata_failed")) { in computeOutcome()
157 if (reason.startsWith("userspace_failed,init_user0")) { in computeOutcome()
160 if (reason.startsWith("userspace_failed,enablefilecrypto")) { in computeOutcome()
163 if (reason.startsWith("userspace_failed,watchdog_triggered")) { in computeOutcome()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DDoubleTapClassifier.java55 StringBuilder reason = new StringBuilder(); in calculateFalsingResult() local
61 return !isDoubleTap(firstTapEvents, secondTapEvents, reason) in calculateFalsingResult()
62 ? falsed(0.5, reason.toString()) : Result.passed(0.5); in calculateFalsingResult()
67 StringBuilder reason) { in isDoubleTap() argument
71 reason.append("First gesture is not a tap. ").append(firstTap.getReason()); in isDoubleTap()
77 reason.append("Second gesture is not a tap. ").append(secondTap.getReason()); in isDoubleTap()
87 reason.append("Time between taps too large: ").append(dt).append("ms"); in isDoubleTap()
92 reason.append("Delta X between taps too large:") in isDoubleTap()
100 reason.append("Delta Y between taps too large:") in isDoubleTap()
DSingleTapClassifier.java57 String reason; in isTap() local
59 reason = "dX too big for a tap: " in isTap()
63 return falsed(falsePenalty, reason); in isTap()
65 reason = "dY too big for a tap: " in isTap()
69 return falsed(falsePenalty, reason); in isTap()
/frameworks/base/services/core/java/com/android/server/wm/
DAnrController.java61 void notifyAppUnresponsive(InputApplicationHandle applicationHandle, String reason) { in notifyAppUnresponsive() argument
71 Slog.i(TAG_WM, "ANR in " + activity.getName() + ". Reason: " + reason); in notifyAppUnresponsive()
72 dumpAnrStateLocked(activity, null /* windowState */, reason); in notifyAppUnresponsive()
75 activity.inputDispatchingTimedOut(reason, INVALID_PID); in notifyAppUnresponsive()
78 void notifyWindowUnresponsive(IBinder inputToken, String reason) { in notifyWindowUnresponsive() argument
88 Slog.i(TAG_WM, "ANR in " + windowState.mAttrs.getTitle() + ". Reason:" + reason); in notifyWindowUnresponsive()
100 dumpAnrStateLocked(activity, windowState, reason); in notifyWindowUnresponsive()
103 activity.inputDispatchingTimedOut(reason, pid); in notifyWindowUnresponsive()
105 mService.mAmInternal.inputDispatchingTimedOut(pid, aboveSystem, reason); in notifyWindowUnresponsive()
129 void notifyGestureMonitorUnresponsive(int gestureMonitorPid, String reason) { in notifyGestureMonitorUnresponsive() argument
[all …]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java139 static String reasonToString(int reason) { in reasonToString() argument
140 switch (reason) { in reasonToString()
170 return "Unknown reason: " + reason; in reasonToString()
274 void postStateChanged(boolean sendBroadcast, int reason) { in postStateChanged() argument
276 ARG_SEND_BROADCAST : ARG_DONT_SEND_BROADCAST, reason).sendToTarget(); in postStateChanged()
297 public void enableBatterySaver(boolean enable, int reason) { in enableBatterySaver() argument
305 mHandler.postStateChanged(/*sendBroadcast=*/ true, reason); in enableBatterySaver()
351 boolean setFullPolicyLocked(BatterySaverPolicyConfig config, int reason) { in setFullPolicyLocked() argument
352 return setFullPolicyLocked(BatterySaverPolicy.Policy.fromConfig(config), reason); in setFullPolicyLocked()
355 boolean setFullPolicyLocked(Policy policy, int reason) { in setFullPolicyLocked() argument
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java72 public static void traceIntercepted(NotificationRecord record, String reason) { in traceIntercepted() argument
74 append(TYPE_INTERCEPTED, record.getKey() + "," + reason); in traceIntercepted()
77 public static void traceNotIntercepted(NotificationRecord record, String reason) { in traceNotIntercepted() argument
79 append(TYPE_NOT_INTERCEPTED, record.getKey() + "," + reason); in traceNotIntercepted()
104 public static void traceSetZenMode(int zenMode, String reason) { in traceSetZenMode() argument
105 append(TYPE_SET_ZEN_MODE, zenModeToString(zenMode) + "," + reason); in traceSetZenMode()
112 String reason) { in traceSetConsolidatedZenPolicy() argument
113 append(TYPE_SET_CONSOLIDATED_ZEN_POLICY, policy.toString() + "," + reason); in traceSetConsolidatedZenPolicy()
120 public static void traceExitCondition(Condition c, ComponentName component, String reason) { in traceExitCondition() argument
121 append(TYPE_EXIT_CONDITION, c + "," + componentToString(component) + "," + reason); in traceExitCondition()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DSubscriptionTerminatedHelper.java88 public static TerminatedResult getAnalysisResult(String reason, long retryAfterMillis, in getAnalysisResult() argument
91 if (TextUtils.isEmpty(reason)) { in getAnalysisResult()
99 } else if (REASON_DEACTIVATED.equalsIgnoreCase(reason)) { in getAnalysisResult()
105 } else if (REASON_PROBATION.equalsIgnoreCase(reason)) { in getAnalysisResult()
112 } else if (REASON_REJECTED.equalsIgnoreCase(reason)) { in getAnalysisResult()
118 } else if (REASON_TIMEOUT.equalsIgnoreCase(reason)) { in getAnalysisResult()
141 } else if (REASON_GIVEUP.equalsIgnoreCase(reason)) { in getAnalysisResult()
148 } else if (REASON_NORESOURCE.equalsIgnoreCase(reason)) { in getAnalysisResult()
168 Log.d(LOG_TAG, "getAnalysisResult: reason=" + reason + ", retry=" + retryAfterMillis + in getAnalysisResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java95 public void tracePulseStart(@Reason int reason) { in tracePulseStart() argument
96 mLogger.logPulseStart(reason); in tracePulseStart()
228 public void traceWakeDisplay(boolean wake, @Reason int reason) { in traceWakeDisplay() argument
229 mLogger.logWakeDisplay(wake, reason); in traceWakeDisplay()
237 public void traceProximityResult(boolean near, long millis, @Reason int reason) { in traceProximityResult() argument
238 mLogger.logProximityResult(near, millis, reason); in traceProximityResult()
239 mProxStats[reason][near ? 0 : 1].append(); in traceProximityResult()
255 final String reason = reasonToString(i); in dump() local
256 mProxStats[i][0].dump(pw, "Proximity near (" + reason + ")"); in dump()
257 mProxStats[i][1].dump(pw, "Proximity far (" + reason + ")"); in dump()
[all …]
DDozeLogger.kt44 fun logPulseStart(@Reason reason: Int) { in logPulseStart()
46 int1 = reason in logPulseStart()
171 fun logWakeDisplay(isAwake: Boolean, @Reason reason: Int) { in logWakeDisplay()
174 int1 = reason in logWakeDisplay()
180 fun logProximityResult(isNear: Boolean, millis: Long, @Reason reason: Int) { in logProximityResult()
184 int1 = reason in logProximityResult()
200 fun logPulseDropped(reason: String) { in logPulseDropped()
202 str1 = reason in logPulseDropped()
216 fun logSensorTriggered(@Reason reason: Int) { in logSensorTriggered()
218 int1 = reason in logSensorTriggered()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java102 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { in checkThat() argument
103 super.checkThat(mCameraMsg + reason, value, matcher); in checkThat()
734 String reason = "Key " + key.getName() + " shouldn't have value " + value.toString(); in expectKeyValueNotEquals() local
735 checkThat(reason, value, CoreMatchers.not(expected)); in expectKeyValueNotEquals()
756 String reason = "Key " + key.getName() + " shouldn't have value " + value.toString(); in expectKeyValueNotEquals() local
757 checkThat(reason, value, CoreMatchers.not(expected)); in expectKeyValueNotEquals()
778 String reason = "Key " + key.getName() + " value " + value.toString() in expectKeyValueEquals() local
780 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
802 String reason = "Key " + key.getName() + " value " + value.toString() in expectKeyValueEquals() local
804 checkThat(reason, value, CoreMatchers.equalTo(expected)); in expectKeyValueEquals()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java73 public final int reason; field in SyncOperation
120 int reason, int source, String provider, Bundle extras, in SyncOperation() argument
123 reason, source, extras, allowParallelSyncs, syncExemptionFlag); in SyncOperation()
127 int reason, int source, Bundle extras, boolean allowParallelSyncs, in SyncOperation() argument
129 this(info, owningUid, owningPackage, reason, source, extras, allowParallelSyncs, false, in SyncOperation()
134 this(op.target, op.owningUid, op.owningPackage, op.reason, op.syncSource, in SyncOperation()
140 int reason, int source, Bundle extras, in SyncOperation() argument
147 this.reason = reason; in SyncOperation()
165 SyncOperation op = new SyncOperation(target, owningUid, owningPackage, reason, syncSource, in createOneTimeSyncOperation()
175 reason = other.reason; in SyncOperation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java89 public void showShutdownUi(boolean isReboot, String reason) { in showShutdownUi() argument
153 messageView.setText(getRebootMessage(isReboot, reason)); in showShutdownUi()
154 String rebootReasonMessage = getReasonMessage(reason); in showShutdownUi()
164 private int getRebootMessage(boolean isReboot, @Nullable String reason) { in getRebootMessage() argument
165 if (reason != null && reason.startsWith(PowerManager.REBOOT_RECOVERY_UPDATE)) { in getRebootMessage()
167 } else if (reason != null && reason.equals(PowerManager.REBOOT_RECOVERY)) { in getRebootMessage()
177 private String getReasonMessage(@Nullable String reason) { in getReasonMessage() argument
178 if (reason != null && reason.startsWith(PowerManager.REBOOT_RECOVERY_UPDATE)) { in getReasonMessage()
180 } else if (reason != null && reason.equals(PowerManager.REBOOT_RECOVERY)) { in getReasonMessage()
/frameworks/base/telecomm/java/android/telecom/
DDisconnectCause.java138 public DisconnectCause(int code, String reason) { in DisconnectCause() argument
139 this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN); in DisconnectCause()
150 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason) { in DisconnectCause() argument
151 this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN); in DisconnectCause()
163 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason, in DisconnectCause() argument
165 this(code, label, description, reason, toneToPlay, in DisconnectCause()
183 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason, in DisconnectCause() argument
190 mDisconnectReason = reason; in DisconnectCause()
286 String reason = source.readString();
291 return new DisconnectCause(code, label, description, reason, tone,
[all …]
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodDebug.java43 public static String startInputReasonToString(@StartInputReason int reason) { in startInputReasonToString() argument
44 switch (reason) { in startInputReasonToString()
68 return "Unknown=" + reason; in startInputReasonToString()
78 public static String unbindReasonToString(@UnbindReason int reason) { in unbindReasonToString() argument
79 switch (reason) { in unbindReasonToString()
95 return "Unknown=" + reason; in unbindReasonToString()
187 public static String softInputDisplayReasonToString(@SoftInputShowHideReason int reason) { in softInputDisplayReasonToString() argument
188 switch (reason) { in softInputDisplayReasonToString()
240 return "Unknown=" + reason; in softInputDisplayReasonToString()
/frameworks/base/apex/jobscheduler/framework/java/android/os/
DIDeviceIdleController.aidl46 …ddPowerSaveTempWhitelistApp(String name, long duration, int userId, int reasonCode, String reason); in addPowerSaveTempWhitelistApp() argument
47 long addPowerSaveTempWhitelistAppForMms(String name, int userId, int reasonCode, String reason); in addPowerSaveTempWhitelistAppForMms() argument
48 long addPowerSaveTempWhitelistAppForSms(String name, int userId, int reasonCode, String reason); in addPowerSaveTempWhitelistAppForSms() argument
49 long whitelistAppTemporarily(String name, int userId, int reasonCode, String reason); in whitelistAppTemporarily() argument
50 void exitIdle(String reason); in exitIdle() argument
/frameworks/native/services/inputflinger/dispatcher/
DCancelationOptions.h37 const char* reason; member
48 CancelationOptions(Mode mode, const char* reason) : mode(mode), reason(reason) {} in CancelationOptions()
/frameworks/base/services/uwb/java/com/android/server/uwb/
DUwbServiceImpl.java112 int reason, PersistableBundle parameters) throws RemoteException { in onRangingOpenFailed() argument
114 mExternalCb.onRangingOpenFailed(sessionHandle, reason, parameters); in onRangingOpenFailed()
127 int reason, PersistableBundle parameters) throws RemoteException { in onRangingStartFailed() argument
129 mExternalCb.onRangingStartFailed(sessionHandle, reason, parameters); in onRangingStartFailed()
142 int reason, PersistableBundle parameters) throws RemoteException { in onRangingReconfigureFailed() argument
144 mExternalCb.onRangingReconfigureFailed(sessionHandle, reason, parameters); in onRangingReconfigureFailed()
148 public synchronized void onRangingStopped(SessionHandle sessionHandle, int reason, in onRangingStopped() argument
152 mExternalCb.onRangingStopped(sessionHandle, reason, parameters); in onRangingStopped()
156 public synchronized void onRangingStopFailed(SessionHandle sessionHandle, int reason, in onRangingStopFailed() argument
159 mExternalCb.onRangingStopFailed(sessionHandle, reason, parameters); in onRangingStopFailed()
[all …]

12345678910>>...34