/frameworks/wilhelm/src/android/ |
H A D | channels.cpp | 24 * Return the default OpenSL ES output channel mask (as used in SLDataFormat_PCM.channelMask) 32 // FIXME channel mask is not yet implemented by Stagefright, so use a reasonable default 39 // see explanation in data.c re: default channel mask for mono 63 * Return the default OpenSL ES input channel mask (as used in SLDataFormat_PCM.channelMask) 88 * Get the number of active channels in an OpenSL ES channel mask. 93 SLuint32 sles_channel_count_from_mask(SLuint32 mask) { argument 95 = sles_to_audio_channel_mask_representation(mask); 98 mask &= SL_ANDROID_INDEXED_SPEAKER_MASK_ALL; 99 return popcount(mask); 101 mask 113 sles_to_audio_channel_mask_representation(SLuint32 mask) argument 163 sles_to_android_mask_helper( SLuint32 mask, const struct channel_map* map, unsigned int nMappings) argument 219 sles_to_audio_output_channel_mask(SLuint32 mask) argument 226 sles_to_audio_input_channel_mask(SLuint32 mask) argument 235 sles_is_channel_mask_valid(SLuint32 mask) argument [all...] |
H A D | channels.h | 46 // Channel count and channel mask definitions 60 extern SLuint32 sles_channel_count_from_mask(SLuint32 mask); 61 extern SLboolean sles_is_channel_mask_valid(SLuint32 mask); 63 extern audio_channel_representation_t sles_to_audio_channel_mask_representation(SLuint32 mask); 64 extern audio_channel_mask_t sles_to_audio_output_channel_mask(SLuint32 mask); 65 extern audio_channel_mask_t sles_to_audio_input_channel_mask(SLuint32 mask);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | BitUtils.java | 30 public static boolean maskedEquals(long a, long b, long mask) { argument 31 return (a & mask) == (b & mask); 34 public static boolean maskedEquals(byte a, byte b, byte mask) { argument 35 return (a & mask) == (b & mask); 38 public static boolean maskedEquals(byte[] a, byte[] b, @Nullable byte[] mask) { argument 41 if (mask == null) return Arrays.equals(a, b); 42 Preconditions.checkArgument(a.length == mask.length, "Mask must be of same size as inputs"); 43 for (int i = 0; i < mask 49 maskedEquals(UUID a, UUID b, @Nullable UUID mask) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | get_pred_adv_b_add.cpp | 194 uint32 mask; local 207 mask = 254; 208 mask |= (mask << 8); 209 mask |= (mask << 16); /* 0xFEFEFEFE */ 222 word1 &= mask; 223 word3 &= (~mask); /* 0x1010101, check last bit */ 224 word12 &= mask; 234 word2 &= mask; 523 uint32 mask; local 870 uint32 mask; local [all...] |
/frameworks/base/core/java/android/hardware/location/ |
H A D | MemoryRegion.java | 83 String mask = ""; 86 mask += "r"; 88 mask += "-"; 92 mask += "w"; 94 mask += "-"; 98 mask += "x"; 100 mask += "-"; 103 String retVal = "[ " + mSizeBytesFree + "/ " + mSizeBytes + " ] : " + mask;
|
/frameworks/wilhelm/src/itf/ |
H A D | IMIDIMuteSolo.cpp | 31 SLuint16 mask = 1 << channel; local 34 thiz->mChannelMuteMask |= mask; 36 thiz->mChannelMuteMask &= ~mask; 55 SLuint16 mask = thiz->mChannelMuteMask; local 57 *pMute = (mask >> channel) & 1; 74 SLuint16 mask = 1 << channel; local 77 thiz->mChannelSoloMask |= mask; 79 thiz->mChannelSoloMask &= ~mask; 98 SLuint16 mask = thiz->mChannelSoloMask; local 100 *pSolo = (mask >> channe 135 SLuint32 mask = 1 << track; local 159 SLuint32 mask = thiz->mTrackMuteMask; local 178 SLuint32 mask = 1 << track; interface_lock_exclusive(thiz); local 201 SLuint32 mask = thiz->mTrackSoloMask; local [all...] |
H A D | I3DGrouping.cpp | 43 unsigned mask = 1 << id; local 52 assert(oldGroup->mMemberMask & mask); 53 oldGroup->mMemberMask &= ~mask; 62 assert(!(newGroup->mMemberMask & mask)); 63 newGroup->mMemberMask |= mask; 111 unsigned mask = 1 << (InterfaceToIObject(thiz)->mInstanceID - 1); local 114 assert(group->mMemberMask & mask); 115 group->mMemberMask &= ~mask;
|
H A D | IMuteSolo.cpp | 41 SLuint8 mask = 1 << chan; local 44 ap->mMuteMask |= mask; 46 ap->mMuteMask &= ~mask; 81 SLuint8 mask = ap->mMuteMask; local 82 mute = (SLboolean) ((mask >> chan) & 1); 113 SLuint8 mask = 1 << chan; local 116 ap->mSoloMask |= mask; 118 ap->mSoloMask &= ~mask; 153 SLuint8 mask = ap->mSoloMask; local 154 solo = (SLboolean) ((mask >> cha [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | interface.c | 53 Word32 mask; local 83 /* generate grouping mask */ 84 mask = 0; 86 mask = mask << 1; 88 mask = mask << 1; 89 mask |= 1; 92 psyOutCh->groupingMask = mask;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | motion_comp.cpp | 460 ULong mask; local 470 mask = 254; 471 mask |= (mask << 8); 472 mask |= (mask << 16); /* 0xFEFEFEFE */ 485 word1 &= mask; 486 word3 &= (~mask); /* 0x1010101, check last bit */ 487 word12 &= mask; 497 word2 &= mask; 785 ULong mask; local 1129 ULong mask; local 1800 UChar mask = 0xFF; local 1868 UChar mask = 0xFF; local [all...] |
H A D | me_utils.cpp | 318 Int tmp, tmp2, mask = 0x00FF00FF; local 326 tmp2 = tmp & mask; 327 tmp = (tmp >> 8) & mask; 331 tmp2 = tmp & mask; 332 tmp = (tmp >> 8) & mask; 336 tmp2 = tmp & mask; 337 tmp = (tmp >> 8) & mask; 342 tmp2 = tmp & mask; 343 tmp = (tmp >> 8) & mask; 348 tmp2 = tmp & mask; [all...] |
H A D | dct.cpp | 46 Int mask; local 58 mask = 0x1FE; 62 k1 = mask & (tmp << 1); 65 k2 = mask & (tmp >> 7); 68 k3 = mask & (tmp >> 15); 71 k4 = mask & (tmp >> 23); 76 k5 = mask & (tmp << 1); 79 k6 = mask & (tmp >> 7); 82 k7 = mask & (tmp >> 15); 85 tmp = mask 274 Int mask; local 480 Int mask; local 660 Int mask; local 870 Int mask; local 1057 Int mask; local [all...] |
/frameworks/native/libs/ui/ |
H A D | Rect.cpp | 116 uint32_t mask = 0; local 117 mask |= (exclude.left > left) ? 1 : 0; 118 mask |= (exclude.top > top) ? 2 : 0; 119 mask |= (exclude.right < right) ? 4 : 0; 120 mask |= (exclude.bottom < bottom) ? 8 : 0; 122 if (mask == 0) { 127 if (!(mask & (mask - 1))) { 129 if (mask & 1) { 131 } else if (mask [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | Row.java | 112 final void setFlags(int flags, int mask) { argument 113 mFlags = (mFlags & ~mask) | (flags & mask);
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | dec_alg_codebook.cpp | 87 #define NB_POS 16 /* pos in track, mask for sign bit */ 121 int32 mask, i; local 123 mask = ((1 << N) - 1); 127 pos1 = ((index & mask) + offset); 148 int32 mask, i; local 150 mask = (int32)(sub_int16(shl_int16(1, N), 1)); /* mask = ((1<<N)-1); */ 154 /* pos1 = (((index >> N) & mask) + offset); */ 155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); 158 pos2 = add_int16((int16)(index & mask), offse 195 int32 mask, idx; local 232 int32 mask, idx; local [all...] |
/frameworks/rs/rsov/compiler/spirit/ |
H A D | word_stream_impl.cpp | 37 uint32_t mask = 0xFF; local 39 for (int i = 0; i < 4; i++, mask <<= 8) { 41 lastWord &= ~mask; 43 clear = ((lastWord & mask) == 0);
|
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 35 * <p>An event mask is used to specify which changes or actions to report. 37 * event mask as well as what actually happened in event callbacks.</p> 69 /** Event mask: All valid event types, combined */ 89 public int startWatching(String path, int mask, FileObserver observer) { argument 90 int wfd = startWatching(m_fd, path, mask); 106 public void onEvent(int wfd, int mask, String path) { argument 123 observer.onEvent(mask, path); 132 private native int startWatching(int fd, String path, int mask); argument 161 * @param mask The event or events (added together) to watch for 163 public FileObserver(String path, int mask) { argument [all...] |
/frameworks/base/core/jni/include/android_runtime/ |
H A D | android_app_NativeActivity.h | 35 ANativeActivity* activity, int32_t values, int32_t mask);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | IconLoader.java | 309 int mask = getMask(bitsPerImg); 317 int clutEntry = ((currentByte >> bitIndex) & mask); 329 * Calculate bit mask for a given number of bits. The mask should enable to 331 * @param numOfBits number of bits to calculate mask for. 332 * @return bit mask 335 int mask = 0x00; 339 mask = 0x01; 342 mask = 0x03; 345 mask [all...] |
/frameworks/av/media/libeffects/downmix/ |
H A D | EffectDownmix.c | 91 // strictly for testing, logs the indices of the channels for a given mask, 93 void Downmix_testIndexComputation(uint32_t mask) { argument 94 ALOGI("Testing index computation for 0x%" PRIx32 ":", mask); 96 if (mask & kUnsupported) { 101 if ((mask & AUDIO_CHANNEL_OUT_STEREO) != AUDIO_CHANNEL_OUT_STEREO) { 107 if ((mask & kSides) != 0) { 108 if ((mask & kSides) != kSides) { 116 if ((mask & kBacks) != 0) { 117 if ((mask & kBacks) != kBacks) { 124 const int numChan = audio_channel_count_from_out_mask(mask); 147 Downmix_validChannelMask(uint32_t mask) argument 1004 Downmix_foldGeneric( uint32_t mask, int16_t *pSrc, int16_t*pDst, size_t numFrames, bool accumulate) argument [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | Flagged.h | 33 * mask. _Flagged_helper::minMask<Flag> is provided to easily calculate a mask for a max value. 53 * provided automatically (flags are automatically shared if possible, e.g. mask is shifted 123 * Calculates the minimum mask required to cover a value. Used with the maximum enum value for 129 * \return mask that can be used that covers the maximum value. 156 * Determines whether mask can be combined with base-mask for a given left shift. 158 * \param mask desired mask 159 * \param baseMask mask use 168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument 205 getShift( Flag mask, IntFlag baseMask, Flag sharedMask, int baseShift, IntFlag effectiveMask) argument 380 getFlagsHelper(IntFlag mask, int shift) const argument 393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument [all...] |
/frameworks/av/media/libstagefright/foundation/include/foundation/ |
H A D | Flagged.h | 33 * mask. _Flagged_helper::minMask<Flag> is provided to easily calculate a mask for a max value. 53 * provided automatically (flags are automatically shared if possible, e.g. mask is shifted 123 * Calculates the minimum mask required to cover a value. Used with the maximum enum value for 129 * \return mask that can be used that covers the maximum value. 156 * Determines whether mask can be combined with base-mask for a given left shift. 158 * \param mask desired mask 159 * \param baseMask mask use 168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument 205 getShift( Flag mask, IntFlag baseMask, Flag sharedMask, int baseShift, IntFlag effectiveMask) argument 380 getFlagsHelper(IntFlag mask, int shift) const argument 393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument [all...] |
/frameworks/av/media/libstagefright/include/foundation/ |
H A D | Flagged.h | 33 * mask. _Flagged_helper::minMask<Flag> is provided to easily calculate a mask for a max value. 53 * provided automatically (flags are automatically shared if possible, e.g. mask is shifted 123 * Calculates the minimum mask required to cover a value. Used with the maximum enum value for 129 * \return mask that can be used that covers the maximum value. 156 * Determines whether mask can be combined with base-mask for a given left shift. 158 * \param mask desired mask 159 * \param baseMask mask use 168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument 205 getShift( Flag mask, IntFlag baseMask, Flag sharedMask, int baseShift, IntFlag effectiveMask) argument 380 getFlagsHelper(IntFlag mask, int shift) const argument 393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument [all...] |
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestUtils.java | 614 int mask = BluetoothReceiver.DISCOVERY_STARTED_FLAG; 624 BluetoothReceiver receiver = getBluetoothReceiver(mask); 630 if (adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { 642 adapter.isDiscovering(), firedFlags, mask)); 652 int mask = BluetoothReceiver.DISCOVERY_FINISHED_FLAG; 662 BluetoothReceiver receiver = getBluetoothReceiver(mask); 668 if (!adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { 680 adapter.isDiscovering(), firedFlags, mask)); [all...] |
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 102 Allocation mask = Allocation.createFromBitmap(rs, maskBitmap); 103 healing.set_mask(mask); 112 healing.forEach_copyMasked(mask, dest1); 113 int area = calcMaskArea(mask); 118 healing.forEach_solve1(mask, dest2); 119 healing.forEach_solve2(mask, dest1); 150 private static int calcMaskArea(Allocation mask) { argument 151 int w = mask.getType().getX(); 152 int h = mask.getType().getY(); 154 mask [all...] |