Home
last modified time | relevance | path

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

12

/development/samples/USB/AdbTest/src/com/android/adb/
DAdbMessage.java108 UsbRequest request = device.getOutRequest(); in write() local
109 request.setClientData(this); in write()
110 if (request.queue(mMessageBuffer, 24)) { in write()
113 request = device.getOutRequest(); in write()
114 request.setClientData(this); in write()
115 if (request.queue(mDataBuffer, length)) { in write()
118 device.releaseOutRequest(request); in write()
124 device.releaseOutRequest(request); in write()
130 public boolean readCommand(UsbRequest request) { in readCommand() argument
131 request.setClientData(this); in readCommand()
[all …]
DAdbDevice.java83 UsbRequest request = new UsbRequest(); in getOutRequest() local
84 request.initialize(mDeviceConnection, mEndpointOut); in getOutRequest()
85 return request; in getOutRequest()
93 public void releaseOutRequest(UsbRequest request) { in releaseOutRequest() argument
95 mOutRequestPool.add(request); in releaseOutRequest()
103 UsbRequest request = new UsbRequest(); in getInRequest() local
104 request.initialize(mDeviceConnection, mEndpointIn); in getInRequest()
105 return request; in getInRequest()
209 UsbRequest request = mDeviceConnection.requestWait(); in run() local
210 if (request == null) { in run()
[all …]
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py83 data = ContactForm(data=self.request.POST)
102 id = int(self.request.get('id'))
108 id = int(self.request.get('id'))
110 data = ContactForm(data=self.request.POST, instance=contact)
125 id = int(self.request.get('id'))
142 id = int(self.request.get('id'))
153 id = int(self.request.get('id'))
156 avatar = self.request.get("avatar")
170 id = int(self.request.get('id'))
176 self.redirect(self.request.host_url + '/static/img/default_avatar.gif')
Dweb_services.py67 self.username = self.request.get('username')
68 self.password = self.request.get('password')
95 self.username = self.request.get('username')
96 self.authtoken = self.request.get('authtoken')
150 client_buffer = self.request.get('contacts')
156 client_state = self.request.get('syncstate')
169 base_url = self.request.host_url
221 base_url = self.request.host_url
/development/tools/repo_pull/
Dgerrit.py30 from urllib.request import (
147 request = Request(url, data, headers)
148 request.get_method = lambda: method
149 response_file = url_opener.open(request)
197 request = Request(url)
198 request.get_method = lambda: 'DELETE'
199 response_file = url_opener.open(request)
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/
DDeleteQuestionService.java78 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in onHandleIntent() local
79 request.setUrgent(); in onHandleIntent()
80 Wearable.DataApi.putDataItem(mGoogleApiClient, request).await(); in onHandleIntent()
DUpdateQuestionService.java90 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in onHandleIntent() local
91 request.setUrgent(); in onHandleIntent()
92 Wearable.DataApi.putDataItem(mGoogleApiClient, request).await(); in onHandleIntent()
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DRobotSpeakTtsService.java156 protected synchronized void onSynthesizeText(SynthesisRequest request, in onSynthesizeText() argument
160 int load = onLoadLanguage(request.getLanguage(), request.getCountry(), in onSynthesizeText()
161 request.getVariant()); in onSynthesizeText()
181 final String text = request.getText().toLowerCase(); in onSynthesizeText()
/development/tools/repo_diff/service/repodiff/handlers/
Dhttp.go36 func handleHealth(writer http.ResponseWriter, request *http.Request) {
37 switch request.Method {
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DPermissionRequestFragment.java148 public void onPermissionRequest(PermissionRequest request) {
150 mPermissionRequest = request;
151 final String[] requestedResources = request.getResources();
165 public void onPermissionRequestCanceled(PermissionRequest request) {
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java218 UsbRequest request = new UsbRequest(); in run() local
219 request.initialize(mConnection, mEndpointIntr); in run()
223 request.queue(buffer, 1); in run()
227 if (mConnection.requestWait() == request) { in run()
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DSimpleWikiHelper.java183 HttpGet request = new HttpGet(url); in getUrlContent() local
184 request.setHeader("User-Agent", sUserAgent); in getUrlContent()
187 HttpResponse response = client.execute(request); in getUrlContent()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DSimpleWikiHelper.java176 HttpGet request = new HttpGet(url); in getUrlContent() local
177 request.setHeader("User-Agent", sUserAgent); in getUrlContent()
180 HttpResponse response = client.execute(request); in getUrlContent()
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java333 PutDataRequest request = dataMap.asPutDataRequest(); in sendPhoto() local
334 request.setUrgent(); in sendPhoto()
336 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in sendPhoto()
440 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in run() local
441 request.setUrgent(); in run()
443 LOGD(TAG, "Generating DataItem: " + request); in run()
447 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in run()
/development/samples/browseable/SynchronizedNotifications/Application/src/com.example.android.wearable.synchronizednotifications/
DSynchronizedNotificationsFragment.java128 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in buildWearableOnlyNotification() local
129 request.setUrgent(); in buildWearableOnlyNotification()
130 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in buildWearableOnlyNotification()
/development/samples/browseable/RuntimePermissionsBasic/
D_index.jd8 …mplementation for requesting permissions at runtime. Click the button to request the Camera permis…
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCamera2RawFragment.java493 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request,
499 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request,
513 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request,
527 int requestId = (int) request.getTag();
538 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request,
540 int requestId = (int) request.getTag();
572 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request,
574 int requestId = (int) request.getTag();
1229 CaptureRequest request = captureBuilder.build(); in captureStillPictureLocked() local
1238 mJpegResultQueue.put((int) request.getTag(), jpegBuilder); in captureStillPictureLocked()
[all …]
/development/samples/browseable/DragAndDropAcrossApps/
D_index.jd13 must request permission first, before it can be used.
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DCameraOps.java152 public void setRepeatingRequest(final CaptureRequest request, in setRepeatingRequest() argument
158 mCameraSession.setRepeatingRequest(request, listener, handler); in setRepeatingRequest()
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DMainActivity.java245 PutDataMapRequest request = PutDataMapRequest.create("/question/" + questionIndex); in toPutDataRequest() local
246 DataMap dataMap = request.getDataMap(); in toPutDataRequest()
251 PutDataRequest putDataRequest = request.asPutDataRequest(); in toPutDataRequest()
494 PutDataMapRequest request = PutDataMapRequest.createFromDataMapItem( in onResult() local
496 DataMap dataMap = request.getDataMap(); in onResult()
501 PutDataRequest putDataRequest = request.asPutDataRequest(); in onResult()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java419 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in addLocationEntry() local
420 request.setUrgent(); in addLocationEntry()
421 Wearable.DataApi.putDataItem(mGoogleApiClient, request) in addLocationEntry()
/development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/
DMainActivity.java178 NetworkRequest request = new NetworkRequest.Builder() in requestHighBandwidthNetwork() local
231 mConnectivityManager.requestNetwork(request, mNetworkCallback); in requestHighBandwidthNetwork()
/development/apps/Development/src/com/android/development/
DConnectivity.java316 public RequestableNetwork(NetworkRequest request, int requestButton, int releaseButton, in RequestableNetwork() argument
318 mRequest = request; in RequestableNetwork()
335 new View.OnClickListener() { public void onClick(View v) { request(); }}); in addOnClickListener()
347 public void request() { in request() method in Connectivity.RequestableNetwork
743 String request = String.format( in doSocketRequest() local
745 writer.write(request); in doSocketRequest()
/development/samples/browseable/WatchFace/
D_index.jd18 For the Fit Distance related watch face, authentication IS a requirement to request distance from
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
DUtilityService.java478 PutDataRequest request = dataMap.asPutDataRequest(); in sendDataToWearable() local
479 request.setUrgent(); in sendDataToWearable()
483 Wearable.DataApi.putDataItem(googleApiClient, request).await(); in sendDataToWearable()

12