/development/samples/USB/AdbTest/src/com/android/adb/ |
D | AdbMessage.java | 108 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 …]
|
D | AdbDevice.java | 83 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/ |
D | dashboard.py | 83 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')
|
D | web_services.py | 67 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/samples/InlineFillService/src/com/example/android/inlinefillservice/ |
D | Helper.java | 49 static ArrayMap<String, AutofillId> getAutofillableFields(@NonNull FillRequest request) { in getAutofillableFields() argument 50 AssistStructure structure = getLatestAssistStructure(request); in getAutofillableFields() 59 private static AssistStructure getLatestAssistStructure(@NonNull FillRequest request) { in getLatestAssistStructure() argument 60 List<FillContext> fillContexts = request.getFillContexts(); in getLatestAssistStructure()
|
D | InlineFillService.java | 60 public void onFillRequest(FillRequest request, CancellationSignal cancellationSignal, in onFillRequest() argument 67 ArrayMap<String, AutofillId> fields = Helper.getAutofillableFields(request); in onFillRequest() 76 InlineRequestHelper.getInlineSuggestionsRequest(request); in onFillRequest() 147 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument
|
D | InlineRequestHelper.java | 39 static Optional<InlineSuggestionsRequest> getInlineSuggestionsRequest(FillRequest request) { in getInlineSuggestionsRequest() argument 40 final InlineSuggestionsRequest inlineRequest = request.getInlineSuggestionsRequest(); in getInlineSuggestionsRequest()
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | DeleteQuestionService.java | 78 PutDataRequest request = putDataMapRequest.asPutDataRequest(); in onHandleIntent() local 79 request.setUrgent(); in onHandleIntent() 80 Wearable.DataApi.putDataItem(mGoogleApiClient, request).await(); in onHandleIntent()
|
D | UpdateQuestionService.java | 90 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/ |
D | RobotSpeakTtsService.java | 156 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/ |
D | http.go | 36 func handleHealth(writer http.ResponseWriter, request *http.Request) { 37 switch request.Method {
|
/development/scripts/ |
D | get_rust_pkg.py | 41 import urllib.request 116 with urllib.request.urlopen(url) as request: 117 data = json.loads(request.read().decode()) 128 with urllib.request.urlopen(url) as request: 129 data = json.loads(request.read().decode()) 146 tar_file, _ = urllib.request.urlretrieve(url) 182 with urllib.request.urlopen(url) as request: 183 data = json.loads(request.read().decode())
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | PermissionRequestFragment.java | 148 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/ |
D | MissileLauncherActivity.java | 218 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/ |
D | SimpleWikiHelper.java | 183 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/ |
D | SimpleWikiHelper.java | 176 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/ |
D | MainActivity.java | 333 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/ |
D | SynchronizedNotificationsFragment.java | 128 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.jd | 8 …mplementation for requesting permissions at runtime. Click the button to request the Camera permis…
|
/development/tools/repo_pull/ |
D | gerrit.py | 34 from urllib.request import ( 205 request = Request(url, data, headers) 206 request.get_method = lambda: method 209 response_file = url_opener.open(request)
|
/development/tools/winscope/adb_proxy/ |
D | winscope_proxy.py | 281 self.request = handler 289 … self.request.respond(HTTPStatus.BAD_REQUEST, b"Bad request!\nThis is Winscope ADB proxy.\n\n" 294 self.request.respond(HTTPStatus.INTERNAL_SERVER_ERROR, 299 …self.request.respond(HTTPStatus.FORBIDDEN, b"Bad Winscope authorisation token!\nThis is Winscope A… 303 token = self.request.headers[WINSCOPE_TOKEN_HEADER] 306 path = self.request.path.strip('/').split('/') 310 return self.endpoints[(method, endpoint_name)].process(self.request, path[1:]) 649 def __init__(self, request, client_address, server): argument 662 super().__init__(request, client_address, server)
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 493 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.jd | 13 must request permission first, before it can be used.
|
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | CameraOps.java | 152 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/ |
D | MainActivity.java | 245 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()
|