Searched refs:max_value (Results 1 - 5 of 5) sorted by relevance

/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Random.c62 * @fn M4OSA_ERR M4OSA_rand(M4OSA_Int32* out_value, M4OSA_UInt32 max_value)
63 * @brief This function gives a random number between 1 and max_value
65 * returns this number in out_value. For instance, a max_value
69 * @param max_value (IN): max expected value
74 M4OSA_ERR M4OSA_rand(M4OSA_Int32* out_value, M4OSA_UInt32 max_value) argument
76 if( (out_value == M4OSA_NULL) || (max_value < 1) )
83 won't overflow, which means that max_value typically shouldn't go over the range of
85 (*out_value) = (((*out_value) * max_value) / ((M4OSA_UInt32)RAND_MAX + 1)) + 1;
/frameworks/av/libvideoeditor/osal/inc/
H A DM4OSA_Memory.h49 M4OSA_UInt32 max_value);
/frameworks/native/include/private/ui/
H A DRegionHelper.h31 static const TYPE max_value = 0x7FFFFFF; member in class:android::region_operator
100 : lhs_head(max_value), lhs_tail(max_value),
101 rhs_head(max_value), rhs_tail(max_value) {
212 aTop = max_value;
213 aBottom = max_value;
237 SpannerBase::rhs_head = max_value;
238 SpannerBase::rhs_tail = max_value;
240 SpannerBase::lhs_head = max_value;
[all...]
/frameworks/rs/scriptc/
H A Drs_math.rsh32 rsRand(int max_value);
37 rsRand(int min_value, int max_value);
42 rsRand(float max_value);
47 rsRand(float min_value, float max_value);
/frameworks/native/libs/ui/
H A DRegion.cpp486 if (cur->right > region_operator<Rect>::max_value) {
487 ALOGE_IF(!silent, "%s: rect->right > max_value", name);
490 if (cur->bottom > region_operator<Rect>::max_value) {
491 ALOGE_IF(!silent, "%s: rect->right > max_value", name);

Completed in 448 milliseconds