Home
last modified time | relevance | path

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

12

/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.java73 public WebResourceResponse(String mimeType, String encoding, int statusCode, in WebResourceResponse() argument
76 setStatusCodeAndReasonPhrase(statusCode, reasonPhrase); in WebResourceResponse()
127 public void setStatusCodeAndReasonPhrase(int statusCode, String reasonPhrase) { in setStatusCodeAndReasonPhrase() argument
129 if (statusCode < 100) in setStatusCodeAndReasonPhrase()
131 if (statusCode > 599) in setStatusCodeAndReasonPhrase()
133 if (statusCode > 299 && statusCode < 400) in setStatusCodeAndReasonPhrase()
146 mStatusCode = statusCode; in setStatusCodeAndReasonPhrase()
218 public WebResourceResponse(boolean immutable, String mimeType, String encoding, int statusCode, in WebResourceResponse() argument
223 mStatusCode = statusCode; in WebResourceResponse()
/frameworks/volley/src/main/java/com/android/volley/
DNetworkResponse.java36 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument
38 this.statusCode = statusCode; in NetworkResponse()
45 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, in NetworkResponse() argument
47 this(statusCode, data, headers, notModified, 0); in NetworkResponse()
59 public final int statusCode; field in NetworkResponse
/frameworks/base/core/java/android/os/storage/
DIMountShutdownObserver.java69 int statusCode; in onTransact() local
70 statusCode = data.readInt(); in onTransact()
71 this.onShutDownComplete(statusCode); in onTransact()
100 public void onShutDownComplete(int statusCode) throws RemoteException { in onShutDownComplete() argument
105 _data.writeInt(statusCode); in onShutDownComplete()
123 public void onShutDownComplete(int statusCode) throws RemoteException; in onShutDownComplete() argument
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DBasicNetwork.java98 int statusCode = statusLine.getStatusCode(); in performRequest() local
102 if (statusCode == HttpStatus.SC_NOT_MODIFIED) { in performRequest()
134 if (statusCode < 200 || statusCode > 299) { in performRequest()
137 return new NetworkResponse(statusCode, responseContents, responseHeaders, false, in performRequest()
146 int statusCode = 0; in performRequest()
149 statusCode = httpResponse.getStatusLine().getStatusCode(); in performRequest()
153 VolleyLog.e("Unexpected response code %d for %s", statusCode, request.getUrl()); in performRequest()
155 networkResponse = new NetworkResponse(statusCode, responseContents, in performRequest()
157 if (statusCode == HttpStatus.SC_UNAUTHORIZED || in performRequest()
158 statusCode == HttpStatus.SC_FORBIDDEN) { in performRequest()
/frameworks/base/media/java/android/media/
DMediaRouterClientState.java100 public int statusCode; field in MediaRouterClientState.RouteInfo
111 statusCode = MediaRouter.RouteInfo.STATUS_NONE; in RouteInfo()
124 statusCode = other.statusCode; in RouteInfo()
139 statusCode = in.readInt(); in RouteInfo()
160 dest.writeInt(statusCode); in writeToParcel()
176 + ", 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.java205 int statusCode = 0; in done() local
234 statusCode = mStatusCode; in done()
238 if (statusCode == TextToSpeech.SUCCESS) { in done()
241 item.stop(statusCode); in done()
DEventLoggerV1.java34 protected void logFailure(int statusCode) { in logFailure() argument
38 if (statusCode != TextToSpeech.STOPPED) { in logFailure()
DSynthesisPlaybackQueueItem.java124 void stop(int statusCode) { in stop() argument
130 mStatusCode = statusCode; in stop()
/frameworks/av/media/libstagefright/foundation/
DParsedMessage.cpp206 bool ParsedMessage::getStatusCode(int32_t *statusCode) const { in getStatusCode()
209 *statusCode = 0; in getStatusCode()
214 *statusCode = strtol(statusCodeString.c_str(), &end, 10); in getStatusCode()
217 || (*statusCode) < 100 || (*statusCode) > 999) { in getStatusCode()
218 *statusCode = 0; in getStatusCode()
/frameworks/base/libs/storage/
DIMountShutdownObserver.cpp32 int32_t statusCode = data.readInt32(); in onTransact() local
33 onShutDownComplete(statusCode); in onTransact()
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java118 int statusCode = connection.getResponseCode(); in doDownload() local
119 if (statusCode != HttpURLConnection.HTTP_OK) { in doDownload()
120 if (DEBUG) Log.d(TAG, "HTTP error downloading gps XTRA: " + statusCode); in doDownload()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java69 int statusCode = in.getInt(); in handleChunk() local
71 Runtime.getRuntime().halt(statusCode); in handleChunk()
/frameworks/volley/src/test/java/com/android/volley/mock/
DMockHttpClient.java45 public void setErrorCode(int statusCode) { in setErrorCode() argument
46 if (statusCode == HttpStatus.SC_OK) { in setErrorCode()
49 mStatusCode = statusCode; in setErrorCode()
/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/support/v7/mediarouter/jellybean-mr1/android/support/v7/media/
DMediaRouterJellybeanMr1.java152 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route); in isConnecting() local
153 return statusCode == mStatusConnecting; in isConnecting()
/frameworks/support/v4/jellybean-mr1/android/support/v4/media/routing/
DMediaRouterJellybeanMr1.java152 int statusCode = (Integer)mGetStatusCodeMethod.invoke(route); in isConnecting() local
153 return statusCode == mStatusConnecting; in isConnecting()
/frameworks/av/drm/common/
DDrmConvertedStatus.cpp23 statusCode(_statusCode), in DrmConvertedStatus()
DDrmInfoStatus.cpp23 statusCode(_statusCode), in DrmInfoStatus()
/frameworks/av/media/libstagefright/wifi-display/source/
DWifiDisplaySource.cpp756 int32_t statusCode; in onReceiveM1Response() local
757 if (!msg->getStatusCode(&statusCode)) { in onReceiveM1Response()
761 if (statusCode != 200) { in onReceiveM1Response()
800 int32_t statusCode; in onReceiveM3Response() local
801 if (!msg->getStatusCode(&statusCode)) { in onReceiveM3Response()
805 if (statusCode != 200) { in onReceiveM3Response()
980 int32_t statusCode; in onReceiveM4Response() local
981 if (!msg->getStatusCode(&statusCode)) { in onReceiveM4Response()
985 if (statusCode != 200) { in onReceiveM4Response()
1001 int32_t statusCode; in onReceiveM5Response() local
[all …]
/frameworks/base/tests/CoreTests/android/core/
DRequestAPITest.java311 public void verifyRedirect(int statusCode, String testName) throws Exception { in verifyRedirect() argument
322 testEventHandler.expectStatus(statusCode); in verifyRedirect()
327 mTestWebServer.setRedirect(REDIRECT_TO, statusCode); in verifyRedirect()
343 requestHandle.setupRedirect(REDIRECT_TO, statusCode, new HashMap<String, String>()); in verifyRedirect()
/frameworks/av/include/drm/
DDrmConvertedStatus.h59 int statusCode;

12