Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/
DChooseLockSettingsHelper.java45 protected boolean launchConfirmationActivity(int request, in launchConfirmationActivity() argument
50 launched = confirmPattern(request, message, details); in launchConfirmationActivity()
56 launched = confirmPassword(request); in launchConfirmationActivity()
69 private boolean confirmPattern(int request, CharSequence message, CharSequence details) { in confirmPattern() argument
78 mActivity.startActivityForResult(intent, request); in confirmPattern()
87 private boolean confirmPassword(int request) { in confirmPassword() argument
91 mActivity.startActivityForResult(intent, request); in confirmPassword()
DMediaFormat.java69 private boolean runKeyguardConfirmation(int request) { in runKeyguardConfirmation() argument
71 .launchConfirmationActivity(request, in runKeyguardConfirmation()
DMasterClear.java81 private boolean runKeyguardConfirmation(int request) { in runKeyguardConfirmation() argument
83 .launchConfirmationActivity(request, in runKeyguardConfirmation()
DRadioInfo.java694 HttpGet request = new HttpGet("http://www.google.com"); in httpClientTest() local
695 HttpResponse response = client.execute(request); in httpClientTest()
701 request.abort(); in httpClientTest()
/packages/apps/Phone/src/com/android/phone/
DPhoneInterfaceManager.java93 MainThreadRequest request; in handleMessage() local
99 request = (MainThreadRequest) msg.obj; in handleMessage()
100 request.result = Boolean.valueOf( in handleMessage()
101 mPhone.handlePinMmi((String) request.argument)); in handleMessage()
103 synchronized (request) { in handleMessage()
104 request.notifyAll(); in handleMessage()
109 request = (MainThreadRequest) msg.obj; in handleMessage()
111 request); in handleMessage()
117 request = (MainThreadRequest) ar.userObj; in handleMessage()
119 request.result = ar.result; in handleMessage()
[all …]
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/
DPublicApiAccessTest.java144 … DownloadManager.Request request = new DownloadManager.Request(Uri.parse("http://localhost/path")); in testDownloadManagerRequest() local
145 mManager.enqueue(request); in testDownloadManagerRequest()
148 request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI); in testDownloadManagerRequest()
149 request.setAllowedOverRoaming(false); in testDownloadManagerRequest()
150 request.setTitle("test"); in testDownloadManagerRequest()
151 request.setDescription("test"); in testDownloadManagerRequest()
152 request.setMimeType("text/html"); in testDownloadManagerRequest()
153 request.addRequestHeader("X-Some-Header", "value"); in testDownloadManagerRequest()
154 mManager.enqueue(request); in testDownloadManagerRequest()
/packages/providers/DownloadProvider/tests/src/tests/http/
DMockWebServer.java142 RecordedRequest request = readRequest(in, sequenceNumber); in serveConnection()
143 if (request == null) { in serveConnection()
150 requestQueue.add(request); in serveConnection()
151 MockResponse response = computeResponse(request); in serveConnection()
192 String request = readAsciiUntilCrlf(in); in readRequest() local
193 if (request.equals("")) { in readRequest()
233 if (request.startsWith("GET ")) { in readRequest()
237 } else if (request.startsWith("POST ")) { in readRequest()
242 throw new UnsupportedOperationException("Unexpected method: " + request); in readRequest()
245 return new RecordedRequest(request, headers, chunkSizes, in readRequest()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEventLoader.java176 LoadRequest request = mQueue.take(); in run() local
182 request.skipRequest(mEventLoader); in run()
185 request = mQueue.take(); in run()
188 if (request instanceof ShutdownRequest) { in run()
191 request.processRequest(mEventLoader); in run()
238 LoadEventsRequest request = new LoadEventsRequest(id, start, numDays, in loadEventsInBackground() local
242 mLoaderQueue.put(request); in loadEventsInBackground()
265 LoadEventDaysRequest request = new LoadEventDaysRequest(startDay, numDays, in loadEventDaysInBackground() local
268 mLoaderQueue.put(request); in loadEventDaysInBackground()
/packages/apps/Browser/src/com/android/browser/
DFetchUrlMimeType.java70 HttpHead request = new HttpHead(uri); in doInBackground() local
74 request.addHeader("Cookie", cookie); in doInBackground()
79 request.addHeader("Referer", referer); in doInBackground()
85 response = client.execute(request); in doInBackground()
100 request.abort(); in doInBackground()
102 request.abort(); in doInBackground()
DDownloadTouchIcon.java74 HttpGet request = new HttpGet(url); in doInBackground() local
80 HttpResponse response = client.execute(request); in doInBackground()
94 request.abort(); in doInBackground()
96 request.abort(); in doInBackground()
/packages/apps/Gallery3D/src/com/cooliris/picasa/
DGDataClient.java128 private void callMethod(HttpUriRequest request, Operation operation) throws IOException { in callMethod() argument
130 request.addHeader("GData-Version", "2"); in callMethod()
133 request.addHeader("Accept-Encoding", "gzip"); in callMethod()
138 request.addHeader("Authorization", "GoogleLogin auth=" + authToken); in callMethod()
144 request.addHeader("If-None-Match", etag); in callMethod()
150 httpResponse = mHttpClient.execute(request); in callMethod()
152 Log.w(TAG, "Request failed: " + request.getURI()); in callMethod()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java169 HeaderSet request; in onPut() local
185 request = op.getReceivedHeader(); in onPut()
186 if (V) Constants.logHeader(request); in onPut()
187 name = (String)request.getHeader(HeaderSet.NAME); in onPut()
188 length = (Long)request.getHeader(HeaderSet.LENGTH); in onPut()
189 mimeType = (String)request.getHeader(HeaderSet.TYPE); in onPut()
517 public int onConnect(HeaderSet request, HeaderSet reply) { in onConnect() argument
520 if (V) Constants.logHeader(request); in onConnect()
522 byte[] uuid = (byte[])request.getHeader(HeaderSet.TARGET); in onConnect()
DBluetoothOppObexClientSession.java331 HeaderSet request; in sendFile() local
332 request = new HeaderSet(); in sendFile()
333 request.setHeader(HeaderSet.NAME, fileInfo.mFileName); in sendFile()
334 request.setHeader(HeaderSet.TYPE, fileInfo.mMimetype); in sendFile()
336 applyRemoteDeviceQuirks(request, fileInfo); in sendFile()
340 request.setHeader(HeaderSet.LENGTH, fileInfo.mLength); in sendFile()
350 putOperation = (ClientOperation)mCs.put(request); in sendFile()
559 public static void applyRemoteDeviceQuirks(HeaderSet request, BluetoothOppSendFileInfo info) { in applyRemoteDeviceQuirks() argument
586 request.setHeader(HeaderSet.NAME, newFilename); in applyRemoteDeviceQuirks()
DTestActivity.java484 public int onConnect(HeaderSet request, HeaderSet reply) { in onConnect() argument
545 public int onSetPath(HeaderSet request, HeaderSet reply, boolean backup, boolean create) { in onSetPath() argument
550 public int onDelete(HeaderSet request, HeaderSet reply) { in onDelete() argument
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java164 HttpGet request = new HttpGet(state.mRequestUri); in run() local
166 executeDownload(state, client, request); in run()
171 request.abort(); in run()
172 request = null; in run()
212 private void executeDownload(State state, AndroidHttpClient client, HttpGet request) in executeDownload() argument
218 addRequestHeaders(innerState, request); in executeDownload()
223 HttpResponse response = sendRequest(state, client, request); in executeDownload()
761 private HttpResponse sendRequest(State state, AndroidHttpClient client, HttpGet request) in sendRequest() argument
764 return client.execute(request); in sendRequest()
839 private void addRequestHeaders(InnerState innerState, HttpGet request) { in addRequestHeaders() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java184 public int onConnect(final HeaderSet request, HeaderSet reply) { in onConnect() argument
185 if (V) logHeader(request); in onConnect()
187 byte[] uuid = (byte[])request.getHeader(HeaderSet.TARGET); in onConnect()
210 byte[] remote = (byte[])request.getHeader(HeaderSet.WHO); in onConnect()
245 public int onAbort(HeaderSet request, HeaderSet reply) { in onAbort() argument
258 public int onSetPath(final HeaderSet request, final HeaderSet reply, final boolean backup, in onSetPath() argument
260 if (V) logHeader(request); in onSetPath()
266 tmp_path = (String)request.getHeader(HeaderSet.NAME); in onSetPath()
314 HeaderSet request = null; in onGet() local
321 request = op.getReceivedHeader(); in onGet()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadManagerFunctionalTest.java53 RecordedRequest request = takeRequest(); in testBasicRequest() local
54 assertEquals("GET", request.getMethod()); in testBasicRequest()
55 assertEquals(path, request.getPath()); in testBasicRequest()
DAbstractPublicApiTest.java107 protected Download enqueueRequest(DownloadManager.Request request) { in enqueueRequest() argument
108 return new Download(mManager.enqueue(request)); in enqueueRequest()
DAbstractDownloadManagerFunctionalTest.java228 RecordedRequest request = mServer.takeRequestWithTimeout(0); in takeRequest() local
229 assertNotNull("Expected request was not made", request); in takeRequest()
230 return request; in takeRequest()
DPublicApiFunctionalTest.java89 RecordedRequest request = takeRequest(); in testBasicRequest() local
90 assertEquals("GET", request.getMethod()); in testBasicRequest()
91 assertEquals(REQUEST_PATH, request.getPath()); in testBasicRequest()
/packages/apps/Contacts/src/com/android/contacts/model/
DEditor.java43 public void onRequest(int request); in onRequest() argument
/packages/apps/Mms/src/com/android/mms/ui/
DDeliveryReportActivity.java195 MmsReportRequest request, in getMmsReportStatusText() argument
202 String recipient = request.getRecipient(); in getMmsReportStatusText()
211 if (request.isReadReportRequested()) { in getMmsReportStatusText()
/packages/apps/Gallery3D/src/com/cooliris/media/
DUriTexture.java201 HttpUriRequest request = new HttpGet(uri); in createInputStreamFromRemoteUrl() local
205 httpResponse = mHttpClient.execute(request); in createInputStreamFromRemoteUrl()
213 Log.w(TAG, "Request failed: " + request.getURI()); in createInputStreamFromRemoteUrl()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java394 HttpGet request = new HttpGet("http://www.google.com"); in httpClientTest() local
395 HttpResponse response = client.execute(request); in httpClientTest()
401 request.abort(); in httpClientTest()
/packages/apps/Contacts/src/com/android/contacts/ui/widget/
DKindSectionView.java94 public void onRequest(int request) { in onRequest() argument

12