Home
last modified time | relevance | path

Searched refs:Request (Results 1 – 25 of 151) sorted by relevance

1234567

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMediaControlGattServiceTest.java358 Assert.assertEquals(Request.SupportedOpcodes.NONE, in testGattServerFullInitialState()
395 Integer opcodes_supported = Request.SupportedOpcodes.NONE in testUpdatePlayerState()
396 | Request.SupportedOpcodes.PLAY in testUpdatePlayerState()
397 | Request.SupportedOpcodes.PAUSE in testUpdatePlayerState()
398 | Request.SupportedOpcodes.FAST_REWIND in testUpdatePlayerState()
399 | Request.SupportedOpcodes.FAST_FORWARD in testUpdatePlayerState()
400 | Request.SupportedOpcodes.STOP in testUpdatePlayerState()
401 | Request.SupportedOpcodes.MOVE_RELATIVE in testUpdatePlayerState()
402 | Request.SupportedOpcodes.PREVIOUS_SEGMENT in testUpdatePlayerState()
403 | Request.SupportedOpcodes.NEXT_SEGMENT in testUpdatePlayerState()
[all …]
DMediaControlProfileTest.java337 Request request = in testHandleMediaControlRequest()
338 new Request(Request.Opcodes.PLAY, 0); in testHandleMediaControlRequest()
341 request = new Request(Request.Opcodes.PAUSE, 0); in testHandleMediaControlRequest()
344 request = new Request(Request.Opcodes.STOP, 0); in testHandleMediaControlRequest()
348 request = new Request( in testHandleMediaControlRequest()
349 Request.Opcodes.PREVIOUS_TRACK, 0); in testHandleMediaControlRequest()
352 request = new Request( in testHandleMediaControlRequest()
353 Request.Opcodes.NEXT_TRACK, 0); in testHandleMediaControlRequest()
356 request = new Request( in testHandleMediaControlRequest()
357 Request.Opcodes.FAST_REWIND, 0); in testHandleMediaControlRequest()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestCompliance.cpp55 static void testAvailableSinceVersion(const Request& request, const Version testVersion) { in testAvailableSinceVersion()
151 const Request::MemoryPool ahwbMemoryPool = ahwb->getMemoryPool(); in TEST_F()
156 const Request::MemoryPool sharedMemoryPool = std::move(maybeSharedMemoryPool).value(); in TEST_F()
160 Request{ in TEST_F()
161 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
164 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
173 Request{ in TEST_F()
174 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
177 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
190 const Request::MemoryPool sharedMemoryPool = std::move(maybeSharedMemoryPool).value(); in TEST_F()
[all …]
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/
DHandshakeRequest.java27 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.ADDITIONAL_DATA_T…
30 …r.nearby.common.bluetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request;
52 KEY_BASED_PAIRING_REQUEST(Request.TYPE_KEY_BASED_PAIRING_REQUEST),
53 ACTION_OVER_BLE(Request.TYPE_ACTION_OVER_BLE),
86 return Type.valueOf(mDecryptedMessage[Request.TYPE_INDEX]); in getType()
96 Request.VERIFICATION_DATA_INDEX, in getVerificationData()
97 Request.VERIFICATION_DATA_INDEX + Request.VERIFICATION_DATA_LENGTH); in getVerificationData()
104 Request.SEEKER_PUBLIC_ADDRESS_INDEX, in getSeekerPublicAddress()
105 Request.SEEKER_PUBLIC_ADDRESS_INDEX + BLUETOOTH_ADDRESS_LENGTH); in getSeekerPublicAddress()
132 return mDecryptedMessage[Request.FLAGS_INDEX]; in getFlags()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlProfile.java336 public void onMediaControlRequest(Request request) { in onMediaControlRequest()
339 Request.Results status = Request.Results.COMMAND_CANNOT_BE_COMPLETED; in onMediaControlRequest()
347 case Request.Opcodes.PLAY: in onMediaControlRequest()
350 status = Request.Results.SUCCESS; in onMediaControlRequest()
353 case Request.Opcodes.PAUSE: in onMediaControlRequest()
360 status = Request.Results.SUCCESS; in onMediaControlRequest()
363 case Request.Opcodes.STOP: in onMediaControlRequest()
367 status = Request.Results.SUCCESS; in onMediaControlRequest()
370 case Request.Opcodes.PREVIOUS_TRACK: in onMediaControlRequest()
373 status = Request.Results.SUCCESS; in onMediaControlRequest()
[all …]
/packages/modules/NeuralNetworks/common/include/
DLegacyHalUtils.h299 bool compliantWithV1_0(const V1_0::Request& request);
300 bool compliantWithV1_0(const V1_3::Request& request);
301 bool compliantWithV1_2(const V1_3::Request& request);
303 V1_0::Request convertToV1_0(const V1_0::Request& request);
304 V1_0::Request convertToV1_0(const V1_3::Request& request);
305 V1_0::Request convertToV1_2(const V1_3::Request& request);
306 V1_3::Request convertToV1_3(const V1_0::Request& request);
307 V1_3::Request convertToV1_3(const V1_3::Request& request);
358 Request::Argument uncheckedConvert(const V1_0::RequestArgument& requestArgument);
359 Request::MemoryPool uncheckedConvert(const V1_3::Request::MemoryPool& memoryPool);
[all …]
DBufferTracker.h53 ErrorStatus validateRequest(uint32_t poolIndex, const Request& request,
85 Token(Request::MemoryDomainToken token, std::shared_ptr<BufferTracker> tracker) in Token()
88 Request::MemoryDomainToken get() const { return kToken; } in get()
91 const Request::MemoryDomainToken kToken;
103 std::shared_ptr<ManagedBuffer> get(Request::MemoryDomainToken token) const;
106 void free(Request::MemoryDomainToken token);
109 std::stack<Request::MemoryDomainToken, std::vector<Request::MemoryDomainToken>> mFreeTokens
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRecentLocationApps.java74 public List<RecentLocationApps.Request> getAppList(boolean showSystemApps) { in getAppList()
85 ArrayList<RecentLocationApps.Request> requests = new ArrayList<>(appOpsCount); in getAppList()
131 RecentLocationApps.Request request = getRequestFromOps(now, ops); in getAppList()
146 public List<RecentLocationApps.Request> getAppListSorted(boolean showSystemApps) { in getAppListSorted()
147 List<RecentLocationApps.Request> requests = getAppList(showSystemApps); in getAppListSorted()
150 Collections.reverseOrder(new Comparator<RecentLocationApps.Request>() { in getAppListSorted()
152 public int compare(RecentLocationApps.Request request1, in getAppListSorted()
153 RecentLocationApps.Request request2) { in getAppListSorted()
167 private RecentLocationApps.Request getRequestFromOps(long now, in getRequestFromOps()
203 RecentLocationApps.Request request = null; in getRequestFromOps()
[all …]
/packages/modules/Bluetooth/pandora/interfaces/pandora_experimental/
Dgatt.proto11 // Request an MTU size.
99 // Request for the `ExchangeMTU` rpc.
108 // Request for the `WriteAttFromHandle` rpc.
115 // Request for the `WriteAttFromHandle` rpc.
121 // Request for the `DiscoverServiceByUuid` rpc.
127 // Request for the `DiscoverServices` rpc.
137 // Request for the `DiscoverServicesSdp` rpc.
147 // Request for the `ClearCache` rpc.
155 // Request for the `ReadCharacteristicFromHandle` rpc.
161 // Request for the `ReadCharacteristicsFromUuid` rpc.
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp39 createRunTimePoolInfos(const Request& request, const BufferTracker& bufferTracker, in createRunTimePoolInfos()
55 } else if (const auto* maybeToken = std::get_if<Request::MemoryDomainToken>(&pool)) { in createRunTimePoolInfos()
72 ErrorStatus updateDeviceMemories(ErrorStatus status, const Request& request, in updateDeviceMemories()
77 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
80 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories()
87 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
90 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories()
99 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
102 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories()
131 const Request& request, MeasureTiming measure, const OptionalTimePoint& deadline, in execute()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java70 private final Map<Uri, Request> mRequests = new HashMap<>();
159 Request request = mRequests.computeIfAbsent(printer.path, uri -> in request()
160 new Request(printer, highPriority ? SECOND_PASS_TIMEOUT : FIRST_PASS_TIMEOUT)); in request()
196 for (Map.Entry<Uri, Request> entry : mRequests.entrySet()) { in cancel()
197 Request request = entry.getValue(); in cancel()
211 final Request request = getNextRequest(); in startNextRequest()
220 private Request getNextRequest() { in getNextRequest()
221 Request found = null; in getNextRequest()
223 for (Request request : mRequests.values()) { in getNextRequest()
242 public class Request implements Consumer<LocalPrinterCapabilities> { class in CapabilitiesCache
[all …]
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimPreparedModel.h49 ::ndk::ScopedAStatus executeSynchronously(const Request& request, bool measureTiming,
52 ::ndk::ScopedAStatus executeFenced(const Request& request,
57 ::ndk::ScopedAStatus executeSynchronouslyWithConfig(const Request& request,
62 const Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
67 ndk::ScopedAStatus createReusableExecution(const Request& request,
78 const Request& request, bool measure, int64_t deadlineNs, int64_t loopTimeoutDurationNs,
85 const Request& request, bool measureTiming, int64_t deadlineNs,
90 const Request& request, const std::vector<::ndk::ScopedFileDescriptor>& waitFor,
/packages/modules/NeuralNetworks/common/types/src/
DSharedMemory.cpp37 bool hasNoPointerData(const Request::Argument& argument);
57 bool hasNoPointerData(const Request::Argument& argument) { in hasNoPointerData()
145 bool hasNoPointerData(const Request& request) { in hasNoPointerData()
197 GeneralResult<std::reference_wrapper<const Request>> convertRequestFromPointerToShared( in convertRequestFromPointerToShared()
198 const Request* request, uint32_t alignment, uint32_t padding, in convertRequestFromPointerToShared()
199 std::optional<Request>* maybeRequestInSharedOut, RequestRelocation* relocationOut) { in convertRequestFromPointerToShared()
210 Request requestInShared = *request; in convertRequestFromPointerToShared()
219 if (input.lifetime != Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
223 input.lifetime = Request::Argument::LifeTime::POOL; in convertRequestFromPointerToShared()
244 if (output.lifetime != Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
[all …]
/packages/modules/NeuralNetworks/common/
DBufferTracker.cpp60 ErrorStatus ManagedBuffer::validateRequest(uint32_t poolIndex, const Request& request, in validateRequest()
63 CHECK(std::holds_alternative<Request::MemoryDomainToken>(request.pools[poolIndex])); in validateRequest()
68 if (request.inputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
90 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
190 using StackSpace = std::vector<Request::MemoryDomainToken>; in BufferTracker()
191 using Stack = std::stack<Request::MemoryDomainToken, StackSpace>; in BufferTracker()
204 auto token = Request::MemoryDomainToken{0}; in add()
206 token = static_cast<Request::MemoryDomainToken>(mTokenToBuffers.size()); in add()
218 std::shared_ptr<ManagedBuffer> BufferTracker::get(Request::MemoryDomainToken token) const { in get()
228 void BufferTracker::free(Request::MemoryDomainToken token) { in free()
/packages/apps/Camera2/src/com/android/camera/one/v2/commands/
DZslPreviewCommand.java24 import com.android.camera.one.v2.core.Request;
83 List<Request> previewWarming = createWarmupBurst(mPreviewWarmupRequestBuilder, in run()
89 List<Request> zslWarmingBurst = in run()
97 List<Request> zslAndPreviewRepeating = Arrays.asList(zslAndPreviewRequest.build()); in run()
104 private List<Request> createWarmupBurst(RequestBuilder.Factory builder, int type, int size) in createWarmupBurst()
107 Request zslWarmingRequest = zslRequest.build(); in createWarmupBurst()
108 List<Request> zslWarmingBurst = new ArrayList<>(size); in createWarmupBurst()
/packages/modules/NeuralNetworks/runtime/
DModelArgumentInfo.cpp126 Request::Argument ModelArgumentInfo::createRequestArgument() const { in createRequestArgument()
129 Request::Argument arg = {.lifetime = Request::Argument::LifeTime::POINTER, in createRequestArgument()
136 return {.lifetime = Request::Argument::LifeTime::POOL, in createRequestArgument()
140 return {.lifetime = Request::Argument::LifeTime::NO_VALUE}; in createRequestArgument()
149 std::vector<Request::Argument> createRequestArguments( in createRequestArguments()
153 std::vector<Request::Argument> ioInfos(count); in createRequestArguments()
159 ioInfos[i] = {.lifetime = Request::Argument::LifeTime::POOL, in createRequestArguments()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java129 private final ConcurrentHashMap<ImageView, Request> pendingRequests =
130 new ConcurrentHashMap<ImageView, Request>();
401 view, Request.createFromThumbnailId(photoId, darkTheme, isCircular, defaultProvider)); in loadThumbnail()
435 Request.createFromUri(photoUri, requestedExtent, darkTheme, isCircular, defaultProvider)); in loadPhoto()
458 private void loadPhotoByIdOrUri(ImageView view, Request request) { in loadPhotoByIdOrUri()
487 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in cancelPendingRequests()
523 private boolean loadCachedPhoto(ImageView view, Request request, boolean fadeIn) { in loadCachedPhoto()
578 private Drawable getDrawableForBitmap(Resources resources, Bitmap bitmap, Request request) { in getDrawableForBitmap()
667 final Iterator<Entry<ImageView, Request>> iterator = pendingRequests.entrySet().iterator(); in processLoadedImages()
669 final Entry<ImageView, Request> entry = iterator.next(); in processLoadedImages()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp150 GeneralResult<Request> createRequest(const TestModel& testModel) { in createRequest()
152 std::vector<Request::Argument> inputs; in createRequest()
160 Request::Argument requestArgument; in createRequest()
163 requestArgument = {.lifetime = Request::Argument::LifeTime::NO_VALUE}; in createRequest()
167 requestArgument = {.lifetime = Request::Argument::LifeTime::POINTER, in createRequest()
175 std::vector<Request::Argument> outputs; in createRequest()
194 outputs.push_back({.lifetime = Request::Argument::LifeTime::POOL, in createRequest()
200 std::vector<Request::MemoryPool> pools; in createRequest()
205 return Request{ in createRequest()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/
DHandshakeHandler.java26 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.ADDITIONAL_DATA_T…
27 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.EVENT_ADDITIONAL_…
28 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.EVENT_ADDITIONAL_…
29 …luetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.EVENT_CODE_INDEX;
30 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.EVENT_GROUP_INDEX;
31 …mon.bluetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.FLAGS_INDEX;
32 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.SEEKER_PUBLIC_ADD…
33 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.TYPE_ACTION_OVER_…
34 …mmon.bluetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.TYPE_INDEX;
35 …uetooth.fastpair.Constants.FastPairService.KeyBasedPairingCharacteristic.Request.TYPE_KEY_BASED_PA…
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactPhotoManager.java664 private final ConcurrentHashMap<ImageView, Request> mPendingRequests =
665 new ConcurrentHashMap<ImageView, Request>();
832 loadPhotoByIdOrUri(view, Request.createFromThumbnailId(photoId, darkTheme, isCircular, in loadThumbnail()
852 loadPhotoByIdOrUri(view, Request.createFromUri(photoUri, requestedExtent, in loadPhoto()
865 private void loadPhotoByIdOrUri(ImageView view, Request request) { in loadPhotoByIdOrUri()
895 final Iterator<Entry<ImageView, Request>> iterator = mPendingRequests.entrySet().iterator(); in cancelPendingRequests()
932 private boolean loadCachedPhoto(ImageView view, Request request, boolean fadeIn) { in loadCachedPhoto()
997 private Drawable getDrawableForBitmap(Resources resources, Bitmap bitmap, Request request) { in getDrawableForBitmap()
1151 final Iterator<Entry<ImageView, Request>> iterator = mPendingRequests.entrySet().iterator(); in processLoadedImages()
1153 final Entry<ImageView, Request> entry = iterator.next(); in processLoadedImages()
[all …]
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.h118 ndk::ScopedAStatus executeSynchronously(const aidl_hal::Request& request, bool measureTiming,
121 ndk::ScopedAStatus executeFenced(const aidl_hal::Request& request,
127 const aidl_hal::Request& request, const aidl_hal::ExecutionConfig& config,
130 const aidl_hal::Request& request, const std::vector<ndk::ScopedFileDescriptor>& waitFor,
135 const aidl_hal::Request& request, const aidl_hal::ExecutionConfig& config,
175 ndk::ScopedAStatus executeSynchronously(const aidl_hal::Request& request,
181 const aidl_hal::Request& request, const std::vector<int64_t>& memoryIdentifierTokens,
193 SampleExecution(std::shared_ptr<SamplePreparedModel> preparedModel, aidl_hal::Request request, in SampleExecution()
213 const aidl_hal::Request kHalRequest;
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DRecentLocationRequestPreferenceControllerTest.java86 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_whenAppListMoreThanThree_shouldDisplayTopThreeApps()
119 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_workProfile_shouldShowOnlyWorkProfileApps()
135 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_Personal_shouldShowOnlyPersonalApps()
150 private List<RecentLocationApps.Request> createMockRequest(int count) { in createMockRequest()
151 final List<RecentLocationApps.Request> requests = new ArrayList<>(); in createMockRequest()
155 final RecentLocationApps.Request request = new RecentLocationApps.Request( in createMockRequest()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterDeleteSet.java38 private static class Request { class in FilterDeleteSet
42 public Request(int type, Path path, int indexHint) { in Request() method in FilterDeleteSet.Request
62 private ArrayList<Request> mRequests = new ArrayList<Request>();
153 Request r = mRequests.get(i); in reload()
227 Request r = new Request(type, path, indexHint); in sendRequest()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallerInfoAsyncQueryFactoryFixture.java41 static class Request { class in CallerInfoAsyncQueryFactoryFixture
58 Request r = new Request();
70 final List<Request> mRequests = Collections.synchronizedList(new ArrayList<Request>());
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DMinimalCpmChatService.java47 import javax.sip.message.Request;
116 if (!TextUtils.equals(msg.getMethod(), Request.ACK)) { in sendSipRequest()
120 if (TextUtils.equals(msg.getMethod(), Request.BYE)) { in sendSipRequest()
130 if (TextUtils.equals(msg.getCSeq().getMethod(), Request.BYE)) { in sendSipResponse()
132 } else if (TextUtils.equals(msg.getCSeq().getMethod(), Request.INVITE) in sendSipResponse()
147 } else if (TextUtils.equals(request.getMethod(), Request.INVITE)) { in handleRequest()
188 if (TextUtils.equals(response.getCSeq().getMethod(), Request.INVITE) in handleResponse()

1234567