/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/ml/nn/common/include/ |
D | Operations.h | 50 const _Float16* biasData, const Shape& biasShape, int32_t paddingLeft, 51 int32_t paddingRight, int32_t paddingTop, int32_t paddingBottom, 52 int32_t strideWidth, int32_t strideHeight, int32_t dilationWidthFactor, 53 int32_t dilationHeightFactor, int32_t depthMultiplier, int32_t activation, 57 int32_t paddingLeft, int32_t paddingRight, int32_t paddingTop, 58 int32_t paddingBottom, int32_t strideWidth, int32_t strideHeight, 59 int32_t dilationWidthFactor, int32_t dilationHeightFactor, 60 int32_t depthMultiplier, int32_t activation, float* outputData, 64 const int32_t* biasData, const Shape& biasShape, int32_t paddingLeft, 65 int32_t paddingRight, int32_t paddingTop, int32_t paddingBottom, [all …]
|
D | OperationsUtils.h | 51 int32_t offset = 0; 158 bool handleNegativeAxis(int32_t numberOfDimensions, int32_t* axis); 160 inline bool handleNegativeAxis(const Shape& shape, int32_t* axis) { in handleNegativeAxis() 164 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() 165 int32_t paddingHead, int32_t paddingTail) { in computeOutSize() 169 inline int32_t computeOutSize(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSize() 170 int32_t dilationRate, int32_t paddingHead, int32_t paddingTail) { in computeOutSize() 171 int32_t effectiveFilterSize = ((filterSize - 1) * dilationRate + 1); in computeOutSize() 175 inline int32_t computeOutSizeTransposeConv(int32_t imageSize, int32_t filterSize, int32_t stride, in computeOutSizeTransposeConv() 176 int32_t paddingHead, int32_t paddingTail) { in computeOutSizeTransposeConv() [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 | 53 int32_t deviceId; 54 int32_t type; 55 int32_t code; 56 int32_t value; 63 int32_t minValue; // minimum value 64 int32_t maxValue; // maximum value 65 int32_t flat; // center flat position, eg. flat == 8 means center is between -8 and 8 66 int32_t fuzz; // error tolerance, eg. fuzz == 4 means value is +/- 4 due to noise 67 int32_t resolution; // resolution in units per mm or radians per mm 133 extern uint32_t getAbsAxisUsage(int32_t axis, uint32_t deviceClasses); [all …]
|
D | InputReader.h | 63 virtual bool isInputDeviceEnabled(int32_t deviceId); 65 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode); 66 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode); 67 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw); 69 virtual void toggleCapsLockState(int32_t deviceId); 71 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, 72 const int32_t* keyCodes, uint8_t* outFlags); 76 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize, 77 ssize_t repeat, int32_t token); 78 virtual void cancelVibrate(int32_t deviceId, int32_t token); [all …]
|
D | InputDevice.h | 39 InputDevice(InputReaderContext* context, int32_t id, int32_t generation, 40 int32_t controllerNumber, const InputDeviceIdentifier& identifier, 45 inline int32_t getId() const { return mId; } in getId() 46 inline int32_t getControllerNumber() const { return mControllerNumber; } in getControllerNumber() 47 inline int32_t getGeneration() const { return mGeneration; } in getGeneration() 76 int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 77 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 78 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 79 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, 81 void vibrate(const nsecs_t* pattern, size_t patternSize, ssize_t repeat, int32_t token); [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 72 int32_t keyCode; 73 int32_t metaState; 91 int32_t getKeyboardType() const; 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 | 270 float getAxisValue(int32_t axis) const; 271 status_t setAxisValue(int32_t axis, float value); 310 int32_t id; 313 int32_t toolType; 335 virtual int32_t getType() const = 0; 337 inline int32_t getDeviceId() const { return mDeviceId; } in getDeviceId() 339 inline int32_t getSource() const { return mSource; } in getSource() 341 inline void setSource(int32_t source) { mSource = source; } in setSource() 343 inline int32_t getDisplayId() const { return mDisplayId; } in getDisplayId() 345 inline void setDisplayId(int32_t displayId) { mDisplayId = displayId; } in setDisplayId() [all …]
|
D | KeyLayoutMap.h | 43 int32_t axis; 46 int32_t highAxis; 49 int32_t splitValue; 52 int32_t flatOverride; 67 status_t mapKey(int32_t scanCode, int32_t usageCode, 68 int32_t* outKeyCode, uint32_t* outFlags) const; 69 status_t findScanCodesForKey(int32_t keyCode, std::vector<int32_t>* outScanCodes) const; 70 status_t findScanCodeForLed(int32_t ledCode, int32_t* outScanCode) const; 71 status_t findUsageCodeForLed(int32_t ledCode, int32_t* outUsageCode) const; 73 status_t mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const; [all …]
|
/frameworks/ml/nn/common/operations/ |
D | GroupedConv2D.cpp | 48 int32_t padding_left, int32_t padding_right, int32_t padding_top, in groupedConvFloat32() 49 int32_t padding_bottom, int32_t stride_width, int32_t stride_height, in groupedConvFloat32() 50 int32_t numGroups, int32_t activation, float* outputData, in groupedConvFloat32() 66 int32_t wInputOrigin = in groupedConvFloat32() 67 static_cast<int32_t>(w) * stride_width - padding_left; in groupedConvFloat32() 68 int32_t hInputOrigin = in groupedConvFloat32() 69 static_cast<int32_t>(h) * stride_height - padding_top; in groupedConvFloat32() 74 int32_t hInput = hInputOrigin + static_cast<int32_t>(i); in groupedConvFloat32() 75 int32_t wInput = wInputOrigin + static_cast<int32_t>(j); in groupedConvFloat32() 77 if (hInput >= 0 && hInput < static_cast<int32_t>(inputHeight) && in groupedConvFloat32() [all …]
|
D | DepthwiseConv2D.cpp | 48 int32_t padding_left, padding_right; 49 int32_t padding_top, padding_bottom; 50 int32_t stride_width, stride_height; 51 int32_t dilation_width_factor = 1, dilation_height_factor = 1; 52 int32_t depth_multiplier; 53 int32_t activation; 58 int32_t padding_implicit = 0; in initialize() 61 padding_implicit = context->getInputValue<int32_t>(3); in initialize() 62 stride_width = context->getInputValue<int32_t>(4); in initialize() 63 stride_height = context->getInputValue<int32_t>(5); in initialize() [all …]
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.h | 45 mutable int32_t refCount; 46 int32_t type; 60 EventEntry(uint32_t sequenceNum, int32_t type, nsecs_t eventTime, uint32_t policyFlags); 74 int32_t deviceId; 76 DeviceResetEntry(uint32_t sequenceNum, nsecs_t eventTime, int32_t deviceId); 84 int32_t deviceId; 86 int32_t displayId; 87 int32_t action; 88 int32_t flags; 89 int32_t keyCode; [all …]
|
D | InputState.h | 42 bool isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const; 47 bool trackKey(const KeyEntry* entry, int32_t action, int32_t flags); 52 bool trackMotion(const MotionEntry* entry, int32_t action, int32_t flags); 67 int32_t getFallbackKey(int32_t originalKeyCode); 70 void setFallbackKey(int32_t originalKeyCode, int32_t fallbackKeyCode); 73 void removeFallbackKey(int32_t originalKeyCode); 75 inline const KeyedVector<int32_t, int32_t>& getFallbackKeys() const { return mFallbackKeys; } in getFallbackKeys() 79 int32_t deviceId; 81 int32_t displayId; 82 int32_t keyCode; [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/base/cmds/statsd/src/ |
D | FieldValue.h | 29 const int32_t kAttributionField = 1; 30 const int32_t kMaxLogDepth = 2; 31 const int32_t kLastBitMask = 0x80; 32 const int32_t kClearLastBitDeco = 0x7f; 33 const int32_t kClearAllPositionMatcherMask = 0xffff00ff; 37 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth); 39 int32_t encodeMatcherMask(int32_t mask[], int32_t depth); 42 inline int32_t getSimpleField(size_t field) { in getSimpleField() 43 return ((int32_t)field << 8 * 2); in getSimpleField() 83 int32_t mTag; [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/ml/nn/common/ |
D | QuantUtils.cpp | 10 void ApplyLayerNorm(const int16_t* input, const int16_t* layer_norm_weights, const int32_t* bias, in ApplyLayerNorm() 11 int32_t layer_norm_scale_a, int32_t layer_norm_scale_b, int32_t variance_limit, in ApplyLayerNorm() 18 const int32_t index = i * n_input + j; in ApplyLayerNorm() 19 int32_t val = static_cast<int32_t>(input[index]); in ApplyLayerNorm() 23 int32_t mean = static_cast<int32_t>(static_cast<int64_t>(sum) * 1024 / n_input); in ApplyLayerNorm() 25 int32_t temp = kOverflowGuard / n_input; in ApplyLayerNorm() 27 int32_t variance2 = static_cast<int32_t>(variance / kOverflowGuard); in ApplyLayerNorm() 31 int32_t stddev_inverse_a; in ApplyLayerNorm() 37 const int32_t index = i * n_input + j; in ApplyLayerNorm() 38 int32_t val = static_cast<int32_t>(input[index]); in ApplyLayerNorm() [all …]
|
D | QuantUtils.h | 19 inline int32_t MultiplyByQuantizedMultiplier(int32_t x, int32_t quantized_multiplier, int shift) { in MultiplyByQuantizedMultiplier() 30 void MatrixBatchVectorMultiplyAccumulate(const int8_t* input, const int32_t* bias, in MatrixBatchVectorMultiplyAccumulate() 31 const int8_t* input_to_gate_weights, int32_t multiplier, in MatrixBatchVectorMultiplyAccumulate() 32 int32_t shift, int32_t n_batch, int32_t n_input, in MatrixBatchVectorMultiplyAccumulate() 33 int32_t n_output, int32_t output_zp, T* output) { in MatrixBatchVectorMultiplyAccumulate() 38 int32_t acc = bias[row]; in MatrixBatchVectorMultiplyAccumulate() 78 inline bool GetInvSqrtQuantizedMultiplierExp(int32_t input, int reverse_shift, in GetInvSqrtQuantizedMultiplierExp() 79 int32_t* output_inv_sqrt, int* output_shift) { in GetInvSqrtQuantizedMultiplierExp() 87 *output_inv_sqrt = std::numeric_limits<std::int32_t>::max(); in GetInvSqrtQuantizedMultiplierExp() 109 using F3 = FixedPoint<int32_t, 3>; in GetInvSqrtQuantizedMultiplierExp() [all …]
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.h | 34 int32_t uid; 36 int32_t creation_time_sec; 37 int32_t deletion_time_sec = 0; 38 int32_t reset_time_sec = 0; 39 int32_t metric_count; 40 int32_t condition_count; 41 int32_t matcher_count; 42 int32_t alert_count; 45 std::list<int32_t> broadcast_sent_time_sec; 48 std::list<int32_t> activation_time_sec; [all …]
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 43 binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId, 44 int32_t userSerial, int32_t flags); 45 binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId, 46 int32_t flags); 50 int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, 51 const std::vector<std::string>& seInfos, const std::vector<int32_t>& targetSdkVersions, 54 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 55 const std::string& seInfo, int32_t targetSdkVersion, int64_t* _aidl_return); 57 const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, 60 const std::string& packageName, int32_t userId, int32_t flags); [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(InputDevice* device, uint32_t source, int32_t keyboardType); 36 virtual int32_t getKeyCodeState(uint32_t sourceMask, int32_t keyCode); 37 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 39 const int32_t* keyCodes, uint8_t* outFlags); 41 virtual int32_t getMetaState(); 42 virtual void updateMetaState(int32_t keyCode); 49 int32_t keyCode; 50 int32_t scanCode; 54 int32_t mKeyboardType; 57 int32_t mMetaState; [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 …]
|