Searched refs:statusCode (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/drm/java/android/drm/
H A DDrmConvertedStatus.java50 public final int statusCode; field in class:DrmConvertedStatus
63 * @param statusCode Conversion status. Must be one of the status code constants
68 public DrmConvertedStatus(int statusCode, byte[] convertedData, int offset) { argument
69 if (!isValidStatusCode(statusCode)) {
70 throw new IllegalArgumentException("Unsupported status code: " + statusCode);
73 this.statusCode = statusCode;
78 private boolean isValidStatusCode(int statusCode) { argument
79 return statusCode == STATUS_OK ||
80 statusCode
[all...]
H A DDrmInfoStatus.java46 public final int statusCode; field in class:DrmInfoStatus
67 * @param statusCode The status of the communication. Must be one of the defined
74 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { argument
79 if (!isValidStatusCode(statusCode)) {
80 throw new IllegalArgumentException("Unsupported status code: " + statusCode);
87 this.statusCode = statusCode;
93 private boolean isValidStatusCode(int statusCode) { argument
94 return statusCode == STATUS_OK || statusCode
[all...]
/frameworks/support/volley/src/com/android/volley/
H A DNetworkResponse.java30 * @param statusCode the HTTP status code
35 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, argument
37 this.statusCode = statusCode;
48 public final int statusCode; field in class:NetworkResponse
/frameworks/av/drm/common/
H A DDrmConvertedStatus.cpp23 statusCode(_statusCode),
H A DDrmInfoStatus.cpp23 statusCode(_statusCode),
/frameworks/base/core/java/android/os/storage/
H A DIMountShutdownObserver.java69 int statusCode;
70 statusCode = data.readInt();
71 this.onShutDownComplete(statusCode);
98 * @param statusCode indicates success or failure of the shutdown.
100 public void onShutDownComplete(int statusCode) throws RemoteException { argument
105 _data.writeInt(statusCode);
121 * @param statusCode indicates success or failure of the shutdown.
123 public void onShutDownComplete(int statusCode) throws RemoteException; argument
/frameworks/base/libs/storage/
H A DIMountShutdownObserver.cpp32 int32_t statusCode = data.readInt32(); local
33 onShutDownComplete(statusCode);
/frameworks/av/include/drm/
H A DDrmConvertedStatus.h59 int statusCode; member in class:android::DrmConvertedStatus
H A DDrmInfoStatus.h58 int statusCode; member in class:android::DrmInfoStatus
/frameworks/base/core/java/android/ddm/
H A DDdmHandleExit.java69 int statusCode = in.getInt();
71 Runtime.getRuntime().halt(statusCode);
/frameworks/base/include/storage/
H A DIMountShutdownObserver.h30 virtual void onShutDownComplete(const int32_t statusCode) = 0;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedRadioControl.java52 public void triggerIncomingUssd(String statusCode, String message); argument
/frameworks/support/volley/tests/src/com/android/volley/mock/
H A DMockHttpClient.java45 public void setErrorCode(int statusCode) { argument
46 if (statusCode == HttpStatus.SC_OK) {
47 throw new IllegalArgumentException("statusCode cannot be 200 for an error");
49 mStatusCode = statusCode;
/frameworks/av/media/libstagefright/wifi-display/
H A DParsedMessage.h36 bool getStatusCode(int32_t *statusCode) const;
H A DParsedMessage.cpp191 bool ParsedMessage::getStatusCode(int32_t *statusCode) const {
196 *statusCode = strtol(statusCodeString.c_str(), &end, 10);
199 || (*statusCode) < 100 || (*statusCode) > 999) {
200 *statusCode = 0;
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DBasicNetwork.java120 int statusCode = 0;
123 statusCode = httpResponse.getStatusLine().getStatusCode();
127 VolleyLog.e("Unexpected response code %d for %s", statusCode, request.getUrl());
129 networkResponse = new NetworkResponse(statusCode, responseContents,
131 if (statusCode == HttpStatus.SC_UNAUTHORIZED ||
132 statusCode == HttpStatus.SC_FORBIDDEN) {
/frameworks/base/core/java/android/net/http/
H A DRequest.java250 int statusCode = 0;
255 statusCode = statusLine.getStatusCode();
256 } while (statusCode < HttpStatus.SC_OK);
263 statusCode, statusLine.getReasonPhrase());
266 hasBody = canResponseHaveBody(mHttpRequest, statusCode);
337 if (statusCode == HttpStatus.SC_OK
338 || statusCode == HttpStatus.SC_PARTIAL_CONTENT) {
H A DHttpsConnection.java202 int statusCode = 0;
228 statusCode = statusLine.getStatusCode();
229 } while (statusCode < HttpStatus.SC_OK);
256 if (statusCode == HttpStatus.SC_OK) {
278 statusCode,
H A DRequestHandle.java143 * @param statusCode HTTP status code returned from original request
148 public boolean setupRedirect(String redirectTo, int statusCode, argument
191 if ((statusCode == 302 || statusCode == 303) && mMethod.equals("POST")) {
199 if (statusCode == 307) {
/frameworks/av/media/libstagefright/wifi-display/sink/
H A DWifiDisplaySink.cpp268 int32_t statusCode; local
269 if (!msg->getStatusCode(&statusCode)) {
273 if (statusCode != 200) {
282 int32_t statusCode; local
283 if (!msg->getStatusCode(&statusCode)) {
287 if (statusCode != 200) {
296 int32_t statusCode; local
297 if (!msg->getStatusCode(&statusCode)) {
301 if (statusCode != 200) {
381 int32_t statusCode; local
[all...]
/frameworks/opt/mms/src/java/com/google/android/mms/util/
H A DDrmConvertSession.java97 convertedStatus.statusCode == DrmConvertedStatus.STATUS_OK &&
131 convertedStatus.statusCode != DrmConvertedStatus.STATUS_OK ||
/frameworks/base/voip/java/com/android/server/sip/
H A DSipSessionGroup.java927 int statusCode = response.getStatusCode();
928 switch (statusCode) {
940 if (statusCode >= 500) {
1026 private String getResponseString(int statusCode) { argument
1028 statusLine.setStatusCode(statusCode);
1029 statusLine.setReasonPhrase(SIPResponse.getReasonPhrase(statusCode));
1125 int statusCode = response.getStatusCode();
1126 switch (statusCode) {
1165 if (statusCode >= 400) {
1169 } else if (statusCode >
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DWifiDisplaySource.cpp631 int32_t statusCode; local
632 if (!msg->getStatusCode(&statusCode)) {
636 if (statusCode != 200) {
675 int32_t statusCode; local
676 if (!msg->getStatusCode(&statusCode)) {
680 if (statusCode != 200) {
786 int32_t statusCode; local
787 if (!msg->getStatusCode(&statusCode)) {
791 if (statusCode != 200) {
807 int32_t statusCode; local
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DRequestAPITest.java311 public void verifyRedirect(int statusCode, String testName) throws Exception { argument
322 testEventHandler.expectStatus(statusCode);
327 mTestWebServer.setRedirect(REDIRECT_TO, statusCode);
343 requestHandle.setupRedirect(REDIRECT_TO, statusCode, new HashMap<String, String>());
/frameworks/base/core/java/android/webkit/
H A DCacheManager.java381 static CacheResult createCacheFile(String url, int statusCode, argument

Completed in 9163 milliseconds

12