Home
last modified time | relevance | path

Searched refs:statusCode (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/base/drm/java/android/drm/
DDrmConvertedStatus.java50 public final int statusCode; field in DrmConvertedStatus
68 public DrmConvertedStatus(int statusCode, byte[] convertedData, int offset) { in DrmConvertedStatus() argument
69 if (!isValidStatusCode(statusCode)) { in DrmConvertedStatus()
70 throw new IllegalArgumentException("Unsupported status code: " + statusCode); in DrmConvertedStatus()
73 this.statusCode = statusCode; in DrmConvertedStatus()
78 private boolean isValidStatusCode(int statusCode) { in isValidStatusCode() argument
79 return statusCode == STATUS_OK || in isValidStatusCode()
80 statusCode == STATUS_INPUTDATA_ERROR || in isValidStatusCode()
81 statusCode == STATUS_ERROR; in isValidStatusCode()
DDrmInfoStatus.java46 public final int statusCode; field in DrmInfoStatus
74 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { in DrmInfoStatus() argument
79 if (!isValidStatusCode(statusCode)) { in DrmInfoStatus()
80 throw new IllegalArgumentException("Unsupported status code: " + statusCode); in DrmInfoStatus()
87 this.statusCode = statusCode; in DrmInfoStatus()
93 private boolean isValidStatusCode(int statusCode) { in isValidStatusCode() argument
94 return statusCode == STATUS_OK || statusCode == STATUS_ERROR; in isValidStatusCode()
DDrmOutputStream.java70 if (status.statusCode == STATUS_OK) { in finish()
79 throw new IOException("Unexpected DRM status: " + status.statusCode); in finish()
105 if (status.statusCode == STATUS_OK) { in write()
108 throw new IOException("Unexpected DRM status: " + status.statusCode); in write()
/frameworks/base/core/java/android/webkit/
DWebResourceResponse.java89 public WebResourceResponse(String mimeType, String encoding, int statusCode, in WebResourceResponse() argument
92 setStatusCodeAndReasonPhrase(statusCode, reasonPhrase); in WebResourceResponse()
143 public void setStatusCodeAndReasonPhrase(int statusCode, @NonNull String reasonPhrase) { in setStatusCodeAndReasonPhrase() argument
145 if (statusCode < 100) in setStatusCodeAndReasonPhrase()
147 if (statusCode > 599) in setStatusCodeAndReasonPhrase()
149 if (statusCode > 299 && statusCode < 400) in setStatusCodeAndReasonPhrase()
162 mStatusCode = statusCode; in setStatusCodeAndReasonPhrase()
235 public WebResourceResponse(boolean immutable, String mimeType, String encoding, int statusCode, in WebResourceResponse() argument
240 mStatusCode = statusCode; in WebResourceResponse()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DKeepaliveStatus.java50 public final int statusCode; field in KeepaliveStatus
57 statusCode = STATUS_INACTIVE; in KeepaliveStatus()
63 statusCode = code; in KeepaliveStatus()
71 errorCode, sessionHandle, statusCode); in toString()
84 dest.writeInt(statusCode); in writeToParcel()
90 statusCode = p.readInt(); in KeepaliveStatus()
DDcNetworkAgent.java437 switch (ks.statusCode) { in handleKeepaliveStarted()
451 slot, ks.statusCode)); in handleKeepaliveStarted()
454 logd("Invalid KeepaliveStatus Code: " + ks.statusCode); in handleKeepaliveStarted()
478 switch (ks.statusCode) { in handleKeepaliveStatus()
495 loge("Invalid Keepalive Status received, " + ks.statusCode); in handleKeepaliveStatus()
499 switch (ks.statusCode) { in handleKeepaliveStatus()
513 loge("Invalid Keepalive Status received, " + ks.statusCode); in handleKeepaliveStatus()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java90 public int statusCode; field in MediaRouterClientState.RouteInfo
102 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
116 statusCode = other.statusCode; in RouteInfo()
132 statusCode = in.readInt(); in RouteInfo()
154 dest.writeInt(statusCode); in writeToParcel()
171 + ", statusCode=" + statusCode in toString()
/frameworks/base/core/java/android/speech/tts/
DAbstractEventLogger.java92 public void onCompleted(int statusCode) { in onCompleted() argument
107 if (statusCode != TextToSpeech.SUCCESS in onCompleted()
109 logFailure(statusCode); in onCompleted()
119 protected abstract void logFailure(int statusCode); in logFailure() argument
DPlaybackSynthesisCallback.java217 int statusCode = 0; in done() local
246 statusCode = mStatusCode; in done()
250 if (statusCode == TextToSpeech.SUCCESS) { in done()
253 item.stop(statusCode); in done()
DEventLogger.java34 protected void logFailure(int statusCode) { in logFailure() argument
38 if (statusCode != TextToSpeech.STOPPED) { in logFailure()
/frameworks/base/core/java/android/app/contentsuggestions/
DContentSuggestionsManager.java212 int statusCode, @NonNull List<ContentSelection> selections); in onContentSelectionsAvailable() argument
227 void onContentClassificationsAvailable(int statusCode, in onContentClassificationsAvailable() argument
243 int statusCode, List<ContentSelection> selections) { in onContentSelectionsAvailable() argument
247 mCallback.onContentSelectionsAvailable(statusCode, selections)); in onContentSelectionsAvailable()
267 int statusCode, List<ContentClassification> classifications) { in onContentClassificationsAvailable() argument
271 mCallback.onContentClassificationsAvailable(statusCode, classifications)); in onContentClassificationsAvailable()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallFailed.java53 private void setExplanationFromErrorCode(int statusCode) { in setExplanationFromErrorCode() argument
54 Log.d(LOG_TAG, "Installation status code: " + statusCode); in setExplanationFromErrorCode()
57 switch (statusCode) { in setExplanationFromErrorCode()
82 int statusCode = getIntent().getIntExtra(PackageInstaller.EXTRA_STATUS, in onCreate() local
123 if (statusCode == PackageInstaller.STATUS_FAILURE_STORAGE) { in onCreate()
128 setExplanationFromErrorCode(statusCode); in onCreate()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DHSIconFileElementTest.java45 private static byte[] getTestData(int statusCode) throws IOException { in getTestData() argument
47 out.write((byte) statusCode); in getTestData()
48 if (statusCode != HSIconFileElement.STATUS_CODE_SUCCESS) { in getTestData()
/frameworks/base/core/java/android/service/contentsuggestions/
DContentSuggestionsService.java165 return (statusCode, selections) -> { in wrapSelectionsCallback()
167 callback.onContentSelectionsAvailable(statusCode, selections); in wrapSelectionsCallback()
176 return ((statusCode, classifications) -> {
178 callback.onContentClassificationsAvailable(statusCode, classifications);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWapPushOverSms.java230 result.statusCode = Intents.RESULT_SMS_HANDLED; in decodeWapPdu()
235 result.statusCode = Intents.RESULT_SMS_HANDLED; in decodeWapPdu()
251 result.statusCode = Intents.RESULT_SMS_GENERIC_ERROR; in decodeWapPdu()
273 result.statusCode = Intents.RESULT_SMS_GENERIC_ERROR; in decodeWapPdu()
311 result.statusCode = Intents.RESULT_SMS_HANDLED; in decodeWapPdu()
345 result.statusCode = Activity.RESULT_OK; in decodeWapPdu()
350 result.statusCode = Intents.RESULT_SMS_GENERIC_ERROR; in decodeWapPdu()
368 if (result.statusCode != Activity.RESULT_OK) { in dispatchWapPdu()
369 return result.statusCode; in dispatchWapPdu()
465 return result.statusCode == Activity.RESULT_OK in isWapPushForMms()
[all …]
/frameworks/base/libs/storage/
DIMountShutdownObserver.cpp42 int32_t statusCode = data.readInt32(); in onTransact() local
43 onShutDownComplete(statusCode); in onTransact()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java69 int statusCode = in.getInt(); in handleChunk() local
71 Runtime.getRuntime().halt(statusCode); in handleChunk()
/frameworks/base/core/java/com/android/ims/internal/uce/options/
DIOptionsListener.aidl42 void serviceAvailable(in StatusCode statusCode); in serviceAvailable() argument
51 void serviceUnavailable(in StatusCode statusCode); in serviceUnavailable() argument
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.cpp126 static status_t statusCode(int status) { in statusCode() function
142 return statusCode(status); in kill_child()
155 return statusCode(status); in wait_child()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java953 int statusCode = response.getStatusCode(); in registeringToReady() local
954 switch (statusCode) { in registeringToReady()
966 if (statusCode >= 500) { in registeringToReady()
1056 private String getResponseString(int statusCode) {
1058 statusLine.setStatusCode(statusCode);
1059 statusLine.setReasonPhrase(SIPResponse.getReasonPhrase(statusCode));
1154 int statusCode = response.getStatusCode();
1155 switch (statusCode) {
1193 if (statusCode >= 400) {
1197 } else if (statusCode >= 300) {
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGpsPsdsDownloader.java133 int statusCode = connection.getResponseCode(); in doDownload() local
134 if (statusCode != HttpURLConnection.HTTP_OK) { in doDownload()
135 if (DEBUG) Log.d(TAG, "HTTP error downloading gps PSDS: " + statusCode); in doDownload()
/frameworks/base/core/java/com/android/ims/internal/uce/presence/
DIPresenceListener.aidl48 void serviceAvailable(in StatusCode statusCode); in serviceAvailable() argument
56 void serviceUnAvailable(in StatusCode statusCode); in serviceUnAvailable() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DHSIconFileElement.java59 public HSIconFileElement(int statusCode, String iconType, byte[] iconData) { in HSIconFileElement() argument
61 mStatusCode = statusCode; in HSIconFileElement()
/frameworks/base/packages/Tethering/src/android/net/ip/
DIpServer.java400 public void onStatusAvailable(int statusCode) { in onStatusAvailable() argument
401 getHandler().post(() -> callback(statusCode)); in onStatusAvailable()
404 public abstract void callback(int statusCode); in callback() argument
425 public void onDhcpServerCreated(int statusCode, IDhcpServer server) throws RemoteException { in onDhcpServerCreated() argument
439 if (statusCode != STATUS_SUCCESS) { in onDhcpServerCreated()
440 mLog.e("Error obtaining DHCP server: " + statusCode); in onDhcpServerCreated()
564 public void callback(int statusCode) { in stopDhcp()
565 if (statusCode != STATUS_SUCCESS) { in stopDhcp()
566 mLog.e("Error stopping DHCP server: " + statusCode); in stopDhcp()
972 public void callback(int statusCode) { in handleNewPrefixRequest()
[all …]
/frameworks/base/core/java/android/os/storage/
DIStorageShutdownObserver.aidl33 void onShutDownComplete(int statusCode) = 0; in onShutDownComplete() argument

123