Home
last modified time | relevance | path

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

12345678910>>...48

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceCompilerMapping.java61 private static String getSystemPropertyName(int reason) { in getSystemPropertyName() argument
62 if (reason < 0 || reason >= REASON_STRINGS.length) { in getSystemPropertyName()
63 throw new IllegalArgumentException("reason " + reason + " invalid"); in getSystemPropertyName()
66 return "pm.dexopt." + REASON_STRINGS[reason]; in getSystemPropertyName()
71 private static String getAndCheckValidity(int reason) { in getAndCheckValidity() argument
72 String sysPropValue = SystemProperties.get(getSystemPropertyName(reason)); in getAndCheckValidity()
77 + "(reason " + REASON_STRINGS[reason] + ")"); in getAndCheckValidity()
78 } else if (!isFilterAllowedForReason(reason, sysPropValue)) { in getAndCheckValidity()
80 + "(reason " + REASON_STRINGS[reason] + ")"); in getAndCheckValidity()
86 private static boolean isFilterAllowedForReason(int reason, String filter) { in isFilterAllowedForReason() argument
[all …]
/frameworks/base/core/java/com/android/internal/os/
DTimeoutRecord.java86 private TimeoutRecord(@TimeoutKind int kind, @NonNull String reason, long endUptimeMillis, in TimeoutRecord() argument
89 this.mReason = reason; in TimeoutRecord()
96 private static TimeoutRecord endingNow(@TimeoutKind int kind, String reason) { in endingNow() argument
98 return new TimeoutRecord(kind, reason, endUptimeMillis, /* endTakenBeforeLocks */ true); in endingNow()
101 private static TimeoutRecord endingApproximatelyNow(@TimeoutKind int kind, String reason) { in endingApproximatelyNow() argument
103 return new TimeoutRecord(kind, reason, endUptimeMillis, /* endTakenBeforeLocks */ false); in endingApproximatelyNow()
128 final StringBuilder reason = new StringBuilder("Broadcast of "); in forBroadcastReceiver() local
129 intent.toString(reason); in forBroadcastReceiver()
130 return TimeoutRecord.endingNow(TimeoutKind.BROADCAST_RECEIVER, reason.toString()); in forBroadcastReceiver()
137 final StringBuilder reason = new StringBuilder("Broadcast of "); in forBroadcastReceiver() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DDataEvaluation.java62 public DataEvaluation(@NonNull DataEvaluationReason reason) { in DataEvaluation() argument
63 mDataEvaluationReason = reason; in DataEvaluation()
72 public void addDataDisallowedReason(DataDisallowedReason reason) { in addDataDisallowedReason() argument
74 mDataDisallowedReasons.add(reason); in addDataDisallowedReason()
83 public void removeDataDisallowedReason(DataDisallowedReason reason) { in removeDataDisallowedReason() argument
84 mDataDisallowedReasons.remove(reason); in removeDataDisallowedReason()
94 public void addDataAllowedReason(DataAllowedReason reason) { in addDataAllowedReason() argument
99 if (reason.ordinal() > mDataAllowedReason.ordinal()) { in addDataAllowedReason()
100 mDataAllowedReason = reason; in addDataAllowedReason()
151 public boolean contains(DataDisallowedReason reason) { in contains() argument
[all …]
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/filters/
DFilterPolicyWithReason.kt23 val reason: String = "", constant in com.android.hoststubgen.filters.FilterPolicyWithReason
29 fun wrapReason(reason: String): FilterPolicyWithReason { in wrapReason()
30 return FilterPolicyWithReason(policy, "$reason [inner-reason: ${this.reason}]") in wrapReason()
64 return "[$policy - reason: $reason]" in toString()
70 return reason.contains("anonymous-inner-class")
71 || reason.contains("is-annotation")
72 || reason.contains("is-enum")
73 || reason.contains("is-synthetic-method")
74 || reason.contains("special-class")
75 || reason.contains("substitute-to")
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzStateMachineImpl.java176 String reason = "handleNetworkAvailable"; in handleNetworkAvailable() local
177 restoreNetworkStateAndRerunDetection(reason); in handleNetworkAvailable()
184 String reason = "handleNetworkUnavailable"; in handleNetworkUnavailable() local
185 runDetection(reason); in handleNetworkUnavailable()
238 String reason = "handleNitzReceived(" + nitzSignal + ")"; in handleNitzReceived() local
239 runDetection(reason); in handleNitzReceived()
264 String reason = "handleAirplaneModeChanged(" + on + ")"; in handleAirplaneModeChanged() local
265 runDetection(reason); in handleAirplaneModeChanged()
269 private void restoreNetworkStateAndRerunDetection(String reason) { in restoreNetworkStateAndRerunDetection() argument
273 Rlog.d(LOG_TAG, reason + ": mLastNitzSignalCleared is null."); in restoreNetworkStateAndRerunDetection()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/model/
DCommunalEnabledState.kt46 constructor(reason: DisabledReason) : this(EnumSet.of(reason))
53 for (reason in DisabledReason.entries) { in logDiffs() method
54 val newVal = contains(reason) in logDiffs()
55 if (newVal != prevVal.contains(reason)) { in logDiffs()
57 columnName = reason.loggingString, in logDiffs()
65 for (reason in DisabledReason.entries) { in logFull() method
66 row.logChange(columnName = reason.loggingString, value = contains(reason)) in logFull()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerLogger.kt77 fun logAutoRemoveScheduled(entry: NotificationEntry, delayMillis: Long, reason: String) { in logAutoRemoveScheduled()
81 str2 = reason in logAutoRemoveScheduled()
87 fun logAutoRemoveRequest(entry: NotificationEntry, reason: String) { in logAutoRemoveRequest()
90 str2 = reason in logAutoRemoveRequest()
96 fun logAutoRemoveRescheduled(entry: NotificationEntry, delayMillis: Long, reason: String) { in logAutoRemoveRescheduled()
100 str2 = reason in logAutoRemoveRescheduled()
106 fun logAutoRemoveCancelRequest(entry: NotificationEntry, reason: String?) { in logAutoRemoveCancelRequest()
109 str2 = reason ?: "unknown" in logAutoRemoveCancelRequest()
115 fun logAutoRemoveCanceled(entry: NotificationEntry, reason: String?) { in logAutoRemoveCanceled()
118 str2 = reason ?: "unknown" in logAutoRemoveCanceled()
[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/services/core/java/com/android/server/input/
DInputSettingsObserver.java64 (reason) -> updateMousePointerSpeed()), in InputSettingsObserver()
66 (reason) -> updateTouchpadPointerSpeed()), in InputSettingsObserver()
68 (reason) -> updateTouchpadNaturalScrollingEnabled()), in InputSettingsObserver()
70 (reason) -> updateTouchpadTapToClickEnabled()), in InputSettingsObserver()
72 (reason) -> updateTouchpadTapDraggingEnabled()), in InputSettingsObserver()
74 (reason) -> updateTouchpadRightClickZoneEnabled()), in InputSettingsObserver()
76 (reason) -> updateShowTouches()), in InputSettingsObserver()
78 (reason) -> updatePointerLocation()), in InputSettingsObserver()
81 (reason) -> updateAccessibilityLargePointer()), in InputSettingsObserver()
83 (reason) -> updateLongPressTimeout(reason)), in InputSettingsObserver()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DShadeListBuilderLogger.kt45 fun logOnBuildList(reason: String?) { in logOnBuildList()
47 str1 = reason in logOnBuildList()
74 reason: String? in logPluggableInvalidated()
80 str3 = reason in logPluggableInvalidated()
89 reason: String?
90 ) = logPluggableInvalidated("Pre-render Invalidator", invalidator, pipelineState, reason)
95 reason: String?
96 ) = logPluggableInvalidated("Pre-group NotifFilter", filter, pipelineState, reason)
101 reason: String?
102 ) = logPluggableInvalidated("ReorderingNowAllowed", stabilityManager, pipelineState, reason)
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DExceptionUtils.java47 int reason; in throwAsPublicException() local
50 reason = CameraAccessException.CAMERA_DISCONNECTED; in throwAsPublicException()
53 reason = CameraAccessException.CAMERA_DISABLED; in throwAsPublicException()
56 reason = CameraAccessException.CAMERA_IN_USE; in throwAsPublicException()
59 reason = CameraAccessException.MAX_CAMERAS_IN_USE; in throwAsPublicException()
62 reason = CameraAccessException.CAMERA_DEPRECATED_HAL; in throwAsPublicException()
72 reason = CameraAccessException.CAMERA_ERROR; in throwAsPublicException()
75 throw new CameraAccessException(reason, e.getMessage(), e); in throwAsPublicException()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesPresetsController.java74 public void onPresetSelected(@NonNull BluetoothDevice device, int presetIndex, int reason) { in onPresetSelected() argument
81 + ", presetIndex: " + presetIndex + ", reason: " + reason); in onPresetSelected()
89 @NonNull List<BluetoothHapPresetInfo> presetInfoList, int reason) { in onPresetInfoChanged() argument
96 + ", reason: " + reason + ", infoList: " + presetInfoList); in onPresetInfoChanged()
103 public void onPresetSelectionFailed(@NonNull BluetoothDevice device, int reason) { in onPresetSelectionFailed() argument
109 + ", reason: " + reason); in onPresetSelectionFailed()
110 mPresetCallback.onPresetCommandFailed(reason); in onPresetSelectionFailed()
115 public void onPresetSelectionForGroupFailed(int hapGroupId, int reason) { in onPresetSelectionForGroupFailed() argument
121 + ", reason: " + reason); in onPresetSelectionForGroupFailed()
127 public void onSetPresetNameFailed(@NonNull BluetoothDevice device, int reason) { in onSetPresetNameFailed() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java115 public void tracePulseStart(@Reason int reason) { in tracePulseStart() argument
116 mLogger.logPulseStart(reason); in tracePulseStart()
265 public void traceWakeDisplay(boolean wake, @Reason int reason) { in traceWakeDisplay() argument
266 mLogger.logWakeDisplay(wake, reason); in traceWakeDisplay()
274 public void traceProximityResult(boolean near, long millis, @Reason int reason) { in traceProximityResult() argument
275 mLogger.logProximityResult(near, millis, reason); in traceProximityResult()
276 mProxStats[reason][near ? 0 : 1].append(); in traceProximityResult()
292 final String reason = reasonToString(i); in dump() local
293 mProxStats[i][0].dump(pw, "Proximity near (" + reason + ")"); in dump()
294 mProxStats[i][1].dump(pw, "Proximity far (" + reason + ")"); in dump()
[all …]
DDozeLogger.kt46 fun logPulseStart(@Reason reason: Int) { in logPulseStart()
48 int1 = reason in logPulseStart()
206 fun logWakeDisplay(isAwake: Boolean, @Reason reason: Int) { in logWakeDisplay()
209 int1 = reason in logWakeDisplay()
215 fun logProximityResult(isNear: Boolean, millis: Long, @Reason reason: Int) { in logProximityResult()
219 int1 = reason in logProximityResult()
248 fun logSensorEventDropped(sensorEvent: Int, reason: String) { in logSensorEventDropped()
251 str1 = reason in logSensorEventDropped()
267 fun logPulseDropped(reason: String) { in logPulseDropped()
269 str1 = reason in logPulseDropped()
[all …]
/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.currentTimeMillis(), reason)); in recordCheckPointInternal()
129 void recordCheckPointInternal(int callerProcessId, @Nullable String reason) { in recordCheckPointInternal() argument
132 ? new SystemServerCheckPoint(timestamp, reason) in recordCheckPointInternal()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DBiometricFrameworkStatsLoggerTest.java40 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenEmpty() local
44 assertThat(reason).isEqualTo(BiometricsProtoEnums.WAKE_REASON_UNKNOWN); in testConvertsWakeReason_whenEmpty()
55 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenPowerReason() local
60 assertThat(reason).isEqualTo(BiometricsProtoEnums.WAKE_REASON_WAKE_MOTION); in testConvertsWakeReason_whenPowerReason()
72 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenFaceReason() local
76 assertThat(reason).isEqualTo(BiometricsProtoEnums.WAKE_REASON_UNKNOWN); in testConvertsWakeReason_whenFaceReason()
89 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenVendorReason() local
93 assertThat(reason).isEqualTo(BiometricsProtoEnums.WAKE_REASON_UNKNOWN); in testConvertsWakeReason_whenVendorReason()
107 final int reason = BiometricFrameworkStatsLogger.toProtoWakeReason(ctx); in testConvertsWakeReason_whenPowerAndFaceReason() local
111 assertThat(reason).isEqualTo(BiometricsProtoEnums.WAKE_REASON_WAKE_KEY); in testConvertsWakeReason_whenPowerAndFaceReason()
[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/statusbar/notification/collection/coordinator/
DHeadsUpCoordinatorLogger.kt20 fun logPostedEntryWillEvaluate(posted: HeadsUpCoordinator.PostedEntry, reason: String) { in logPostedEntryWillEvaluate()
24 str2 = reason in logPostedEntryWillEvaluate()
33 fun logPostedEntryWillNotEvaluate(posted: HeadsUpCoordinator.PostedEntry, reason: String) { in logPostedEntryWillNotEvaluate()
37 str2 = reason in logPostedEntryWillNotEvaluate()
64 fun logEntryUpdatedByRanking(key: String, shouldHun: Boolean, reason: String) { in logEntryUpdatedByRanking()
68 str2 = reason in logEntryUpdatedByRanking()
74 fun logEntryUpdatedToFullScreen(key: String, reason: String) { in logEntryUpdatedToFullScreen()
77 str2 = reason in logEntryUpdatedToFullScreen()
83 fun logEntryDisqualifiedFromFullScreen(key: String, reason: String) { in logEntryDisqualifiedFromFullScreen()
86 str2 = reason in logEntryDisqualifiedFromFullScreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaLoadingLogger.kt30 fun logMediaLoaded(instanceId: InstanceId, active: Boolean, reason: String) { in logMediaLoaded()
37 str2 = reason in logMediaLoaded()
43 fun logMediaRemoved(instanceId: InstanceId, reason: String) { in logMediaRemoved()
49 str2 = reason in logMediaRemoved()
55 fun logRecommendationLoaded(key: String, isActive: Boolean, reason: String) { in logRecommendationLoaded()
62 str2 = reason in logRecommendationLoaded()
68 fun logRecommendationRemoved(key: String, immediately: Boolean, reason: String) { in logRecommendationRemoved()
75 str2 = reason in logRecommendationRemoved()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionSuppressor.kt54 val reason: String constant
72 override val reason: String, constant in com.android.systemui.statusbar.notification.interruption.VisualInterruptionCondition
78 reason: String
79 ) : this(types, reason, /* uiEventId = */ null)
88 override val reason: String, in shouldSuppress() constant in com.android.systemui.statusbar.notification.interruption.VisualInterruptionFilter
94 reason: String in shouldSuppress()
95 ) : this(types, reason, /* uiEventId = */ null) in shouldSuppress()
/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()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java134 static String reasonToString(int reason) { in reasonToString() argument
135 switch (reason) { in reasonToString()
165 return "Unknown reason: " + reason; in reasonToString()
266 void postStateChanged(boolean sendBroadcast, int reason) { in postStateChanged() argument
268 ARG_SEND_BROADCAST : ARG_DONT_SEND_BROADCAST, reason).sendToTarget(); in postStateChanged()
289 public void enableBatterySaver(boolean enable, int reason) { in enableBatterySaver() argument
297 mHandler.postStateChanged(/*sendBroadcast=*/ true, reason); in enableBatterySaver()
343 boolean setFullPolicyLocked(BatterySaverPolicyConfig config, int reason) { in setFullPolicyLocked() argument
344 return setFullPolicyLocked(BatterySaverPolicy.Policy.fromConfig(config), reason); in setFullPolicyLocked()
347 boolean setFullPolicyLocked(Policy policy, int reason) { in setFullPolicyLocked() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DAudioSharingRepository.kt49 override fun onBroadcastStarted(reason: Int, broadcastId: Int) { in leBroadcast()
53 override fun onBroadcastStartFailed(reason: Int) { in leBroadcast()
57 override fun onBroadcastStopped(reason: Int, broadcastId: Int) { in leBroadcast()
61 override fun onBroadcastStopFailed(reason: Int) { in leBroadcast()
65 override fun onPlaybackStarted(reason: Int, broadcastId: Int) {} in leBroadcast()
67 override fun onPlaybackStopped(reason: Int, broadcastId: Int) {} in leBroadcast()
69 override fun onBroadcastUpdated(reason: Int, broadcastId: Int) {} in leBroadcast()
72 reason: Int, in leBroadcast()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java65 public static void traceIntercepted(NotificationRecord record, String reason) { in traceIntercepted() argument
66 append(TYPE_INTERCEPTED, record.getKey() + "," + reason); in traceIntercepted()
69 public static void traceNotIntercepted(NotificationRecord record, String reason) { in traceNotIntercepted() argument
70 append(TYPE_NOT_INTERCEPTED, record.getKey() + "," + reason); in traceNotIntercepted()
95 public static void traceSetZenMode(int zenMode, String reason) { in traceSetZenMode() argument
96 append(TYPE_SET_ZEN_MODE, zenModeToString(zenMode) + "," + reason); in traceSetZenMode()
103 String reason) { in traceSetConsolidatedZenPolicy() argument
104 append(TYPE_SET_CONSOLIDATED_ZEN_POLICY, policy.toString() + "," + reason); in traceSetConsolidatedZenPolicy()
123 public static void traceConfig(String reason, ComponentName triggeringComponent, in traceConfig() argument
127 append(TYPE_CONFIG, reason + " no changes"); in traceConfig()
[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()

12345678910>>...48