/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | argument_encoder.h | 40 template <typename Return, typename... Args> 41 class ArgumentEncoder<Return(Args...)> { 44 using ReturnType = typename std::decay<Return>::type; 64 template <typename Return, typename... Args> 65 inline ArgumentEncoder<Return(Args...)> MakeArgumentEncoder( in MakeArgumentEncoder() 66 Return (*)(Args...), MessageWriter* writer) { in MakeArgumentEncoder() 67 return ArgumentEncoder<Return(Args...)>(writer); in MakeArgumentEncoder() 72 template <typename Class, typename Return, typename... Args> 73 inline ArgumentEncoder<Return(Args...)> MakeArgumentEncoder( in MakeArgumentEncoder() 74 Return (Class::*)(Args...), MessageWriter* writer) { in MakeArgumentEncoder() [all …]
|
D | remote_method.h | 71 template <typename Return, typename Type = void> 73 typename std::enable_if<IsDirectReturn<Return>::value, Type>::type; 75 template <typename Return, typename Type = void> 77 typename std::enable_if<!IsDirectReturn<Return>::value, Type>::type; 84 template <typename Class, typename Return, typename... Args> 85 class UnpackArguments<Class, Return(Args...)> { 88 using MethodType = Return (Class::*)(Message&, Args...); 98 Return Invoke() { 100 return static_cast<Return>(InvokeHelper(MakeIndexSequence<Arity>{})); 110 Return InvokeHelper(IndexSequence<Index...>) { [all …]
|
/frameworks/native/libs/gui/include/gui/bufferqueue/2.0/ |
D | B2HGraphicBufferProducer.h | 42 using ::android::hardware::Return; 54 virtual Return<HStatus> setMaxDequeuedBufferCount( 57 virtual Return<void> requestBuffer( 61 virtual Return<HStatus> setAsyncMode(bool async) override; 63 virtual Return<void> dequeueBuffer( 67 virtual Return<HStatus> detachBuffer(int32_t slot) override; 69 virtual Return<void> detachNextBuffer( 72 virtual Return<void> attachBuffer( 77 virtual Return<void> queueBuffer( 82 virtual Return<HStatus> cancelBuffer( [all …]
|
/frameworks/native/services/stats/include/stats/ |
D | StatsHal.h | 29 using android::hardware::Return; 41 virtual Return<void> reportSpeakerImpedance(const SpeakerImpedance& speakerImpedance) override; 46 virtual Return<void> reportHardwareFailed(const HardwareFailed& hardwareFailed) override; 51 virtual Return<void> reportPhysicalDropDetected( 57 virtual Return<void> reportChargeCycles(const ChargeCycles& chargeCycles) override; 62 virtual Return<void> reportBatteryHealthSnapshot( 68 virtual Return<void> reportSlowIo(const SlowIo& slowIo) override; 73 virtual Return<void> reportBatteryCausedShutdown( 79 virtual Return<void> reportUsbPortOverheatEvent( 85 virtual Return<void> reportSpeechDspStat(const SpeechDspStat& speechDspStat) override; [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | client_tests.cpp | 31 using testing::Return; 179 EXPECT_CALL(*mock_channel(), event_fd()).WillOnce(Return(12)); in TEST_F() 185 .WillOnce(Return(Status<void>{})); in TEST_F() 189 .WillOnce(Return(ErrorStatus{EIO})); in TEST_F() 196 .WillOnce(Return(Status<void>{})); in TEST_F() 202 .WillOnce(Return(nullptr)); in TEST_F() 205 .WillOnce(Return(9)); in TEST_F() 213 .WillOnce(Return(kTransactionState)); in TEST_F() 217 .WillOnce(Return(3)); in TEST_F() 227 .WillOnce(Return(kTransactionState)); in TEST_F() [all …]
|
D | service_tests.cpp | 31 using testing::Return; 107 .WillRepeatedly(Return(Status<void>{})); in ServiceTest() 135 EXPECT_CALL(*endpoint(), AllocateMessageState()).WillOnce(Return(kState)); in SetupMessageInfoAndDefaultExpectations() 141 .WillOnce(Return(Status<void>{})); in ExpectDefaultHandleMessage() 176 EXPECT_CALL(*endpoint(), AllocateMessageState()).WillOnce(Return(kState)); in TEST_F() 204 EXPECT_CALL(*endpoint(), AllocateMessageState()).WillOnce(Return(nullptr)); in TEST_F() 227 EXPECT_CALL(*service_, OnChannelOpen(Ref(message))).WillOnce(Return(channel)); in TEST_F() 229 .WillOnce(Return(Status<void>{})); in TEST_F() 231 .WillOnce(Return(Status<void>{})); in TEST_F() 246 .WillOnce(Return(Status<void>{})); in TEST_F() [all …]
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | TunerCallback.cpp | 38 using hardware::Return; 109 virtual Return<void> hardwareFailure(); 110 virtual Return<void> configChange(Result result, const BandConfig& config); 111 virtual Return<void> tuneComplete(Result result, const V1_0::ProgramInfo& info); 112 virtual Return<void> afSwitch(const V1_0::ProgramInfo& info); 113 virtual Return<void> antennaStateChange(bool connected); 114 virtual Return<void> trafficAnnouncement(bool active); 115 virtual Return<void> emergencyAnnouncement(bool active); 116 virtual Return<void> newMetadata(uint32_t channel, uint32_t subChannel, 118 virtual Return<void> tuneComplete_1_1(Result result, const ProgramSelector& selector); [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | ipc_helper_tests.cpp | 6 using testing::Return; 124 .WillOnce(Return(100)); in TEST_F() 132 .WillOnce(Return(20)); in TEST_F() 135 .WillOnce(Return(40)); in TEST_F() 138 .WillOnce(Return(40)); in TEST_F() 147 .WillOnce(Return(100)); in TEST_F() 164 .WillOnce(Return(50)); in TEST_F() 178 .WillOnce(Return(100)); in TEST_F() 186 .WillOnce(Return(20)); in TEST_F() 188 .WillOnce(Return(40)); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | CompositionEngineTest.cpp | 44 using ::testing::Return; 126 .WillOnce(Return(ftl::yield<std::monostate>({}))); in TEST_F() 128 .WillOnce(Return(ftl::yield<std::monostate>({}))); in TEST_F() 130 .WillOnce(Return(ftl::yield<std::monostate>({}))); in TEST_F() 154 EXPECT_CALL(*mOutput1, getOutputLayerCount()).WillRepeatedly(Return(0u)); in CompositionEngineUpdateCursorAsyncTest() 157 EXPECT_CALL(*mOutput2, getOutputLayerCount()).WillRepeatedly(Return(1u)); in CompositionEngineUpdateCursorAsyncTest() 159 .WillRepeatedly(Return(&mOutput2Layer1.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() 161 EXPECT_CALL(*mOutput3, getOutputLayerCount()).WillRepeatedly(Return(2u)); in CompositionEngineUpdateCursorAsyncTest() 163 .WillRepeatedly(Return(&mOutput3Layer1.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() 165 .WillRepeatedly(Return(&mOutput3Layer2.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() [all …]
|
D | RenderSurfaceTest.cpp | 46 using testing::Return; 54 EXPECT_CALL(mDisplay, getId()).WillRepeatedly(Return(DEFAULT_DISPLAY_ID)); in RenderSurfaceTest() 58 .WillRepeatedly(Return(NO_ERROR)); in RenderSurfaceTest() 88 EXPECT_CALL(*mNativeWindow, connect(NATIVE_WINDOW_API_EGL)).WillOnce(Return(NO_ERROR)); in TEST_F() 90 .WillOnce(Return(NO_ERROR)); in TEST_F() 92 .WillOnce(Return(NO_ERROR)); in TEST_F() 136 .WillOnce(Return(NO_ERROR)); in TEST_F() 150 .WillOnce(Return(NO_ERROR)); in TEST_F() 159 .WillOnce(Return(NO_ERROR)); in TEST_F() 170 .WillOnce(Return(NO_ERROR)); in TEST_F() [all …]
|
D | OutputTest.cpp | 67 using testing::Return; 113 EXPECT_CALL(*layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in InjectedLayer() 114 EXPECT_CALL(*layerFE, getSequence()).WillRepeatedly(Return(0)); in InjectedLayer() 115 EXPECT_CALL(*layerFE, getDebugName()).WillRepeatedly(Return("InjectedLayer")); in InjectedLayer() 130 EXPECT_CALL(*layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in NonInjectedLayer() 131 EXPECT_CALL(*layerFE, getSequence()).WillRepeatedly(Return(0)); in NonInjectedLayer() 132 EXPECT_CALL(*layerFE, getDebugName()).WillRepeatedly(Return("NonInjectedLayer")); in NonInjectedLayer() 209 EXPECT_CALL(*mDisplayColorProfile, isValid()).WillOnce(Return(true)); in TEST_F() 210 EXPECT_CALL(*mRenderSurface, isValid()).WillOnce(Return(true)); in TEST_F() 217 EXPECT_CALL(*mDisplayColorProfile, isValid()).WillOnce(Return(true)); in TEST_F() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.1/utils/include/codec2/hidl/1.1/ |
D | Component.h | 57 using ::android::hardware::Return; 85 virtual Return<Status> queue(const WorkBundle& workBundle) override; 86 virtual Return<void> flush(flush_cb _hidl_cb) override; 87 virtual Return<Status> drain(bool withEos) override; 88 virtual Return<Status> setOutputSurface( 91 virtual Return<void> connectToInputSurface( 94 virtual Return<void> connectToOmxInputSurface( 99 virtual Return<Status> disconnectFromInputSurface() override; 100 virtual Return<void> createBlockPool( 103 virtual Return<Status> destroyBlockPool(uint64_t blockPoolId) override; [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.2/utils/include/codec2/hidl/1.2/ |
D | Component.h | 57 using ::android::hardware::Return; 85 virtual Return<Status> queue(const WorkBundle& workBundle) override; 86 virtual Return<void> flush(flush_cb _hidl_cb) override; 87 virtual Return<Status> drain(bool withEos) override; 88 virtual Return<Status> setOutputSurface( 91 virtual Return<void> connectToInputSurface( 94 virtual Return<void> connectToOmxInputSurface( 99 virtual Return<Status> disconnectFromInputSurface() override; 100 virtual Return<void> createBlockPool( 103 virtual Return<Status> destroyBlockPool(uint64_t blockPoolId) override; [all …]
|
/frameworks/av/services/camera/libcameraservice/hidl/ |
D | HidlCameraDeviceUser.h | 49 using hardware::Return; 69 virtual Return<void> disconnect() override; 71 virtual Return<void> getCaptureRequestMetadataQueue( 74 virtual Return<void> getCaptureResultMetadataQueue( 77 virtual Return<void> submitRequestList(const hidl_vec<HCaptureRequest>& requestList, 80 virtual Return<void> cancelRepeatingRequest(cancelRepeatingRequest_cb _hidl_cb) override; 82 virtual Return<HStatus> beginConfigure() override; 84 virtual Return<HStatus> endConfigure(StreamConfigurationMode operatingMode, 87 virtual Return<HStatus> endConfigure_2_1(StreamConfigurationMode operatingMode, 91 virtual Return<HStatus> deleteStream(int32_t streamId) override; [all …]
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalWrapperHidlV1_3Test.cpp | 49 MOCK_METHOD(hardware::Return<V1_0::Status>, on, (uint32_t timeoutMs), (override)); 50 MOCK_METHOD(hardware::Return<V1_0::Status>, off, (), (override)); 51 MOCK_METHOD(hardware::Return<bool>, supportsAmplitudeControl, (), (override)); 52 MOCK_METHOD(hardware::Return<bool>, supportsExternalControl, (), (override)); 53 MOCK_METHOD(hardware::Return<V1_0::Status>, setAmplitude, (uint8_t amplitude), (override)); 54 MOCK_METHOD(hardware::Return<V1_0::Status>, setExternalControl, (bool enabled), (override)); 55 MOCK_METHOD(hardware::Return<void>, perform, 57 MOCK_METHOD(hardware::Return<void>, perform_1_1, 60 MOCK_METHOD(hardware::Return<void>, perform_1_2, 62 MOCK_METHOD(hardware::Return<void>, perform_1_3, [all …]
|
D | VibratorHalWrapperAidlTest.cpp | 133 .WillRepeatedly(Return(mMockBinder.get())); in TEST_F() 136 .WillOnce(Return(android::OK)) in TEST_F() 137 .WillRepeatedly(Return(android::DEAD_OBJECT)); in TEST_F() 149 DoAll(SetArgPointee<0>(IVibrator::CAP_ON_CALLBACK), Return(Status()))); in TEST_F() 152 .WillRepeatedly(DoAll(TriggerCallbackInArg1(), Return(Status()))); in TEST_F() 155 .WillRepeatedly(Return( in TEST_F() 159 .WillRepeatedly(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))); in TEST_F() 183 DoAll(SetArgPointee<0>(IVibrator::CAP_COMPOSE_EFFECTS), Return(Status()))); in TEST_F() 186 .WillRepeatedly(Return(Status())); in TEST_F() 192 .WillRepeatedly(Return(Status::fromStatusT(UNKNOWN_TRANSACTION))); in TEST_F() [all …]
|
D | VibratorManagerHalWrapperAidlTest.cpp | 141 .WillRepeatedly(Return(mMockBinder.get())); in TEST_F() 144 .WillOnce(Return(android::OK)) in TEST_F() 145 .WillRepeatedly(Return(android::DEAD_OBJECT)); in TEST_F() 155 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F() 156 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F() 157 .WillRepeatedly(DoAll(SetArgPointee<0>(IVibratorManager::CAP_SYNC), Return(Status()))); in TEST_F() 170 .WillRepeatedly(DoAll(SetArgPointee<0>(IVibratorManager::CAP_SYNC), Return(Status()))); in TEST_F() 191 Return(Status::fromExceptionCode(Status::Exception::EX_UNSUPPORTED_OPERATION))) in TEST_F() 192 .WillOnce(Return(Status::fromExceptionCode(Status::Exception::EX_SECURITY))) in TEST_F() 193 .WillRepeatedly(DoAll(SetArgPointee<0>(kVibratorIds), Return(Status()))); in TEST_F() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | Component.h | 54 using ::android::hardware::Return; 82 virtual Return<Status> queue(const WorkBundle& workBundle) override; 83 virtual Return<void> flush(flush_cb _hidl_cb) override; 84 virtual Return<Status> drain(bool withEos) override; 85 virtual Return<Status> setOutputSurface( 88 virtual Return<void> connectToInputSurface( 91 virtual Return<void> connectToOmxInputSurface( 96 virtual Return<Status> disconnectFromInputSurface() override; 97 virtual Return<void> createBlockPool( 100 virtual Return<Status> destroyBlockPool(uint64_t blockPoolId) override; [all …]
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
D | WGraphicBufferSource.h | 49 using ::android::hardware::Return; 72 Return<Status> configure( 74 Return<Status> setSuspend(bool suspend, int64_t timeUs) override; 75 Return<Status> setRepeatPreviousFrameDelayUs(int64_t repeatAfterUs) override; 76 Return<Status> setMaxFps(float maxFps) override; 77 Return<Status> setTimeLapseConfig(double fps, double captureFps) override; 78 Return<Status> setStartTimeUs(int64_t startTimeUs) override; 79 Return<Status> setStopTimeUs(int64_t stopTimeUs) override; 80 Return<void> getStopTimeOffsetUs(getStopTimeOffsetUs_cb _hidl_cb) override; 81 Return<Status> setColorAspects(const ColorAspects& aspects) override; [all …]
|
D | WOmxNode.h | 49 using ::android::hardware::Return; 112 Return<Status> freeNode() override; 113 Return<Status> sendCommand(uint32_t cmd, int32_t param) override; 114 Return<void> getParameter( 117 Return<Status> setParameter( 119 Return<void> getConfig( 122 Return<Status> setConfig( 124 Return<Status> setPortMode(uint32_t portIndex, PortMode mode) override; 125 Return<Status> prepareForAdaptivePlayback( 128 Return<void> configureVideoTunnelMode( [all …]
|
/frameworks/base/services/core/jni/gnss/ |
D | GnssCallback.h | 86 hardware::Return<void> gnssLocationCb( 88 hardware::Return<void> gnssStatusCb( 90 hardware::Return<void> gnssSvStatusCb( in gnssSvStatusCb() 95 hardware::Return<void> gnssNmeaCb(int64_t timestamp, 97 hardware::Return<void> gnssSetCapabilitesCb(uint32_t capabilities) override; 98 hardware::Return<void> gnssAcquireWakelockCb() override; 99 hardware::Return<void> gnssReleaseWakelockCb() override; 100 hardware::Return<void> gnssRequestTimeCb() override; 101 hardware::Return<void> gnssRequestLocationCb(const bool independentFromGnss) override; 103 hardware::Return<void> gnssSetSystemInfoCb( [all …]
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | WOmxNode.h | 49 using ::android::hardware::Return; 111 Return<Status> freeNode() override; 112 Return<Status> sendCommand(uint32_t cmd, int32_t param) override; 113 Return<void> getParameter( 116 Return<Status> setParameter( 118 Return<void> getConfig( 121 Return<Status> setConfig( 123 Return<Status> setPortMode(uint32_t portIndex, PortMode mode) override; 124 Return<Status> prepareForAdaptivePlayback( 127 Return<void> configureVideoTunnelMode( [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FlagManagerTest.cpp | 32 using testing::Return; 71 EXPECT_CALL(mFlagManager, getBoolProperty).WillOnce(Return(true)); in TEST_F() 74 EXPECT_CALL(mFlagManager, getBoolProperty).WillOnce(Return(false)); in TEST_F() 79 EXPECT_CALL(mFlagManager, getBoolProperty).WillRepeatedly(Return(std::nullopt)); in TEST_F() 81 EXPECT_CALL(mFlagManager, getServerConfigurableFlag).WillOnce(Return(true)); in TEST_F() 84 EXPECT_CALL(mFlagManager, getServerConfigurableFlag).WillOnce(Return(false)); in TEST_F() 101 EXPECT_CALL(mFlagManager, getBoolProperty).WillOnce(Return(true)); in TEST_F() 113 EXPECT_CALL(mFlagManager, getBoolProperty).WillOnce(Return(true)); in TEST_F() 127 EXPECT_CALL(mFlagManager, getBoolProperty).WillOnce(Return(false)); in TEST_F() 138 EXPECT_CALL(mFlagManager, getBoolProperty).WillRepeatedly(Return(false)); in TEST_F() [all …]
|
D | HWComposerTest.cpp | 66 using ::testing::Return; 80 SetArgPointee<2>(getExternalEdid()), Return(HalError::NONE))); in expectHotplugConnect() 118 Return(V2_4::Error::NONE))); in TEST_F() 141 .WillOnce(Return(HalError::BAD_DISPLAY)); in TEST_F() 147 .WillOnce(Return(HalError::BAD_CONFIG)); in TEST_F() 154 .WillOnce(DoAll(SetArgPointee<1>(kConfigId), Return(HalError::NONE))); in TEST_F() 169 EXPECT_CALL(*mHal, isVrrSupported()).WillRepeatedly(Return(false)); in TEST_F() 173 .WillOnce(Return(HalError::BAD_DISPLAY)); in TEST_F() 185 .WillRepeatedly(DoAll(SetArgPointee<3>(kWidth), Return(HalError::NONE))); in TEST_F() 189 .WillRepeatedly(DoAll(SetArgPointee<3>(kHeight), Return(HalError::NONE))); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | WGraphicBufferSource.cpp | 92 Return<void> onOmxExecuting() override { in onOmxExecuting() 97 Return<void> onOmxIdle() override { in onOmxIdle() 102 Return<void> onOmxLoaded() override { in onOmxLoaded() 107 Return<void> onInputBufferAdded(uint32_t bufferId) override { in onInputBufferAdded() 112 Return<void> onInputBufferEmptied( in onInputBufferEmptied() 128 Return<Status> TWGraphicBufferSource::configure( in configure() 137 Return<Status> err(omxNode->setInputSurface(mOmxBufferSource)); in configure() 214 Return<Status> TWGraphicBufferSource::setSuspend( in setSuspend() 219 Return<Status> TWGraphicBufferSource::setRepeatPreviousFrameDelayUs( in setRepeatPreviousFrameDelayUs() 224 Return<Status> TWGraphicBufferSource::setMaxFps(float maxFps) { in setMaxFps() [all …]
|