Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceCompilerMapping.java40 private static String getSystemPropertyName(int reason) { in getSystemPropertyName() argument
41 if (reason < 0 || reason >= REASON_STRINGS.length) { in getSystemPropertyName()
42 throw new IllegalArgumentException("reason " + reason + " invalid"); in getSystemPropertyName()
45 return "pm.dexopt." + REASON_STRINGS[reason]; in getSystemPropertyName()
50 private static String getAndCheckValidity(int reason) { in getAndCheckValidity() argument
51 String sysPropValue = SystemProperties.get(getSystemPropertyName(reason)); in getAndCheckValidity()
55 + "(reason " + REASON_STRINGS[reason] + ")"); in getAndCheckValidity()
59 switch (reason) { in getAndCheckValidity()
64 + "but not allowed for " + REASON_STRINGS[reason]); in getAndCheckValidity()
79 for (int reason = 0; reason <= PackageManagerService.REASON_LAST; reason++) { in checkProperties()
[all …]
DPackageUsage.java137 for (int reason = 0; in readVersion0LP()
138 reason < PackageManager.NOTIFY_PACKAGE_USE_REASONS_COUNT; in readVersion0LP()
139 reason++) { in readVersion0LP()
140 pkg.mLastPackageUsageTimeInMills[reason] = timestamp; in readVersion0LP()
162 for (int reason = 0; in readVersion1LP()
163 reason < PackageManager.NOTIFY_PACKAGE_USE_REASONS_COUNT; in readVersion1LP()
164 reason++) { in readVersion1LP()
165 pkg.mLastPackageUsageTimeInMills[reason] = parseAsLong(tokens[reason + 1]); in readVersion1LP()
/frameworks/base/wifi/java/android/net/wifi/nan/
DWifiNanSessionListener.java235 public void onPublishFail(int reason) { in onPublishFail() argument
248 public void onPublishTerminated(int reason) { in onPublishTerminated() argument
260 public void onSubscribeFail(int reason) { in onSubscribeFail() argument
274 public void onSubscribeTerminated(int reason) { in onSubscribeTerminated() argument
328 public void onMessageSendFail(int messageId, int reason) { in onMessageSendFail() argument
351 public void onPublishFail(int reason) {
352 if (VDBG) Log.v(TAG, "onPublishFail: reason=" + reason);
355 msg.arg1 = reason;
360 public void onPublishTerminated(int reason) {
361 if (VDBG) Log.v(TAG, "onPublishResponse: reason=" + reason);
[all …]
DWifiNanEventListener.java133 public void onConfigFailed(ConfigRequest failedConfig, int reason) { in onConfigFailed() argument
145 public void onNanDown(int reason) { in onNanDown() argument
177 public void onConfigFailed(ConfigRequest failedConfig, int reason) {
179 Log.v(TAG, "onConfigFailed: failedConfig=" + failedConfig + ", reason=" + reason);
183 msg.arg1 = reason;
189 public void onNanDown(int reason) {
190 if (VDBG) Log.v(TAG, "onNanDown: reason=" + reason);
193 msg.arg1 = reason;
DIWifiNanSessionListener.aidl26 void onPublishFail(int reason); in onPublishFail() argument
27 void onPublishTerminated(int reason); in onPublishTerminated() argument
29 void onSubscribeFail(int reason); in onSubscribeFail() argument
30 void onSubscribeTerminated(int reason); in onSubscribeTerminated() argument
36 void onMessageSendFail(int messageId, int reason); in onMessageSendFail() argument
/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java71 public final int reason; field in SyncOperation
101 int reason, int source, String provider, Bundle extras, in SyncOperation() argument
104 reason, source, extras, allowParallelSyncs); in SyncOperation()
108 int reason, int source, Bundle extras, boolean allowParallelSyncs) { in SyncOperation() argument
109 this(info, owningUid, owningPackage, reason, source, extras, allowParallelSyncs, false, in SyncOperation()
114 this(op.target, op.owningUid, op.owningPackage, op.reason, op.syncSource, in SyncOperation()
120 int reason, int source, Bundle extras, boolean allowParallelSyncs, in SyncOperation() argument
126 this.reason = reason; in SyncOperation()
143 SyncOperation op = new SyncOperation(target, owningUid, owningPackage, reason, syncSource, in createOneTimeSyncOperation()
153 reason = other.reason; in SyncOperation()
[all …]
/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/core/java/com/android/internal/view/
DInputMethodClient.java44 public static String getStartInputReason(@StartInputReason final int reason) { in getStartInputReason() argument
45 switch (reason) { in getStartInputReason()
65 return "Unknown=" + reason; in getStartInputReason()
83 public static String getUnbindReason(@UnbindReason final int reason) { in getUnbindReason() argument
84 switch (reason) { in getUnbindReason()
100 return "Unknown=" + reason; in getUnbindReason()
/frameworks/base/telecomm/java/android/telecom/
DDisconnectCause.java99 public DisconnectCause(int code, String reason) { in DisconnectCause() argument
100 this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN); in DisconnectCause()
111 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason) { in DisconnectCause() argument
112 this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN); in DisconnectCause()
124 public DisconnectCause(int code, CharSequence label, CharSequence description, String reason, in DisconnectCause() argument
129 mDisconnectReason = reason; in DisconnectCause()
194 String reason = source.readString();
196 return new DisconnectCause(code, label, description, reason, tone);
291 String reason = mDisconnectReason == null ? "" : mDisconnectReason; in toString() local
295 + " Reason: (" + reason + ")" in toString()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java211 private void loadConfigForUser(int user, String reason) { in loadConfigForUser() argument
214 if (DEBUG) Log.d(TAG, reason + " u=" + user); in loadConfigForUser()
217 if (DEBUG) Log.d(TAG, reason + " generating default config for user " + user); in loadConfigForUser()
222 setConfigLocked(config, reason); in loadConfigForUser()
279 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule, String reason) { in addAutomaticZenRule() argument
303 Log.d(TAG, "addAutomaticZenRule rule= " + automaticZenRule + " reason=" + reason); in addAutomaticZenRule()
309 if (setConfigLocked(newConfig, reason, true)) { in addAutomaticZenRule()
318 String reason) { in updateAutomaticZenRule() argument
324 + " reason=" + reason); in updateAutomaticZenRule()
339 return setConfigLocked(newConfig, reason, true); in updateAutomaticZenRule()
[all …]
DZenLog.java67 public static void traceIntercepted(NotificationRecord record, String reason) { in traceIntercepted() argument
69 append(TYPE_INTERCEPTED, record.getKey() + "," + reason); in traceIntercepted()
72 public static void traceNotIntercepted(NotificationRecord record, String reason) { in traceNotIntercepted() argument
74 append(TYPE_NOT_INTERCEPTED, record.getKey() + "," + reason); in traceNotIntercepted()
99 public static void traceSetZenMode(int zenMode, String reason) { in traceSetZenMode() argument
100 append(TYPE_SET_ZEN_MODE, zenModeToString(zenMode) + "," + reason); in traceSetZenMode()
107 public static void traceExitCondition(Condition c, ComponentName component, String reason) { in traceExitCondition() argument
108 append(TYPE_EXIT_CONDITION, c + "," + componentToString(component) + "," + reason); in traceExitCondition()
119 public static void traceConfig(String reason, ZenModeConfig oldConfig, in traceConfig() argument
121 append(TYPE_CONFIG, reason in traceConfig()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLastResortWatchdog.java182 public boolean noteConnectionFailureAndTriggerIfNeeded(String ssid, String bssid, int reason) { in noteConnectionFailureAndTriggerIfNeeded() argument
185 + reason + "]"); in noteConnectionFailureAndTriggerIfNeeded()
188 updateFailureCountForNetwork(ssid, bssid, reason); in noteConnectionFailureAndTriggerIfNeeded()
230 private void updateFailureCountForNetwork(String ssid, String bssid, int reason) { in updateFailureCountForNetwork() argument
233 + reason + "]"); in updateFailureCountForNetwork()
236 incrementSsidFailureCount(ssid, reason); in updateFailureCountForNetwork()
240 incrementBssidFailureCount(ssid, bssid, reason); in updateFailureCountForNetwork()
249 private void incrementSsidFailureCount(String ssid, int reason) { in incrementSsidFailureCount() argument
258 failureCount.incrementFailureCount(reason); in incrementSsidFailureCount()
266 private void incrementBssidFailureCount(String ssid, String bssid, int reason) { in incrementBssidFailureCount() argument
[all …]
DSoftApManager.java107 private void updateApState(int state, int reason) { in updateApState() argument
109 mListener.onStateChanged(state, reason); in updateApState()
202 int reason = WifiManager.SAP_START_FAILURE_GENERAL; in processMessage() local
204 reason = WifiManager.SAP_START_FAILURE_NO_CHANNEL; in processMessage()
206 updateApState(WifiManager.WIFI_AP_STATE_FAILED, reason); in processMessage()
/frameworks/base/core/java/android/os/
DIDeviceIdleController.aidl37 void addPowerSaveTempWhitelistApp(String name, long duration, int userId, String reason); in addPowerSaveTempWhitelistApp() argument
38 long addPowerSaveTempWhitelistAppForMms(String name, int userId, String reason); in addPowerSaveTempWhitelistAppForMms() argument
39 long addPowerSaveTempWhitelistAppForSms(String name, int userId, String reason); in addPowerSaveTempWhitelistAppForSms() argument
40 void exitIdle(String reason); in exitIdle() argument
DIPowerManager.aidl43 void wakeUp(long time, String reason, String opPackageName); in wakeUp() argument
44 void goToSleep(long time, int reason, int flags); in goToSleep() argument
52 void reboot(boolean confirm, String reason, boolean wait); in reboot() argument
54 void shutdown(boolean confirm, String reason, boolean wait); in shutdown() argument
DPowerManager.java672 public void goToSleep(long time, int reason, int flags) { in goToSleep() argument
674 mService.goToSleep(time, reason, flags); in goToSleep()
710 public void wakeUp(long time, String reason) { in wakeUp() argument
712 mService.wakeUp(time, reason, mContext.getOpPackageName()); in wakeUp()
891 public void reboot(String reason) { in reboot() argument
893 mService.reboot(false, reason, true); in reboot()
1015 public void shutdown(boolean confirm, String reason, boolean wait) { in shutdown() argument
1017 mService.shutdown(confirm, reason, wait); in shutdown()
DParcelFormatException.java28 public ParcelFormatException(String reason) { in ParcelFormatException() argument
29 super(reason); in ParcelFormatException()
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java199 void stop(int reason) { in stop() argument
212 notifyMessenger(mSlot, reason); in stop()
256 public void handleStopAllKeepalives(NetworkAgentInfo nai, int reason) { in handleStopAllKeepalives() argument
260 ki.stop(reason); in handleStopAllKeepalives()
267 public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) { in handleStopKeepalive() argument
279 ki.stop(reason); in handleStopKeepalive()
304 int reason = message.arg2; in handleEventPacketKeepalive() local
315 if (reason == SUCCESS && !ki.isStarted) { in handleEventPacketKeepalive()
319 ki.notifyMessenger(slot, reason); in handleEventPacketKeepalive()
323 if (reason == SUCCESS) { in handleEventPacketKeepalive()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java1066 public static String getNetworkDisableReasonString(int reason) { in getNetworkDisableReasonString() argument
1067 if (reason >= NETWORK_SELECTION_ENABLE && reason < NETWORK_SELECTION_DISABLED_MAX) { in getNetworkDisableReasonString()
1068 return QUALITY_NETWORK_SELECTION_DISABLE_REASON[reason]; in getNetworkDisableReasonString()
1130 public void setNetworkSelectionDisableReason(int reason) { in setNetworkSelectionDisableReason() argument
1131 if (reason >= 0 && reason < NETWORK_SELECTION_DISABLED_MAX) { in setNetworkSelectionDisableReason()
1132 mNetworkSelectionDisableReason = reason; in setNetworkSelectionDisableReason()
1134 throw new IllegalArgumentException("Illegal reason value: " + reason); in setNetworkSelectionDisableReason()
1144 public boolean isDisabledByReason(int reason) { in isDisabledByReason() argument
1145 return mNetworkSelectionDisableReason == reason; in isDisabledByReason()
1170 public int getDisableReasonCounter(int reason) { in getDisableReasonCounter() argument
[all …]
/frameworks/native/services/powermanager/
DIPowerManager.cpp99 virtual status_t goToSleep(int64_t event_time_ms, int reason, int flags) in goToSleep() argument
104 data.writeInt32(reason); in goToSleep()
109 virtual status_t reboot(bool confirm, const String16& reason, bool wait) in reboot() argument
114 data.writeString16(reason); in reboot()
119 virtual status_t shutdown(bool confirm, const String16& reason, bool wait) in shutdown() argument
124 data.writeString16(reason); in shutdown()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl50 String reason, String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnection() argument
53 String reason, String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnectionForSubscriber() argument
55 void notifyDataConnectionFailed(String reason, String apnType); in notifyDataConnectionFailed() argument
56 void notifyDataConnectionFailedForSubscriber(int subId, String reason, String apnType); in notifyDataConnectionFailedForSubscriber() argument
64 void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
/frameworks/support/core-utils/java/android/support/v4/content/
DLocalBroadcastManager.java243 String reason; in sendBroadcast() local
245 case IntentFilter.NO_MATCH_ACTION: reason = "action"; break; in sendBroadcast()
246 case IntentFilter.NO_MATCH_CATEGORY: reason = "category"; break; in sendBroadcast()
247 case IntentFilter.NO_MATCH_DATA: reason = "data"; break; in sendBroadcast()
248 case IntentFilter.NO_MATCH_TYPE: reason = "type"; break; in sendBroadcast()
249 default: reason = "unknown reason"; break; in sendBroadcast()
251 Log.v(TAG, " Filter did not match: " + reason); in sendBroadcast()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneNotifier.java42 public void notifyDataConnection(Phone sender, String reason, String apnType, in notifyDataConnection() argument
45 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType); in notifyDataConnectionFailed() argument
57 public void notifyPreciseDataConnectionFailed(Phone sender, String reason, String apnType, in notifyPreciseDataConnectionFailed() argument
DDefaultPhoneNotifier.java156 public void notifyDataConnection(Phone sender, String reason, String apnType, in notifyDataConnection() argument
158 doNotifyDataConnection(sender, reason, apnType, state); in notifyDataConnection()
161 private void doNotifyDataConnection(Phone sender, String reason, String apnType, in doNotifyDataConnection() argument
186 sender.isDataConnectivityPossible(apnType), reason, in doNotifyDataConnection()
201 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType) { in notifyDataConnectionFailed() argument
205 mRegistry.notifyDataConnectionFailedForSubscriber(subId, reason, apnType); in notifyDataConnectionFailed()
276 public void notifyPreciseDataConnectionFailed(Phone sender, String reason, String apnType, in notifyPreciseDataConnectionFailed() argument
280 mRegistry.notifyPreciseDataConnectionFailed(reason, apnType, apn, failCause); in notifyPreciseDataConnectionFailed()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardAbsKeyInputView.java237 public void onResume(int reason) { in onResume() argument
247 public void showPromptReason(int reason) { in showPromptReason() argument
248 if (reason != PROMPT_REASON_NONE) { in showPromptReason()
249 int promtReasonStringRes = getPromtReasonStringRes(reason); in showPromptReason()
263 protected abstract int getPromtReasonStringRes(int reason); in getPromtReasonStringRes() argument

12345678910>>...19