/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaCodecConstants.h | 24 constexpr int32_t AVCProfileBaseline = 0x01; 25 constexpr int32_t AVCProfileMain = 0x02; 26 constexpr int32_t AVCProfileExtended = 0x04; 27 constexpr int32_t AVCProfileHigh = 0x08; 28 constexpr int32_t AVCProfileHigh10 = 0x10; 29 constexpr int32_t AVCProfileHigh422 = 0x20; 30 constexpr int32_t AVCProfileHigh444 = 0x40; 31 constexpr int32_t AVCProfileConstrainedBaseline = 0x10000; 32 constexpr int32_t AVCProfileConstrainedHigh = 0x80000; 34 inline static const char *asString_AVCProfile(int32_t i, const char *def = "??") { [all …]
|
D | YUVImage.h | 56 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height); 60 YUVImage(YUVFormat yuvFormat, int32_t width, int32_t height, uint8_t *buffer); 68 static size_t bufferSize(YUVFormat yuvFormat, int32_t width, int32_t height); 70 int32_t width() const {return mWidth;} in width() 71 int32_t height() const {return mHeight;} in height() 75 bool validPixel(int32_t x, int32_t y) const; 80 bool getPixelValue(int32_t x, int32_t y, 86 bool setPixelValue(int32_t x, int32_t y, 92 int32_t destStartX, int32_t destStartY, 98 int32_t destStartX, int32_t destStartY, [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectsMath.h | 61 (((int32_t)(a) * (int32_t)(b)) >> 15) 66 (((int32_t)(a) * (int32_t)(b) ) << 1) 71 (((int32_t)(a) * (int32_t)(b) ) >> 1) 76 (((int32_t)((a) << 7) * (int32_t)(b)) >> 15) 108 #define PHASE_ONE (int32_t) (0x1L << NUM_PHASE_FRAC_BITS) 117 (int32_t)( \ 119 ((int32_t)(audio)) * ((int32_t)(coef)) \ 130 #define WET_DRY_ONE (int32_t) ((0x1L << NUM_WET_DRY_FRAC_BITS)) 131 #define WET_DRY_MINUS_ONE (int32_t) (~WET_DRY_ONE) 132 #define WET_DRY_FULL_SCALE (int32_t) (WET_DRY_ONE - 1) [all …]
|
/frameworks/native/services/inputflinger/reader/include/ |
D | EventHub.h | 60 int32_t deviceId; 61 int32_t type; 62 int32_t code; 63 int32_t value; 70 int32_t minValue; // minimum value 71 int32_t maxValue; // maximum value 72 int32_t flat; // center flat position, eg. flat == 8 means center is between -8 and 8 73 int32_t fuzz; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise 74 int32_t resolution; // resolution in units per mm or radians per mm 188 int32_t id; [all …]
|
D | InputReader.h | 66 bool isInputDeviceEnabled(int32_t deviceId) override; 68 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) override; 69 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) override; 70 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override; 72 int32_t getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const override; 74 void toggleCapsLockState(int32_t deviceId) override; 76 bool hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, 81 void vibrate(int32_t deviceId, const VibrationSequence& sequence, ssize_t repeat, 82 int32_t token) override; 83 void cancelVibrate(int32_t deviceId, int32_t token) override; [all …]
|
D | InputDevice.h | 36 constexpr int32_t DEFAULT_BATTERY_ID = 1; 46 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, 51 inline int32_t getId() const { return mId; } in getId() 52 inline int32_t getControllerNumber() const { return mControllerNumber; } in getControllerNumber() 53 inline int32_t getGeneration() const { return mGeneration; } in getGeneration() 78 void addEventHubDevice(int32_t eventHubId, bool populateMappers = true); 79 void removeEventHubDevice(int32_t eventHubId); 87 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 88 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 89 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 47 enum class KeyboardType : int32_t { 72 int32_t keyCode; 73 int32_t metaState; 95 char16_t getDisplayLabel(int32_t keyCode) const; 101 char16_t getNumber(int32_t keyCode) const; 106 char16_t getCharacter(int32_t keyCode, int32_t metaState) const; 112 bool getFallbackAction(int32_t keyCode, int32_t metaState, 119 char16_t getMatch(int32_t keyCode, const char16_t* chars, 120 size_t numChars, int32_t metaState) const; 125 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, [all …]
|
D | Input.h | 107 constexpr int32_t VERIFIED_KEY_EVENT_FLAGS = 114 constexpr int32_t VERIFIED_MOTION_EVENT_FLAGS = AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED | 122 constexpr int32_t AMOTION_EVENT_FLAG_CANCELED = 0x20; 207 const char* inputEventTypeToString(int32_t type); 209 std::string inputEventSourceToString(int32_t source); 300 const char* motionToolTypeToString(int32_t toolType); 330 enum class Source : int32_t { 331 INPUT_READER = static_cast<int32_t>(0x0u << SOURCE_SHIFT), 332 INPUT_DISPATCHER = static_cast<int32_t>(0x1u << SOURCE_SHIFT), 333 OTHER = static_cast<int32_t>(0x3u << SOURCE_SHIFT), // E.g. app injected events [all …]
|
D | KeyLayoutMap.h | 46 int32_t axis; 49 int32_t highAxis; 52 int32_t splitValue; 55 int32_t flatOverride; 73 status_t mapKey(int32_t scanCode, int32_t usageCode, 74 int32_t* outKeyCode, uint32_t* outFlags) const; 75 status_t findScanCodesForKey(int32_t keyCode, std::vector<int32_t>* outScanCodes) const; 76 status_t findScanCodeForLed(int32_t ledCode, int32_t* outScanCode) const; 77 status_t findUsageCodeForLed(int32_t ledCode, int32_t* outUsageCode) const; 79 status_t mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const; [all …]
|
D | InputDevice.h | 69 enum class InputDeviceSensorType : int32_t { 92 enum class InputDeviceSensorAccuracy : int32_t { 99 enum class InputDeviceSensorReportingMode : int32_t { 106 enum class InputDeviceLightType : int32_t { 116 explicit InputDeviceSensorInfo(std::string name, std::string vendor, int32_t version, in InputDeviceSensorInfo() 118 float maxRange, float resolution, float power, int32_t minDelay, in InputDeviceSensorInfo() 119 int32_t fifoReservedEventCount, int32_t fifoMaxEventCount, in InputDeviceSensorInfo() 120 std::string stringType, int32_t maxDelay, int32_t flags, in InputDeviceSensorInfo() 121 int32_t id) in InputDeviceSensorInfo() 142 int32_t version; [all …]
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.h | 28 static constexpr int32_t MAX_BRIGHTNESS = 0xff; 34 int32_t getEventHubId() const override; 37 bool setLightColor(int32_t lightId, int32_t color) override; 38 bool setLightPlayerId(int32_t lightId, int32_t playerId) override; 39 std::optional<int32_t> getLightColor(int32_t lightId) override; 40 std::optional<int32_t> getLightPlayerId(int32_t lightId) override; 41 std::optional<int32_t> getBatteryCapacity(int32_t batteryId) override; 42 std::optional<int32_t> getBatteryStatus(int32_t batteryId) override; 45 inline int32_t getDeviceId() { return mDeviceContext.getId(); } in getDeviceId() 54 explicit Battery(InputDeviceContext& context, const std::string& name, int32_t id) in Battery() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.h | 47 int32_t id; 74 EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); 82 explicit ConfigurationChangedEntry(int32_t id, nsecs_t eventTime); 89 int32_t deviceId; 91 DeviceResetEntry(int32_t id, nsecs_t eventTime, int32_t deviceId); 102 FocusEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool hasFocus, 112 PointerCaptureChangedEntry(int32_t id, nsecs_t eventTime, const PointerCaptureRequest&); 123 DragEntry(int32_t id, nsecs_t eventTime, sp<IBinder> connectionToken, bool isExiting, float x, 131 int32_t deviceId; 133 int32_t displayId; [all …]
|
D | InputState.h | 27 static constexpr int32_t INVALID_POINTER_INDEX = -1; 41 bool isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const; 46 bool trackKey(const KeyEntry& entry, int32_t action, int32_t flags); 51 bool trackMotion(const MotionEntry& entry, int32_t action, int32_t flags); 69 int32_t getFallbackKey(int32_t originalKeyCode); 72 void setFallbackKey(int32_t originalKeyCode, int32_t fallbackKeyCode); 75 void removeFallbackKey(int32_t originalKeyCode); 77 inline const KeyedVector<int32_t, int32_t>& getFallbackKeys() const { return mFallbackKeys; } in getFallbackKeys() 81 int32_t deviceId; 83 int32_t displayId; [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_block_adapter.cpp | 38 void fillSequence(int32_t *indexBuffer, int32_t frameCount) { in fillSequence() 45 int checkSequence(const int32_t *indexBuffer, int32_t frameCount) { in checkSequence() 48 int32_t expected = mTestIndex++; in checkSequence() 49 int32_t actual = indexBuffer[i]; in checkSequence() 58 int32_t mTestBuffer[TEST_BUFFER_SIZE]; 59 int32_t mTestIndex; 60 int32_t mLastIndex; 67 mFixedBlockWriter.open(sizeof(int32_t) * FIXED_BLOCK_SIZE); in TestBlockWriter() 74 int32_t onProcessFixedBlock(uint8_t *buffer, int32_t numBytes) override { in onProcessFixedBlock() 75 int32_t frameCount = numBytes / sizeof(int32_t); in onProcessFixedBlock() [all …]
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 69 virtual bool isInputDeviceEnabled(int32_t deviceId) = 0; 84 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, 85 int32_t scanCode) = 0; 86 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, 87 int32_t keyCode) = 0; 88 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, 89 int32_t sw) = 0; 91 virtual int32_t getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const = 0; 94 virtual void toggleCapsLockState(int32_t deviceId) = 0; 97 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask, [all …]
|
D | InputListener.h | 33 int32_t id; 38 inline explicit NotifyArgs(int32_t id, nsecs_t eventTime) : id(id), eventTime(eventTime) {} in NotifyArgs() 53 NotifyConfigurationChangedArgs(int32_t id, nsecs_t eventTime); 65 int32_t deviceId; 67 int32_t displayId; 69 int32_t action; 70 int32_t flags; 71 int32_t keyCode; 72 int32_t scanCode; 73 int32_t metaState; [all …]
|
/frameworks/native/include/android/ |
D | configuration.h | 505 int32_t AConfiguration_getMcc(AConfiguration* config); 510 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); 515 int32_t AConfiguration_getMnc(AConfiguration* config); 520 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc); 551 int32_t AConfiguration_getOrientation(AConfiguration* config); 556 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation); 561 int32_t AConfiguration_getTouchscreen(AConfiguration* config); 566 void AConfiguration_setTouchscreen(AConfiguration* config, int32_t touchscreen); 571 int32_t AConfiguration_getDensity(AConfiguration* config); 576 void AConfiguration_setDensity(AConfiguration* config, int32_t density); [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | RingBufferParcelable.h | 38 void setupMemory(int32_t sharedMemoryIndex, 39 int32_t dataMemoryOffset, 40 int32_t dataSizeInBytes, 41 int32_t readCounterOffset, 42 int32_t writeCounterOffset, 43 int32_t counterSizeBytes); 45 void setupMemory(int32_t sharedMemoryIndex, 46 int32_t dataMemoryOffset, 47 int32_t dataSizeInBytes); 49 int32_t getBytesPerFrame() const; [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | MultiTouchInputMapper.h | 30 inline int32_t getX() const { return mAbsMTPositionX; } in getX() 31 inline int32_t getY() const { return mAbsMTPositionY; } in getY() 32 inline int32_t getTouchMajor() const { return mAbsMTTouchMajor; } in getTouchMajor() 33 inline int32_t getTouchMinor() const { in getTouchMinor() 36 inline int32_t getToolMajor() const { return mAbsMTWidthMajor; } in getToolMajor() 37 inline int32_t getToolMinor() const { in getToolMinor() 40 inline int32_t getOrientation() const { return mAbsMTOrientation; } in getOrientation() 41 inline int32_t getTrackingId() const { return mAbsMTTrackingId; } in getTrackingId() 42 inline int32_t getPressure() const { return mAbsMTPressure; } in getPressure() 43 inline int32_t getDistance() const { return mAbsMTDistance; } in getDistance() [all …]
|
D | KeyboardInputMapper.h | 26 KeyboardInputMapper(InputDeviceContext& deviceContext, uint32_t source, int32_t keyboardType); 37 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode) override; 38 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) override; 40 const int32_t* keyCodes, uint8_t* outFlags) override; 41 virtual int32_t getKeyCodeForKeyLocation(int32_t locationKeyCode) const override; 43 virtual int32_t getMetaState() override; 44 virtual bool updateMetaState(int32_t keyCode) override; 45 virtual std::optional<int32_t> getAssociatedDisplayId() override; 53 int32_t keyCode; 54 int32_t scanCode; [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.h | 123 int32_t mVideoWidth, mVideoHeight; 124 int32_t mFrameRate; 125 int32_t mVideoBitRate; 126 int32_t mVideoBitRateMode; 127 int32_t mAudioBitRate; 128 int32_t mAudioChannels; 129 int32_t mSampleRate; 130 int32_t mInterleaveDurationUs; 131 int32_t mIFramesIntervalSec; 132 int32_t mCameraId; [all …]
|
/frameworks/base/services/incremental/ |
D | BinderIncrementalService.h | 42 binder::Status openStorage(const std::string& path, int32_t* _aidl_return) final; 45 int32_t createMode, int32_t* _aidl_return) final; 46 binder::Status createLinkedStorage(const std::string& path, int32_t otherStorageId, 47 int32_t createMode, int32_t* _aidl_return) final; 49 int32_t storageId, const ::android::content::pm::DataLoaderParamsParcel& params, 55 binder::Status onInstallationComplete(int32_t storageId) final; 57 binder::Status makeBindMount(int32_t storageId, const std::string& sourcePath, 58 const std::string& targetFullPath, int32_t bindType, 59 int32_t* _aidl_return) final; 60 binder::Status deleteBindMount(int32_t storageId, const std::string& targetFullPath, [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 44 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId, 45 int32_t userSerial, int32_t flags); 46 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId, 47 int32_t flags); 50 const std::string& packageName, int32_t userId, int32_t flags, 51 int32_t appId, int32_t previousAppId, const std::string& seInfo, 52 int32_t targetSdkVersion, int64_t* _aidl_return); 64 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 68 const std::string& packageName, int32_t userId, int32_t flags); 70 const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode); [all …]
|
/frameworks/av/media/libstagefright/filters/ |
D | ColorConvert.cpp | 29 int32_t y, int32_t u, int32_t v, in YUVToRGB() 30 int32_t* r, int32_t* g, int32_t* b) { in YUVToRGB() 49 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, in convertYUV420spToARGB() 51 const int32_t bytes_per_pixel = 2; in convertYUV420spToARGB() 53 for (int32_t i = 0; i < height; i++) { in convertYUV420spToARGB() 54 for (int32_t j = 0; j < width; j++) { in convertYUV420spToARGB() 55 int32_t y = *(pY + i * width + j); in convertYUV420spToARGB() 56 int32_t u = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in convertYUV420spToARGB() 57 int32_t v = *(pUV + (i/2) * width + bytes_per_pixel * (j/2) + 1); in convertYUV420spToARGB() 59 int32_t r, g, b; in convertYUV420spToARGB() [all …]
|
/frameworks/native/libs/nativewindow/include/android/ |
D | native_window.h | 97 int32_t width; 100 int32_t height; 104 int32_t stride; 107 int32_t format; 132 int32_t ANativeWindow_getWidth(ANativeWindow* window); 139 int32_t ANativeWindow_getHeight(ANativeWindow* window); 146 int32_t ANativeWindow_getFormat(ANativeWindow* window); 166 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, 167 int32_t width, int32_t height, int32_t format); 179 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, [all …]
|