Searched refs:mask (Results 1 - 25 of 214) sorted by relevance

123456789

/frameworks/wilhelm/src/android/
H A Dchannels.c24 * 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 Dchannels.h46 // 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/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dget_pred_adv_b_add.cpp194 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 DMemoryRegion.java83 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 DIMIDIMuteSolo.c31 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 DI3DGrouping.c43 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 DIMuteSolo.c41 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 Dinterface.c53 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 Dmotion_comp.cpp460 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 Dme_utils.cpp318 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 Ddct.cpp46 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 DRect.cpp116 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 DRow.java112 final void setFlags(int flags, int mask) { argument
113 mFlags = (mFlags & ~mask) | (flags & mask);
/frameworks/support/v4/api23/android/support/v4/view/
H A DViewCompatMarshmallow.java26 public static void setScrollIndicators(View view, int indicators, int mask) { argument
27 view.setScrollIndicators(indicators, mask);
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Ddec_alg_codebook.cpp87 #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/base/core/java/android/os/
H A DFileObserver.java34 * <p>An event mask is used to specify which changes or actions to report.
36 * event mask as well as what actually happened in event callbacks.</p>
68 /** Event mask: All valid event types, combined */
88 public int startWatching(String path, int mask, FileObserver observer) { argument
89 int wfd = startWatching(m_fd, path, mask);
105 public void onEvent(int wfd, int mask, String path) { argument
122 observer.onEvent(mask, path);
131 private native int startWatching(int fd, String path, int mask); argument
160 * @param mask The event or events (added together) to watch for
162 public FileObserver(String path, int mask) { argument
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestUtils.java426 int mask = (BluetoothReceiver.STATE_TURNING_ON_FLAG | BluetoothReceiver.STATE_ON_FLAG
429 BluetoothReceiver receiver = getBluetoothReceiver(mask);
439 mask = 0; // Don't check for received intents since we might have missed them.
459 && (receiver.getFiredFlags() & mask) == mask) {
476 state, BluetoothAdapter.STATE_ON, firedFlags, mask));
486 int mask = (BluetoothReceiver.STATE_TURNING_OFF_FLAG | BluetoothReceiver.STATE_OFF_FLAG
489 BluetoothReceiver receiver = getBluetoothReceiver(mask);
508 mask = 0; // Don't check for received intents since we might have missed them.
519 && (receiver.getFiredFlags() & mask)
[all...]
/frameworks/base/include/android_runtime/
H A Dandroid_app_NativeActivity.h35 ANativeActivity* activity, int32_t values, int32_t mask);
/frameworks/base/tools/aapt2/filter/
H A DConfigFilter.cpp41 const uint32_t mask = ConfigDescription::defaultConfig().diff(config); local
42 if ((mConfigMask & mask) == 0) {
74 return matchedAxis == (mConfigMask & mask);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DIconLoader.java309 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLightStatusBarController.java55 public void onSystemUiVisibilityChanged(int fullscreenStackVis, int dockedStackVis, int mask, argument
59 int newFullscreen = (oldFullscreen & ~mask) | (fullscreenStackVis & mask);
62 int newDocked = (oldDocked & ~mask) | (dockedStackVis & mask);
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java102 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...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dq_pulse.c29 #define NB_POS 16 /* pos in track, mask for sign bit */
35 Word16 mask; local
38 mask = (1 << N) - 1; /* mask = ((1<<N)-1); */
42 index = L_deposit_l((Word16) (pos & mask));
56 Word16 mask, tmp; local
58 mask = (1 << N) - 1; /* mask = ((1<<N)-1); */
67 /* index = ((pos1 & mask) << N) + (pos2 & mask); */
[all...]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DDisplayModifier.java41 protected int mask() { return 0x0; }; method in class:DisplayModifier
111 protected int mask() { return SWEEP_STROKE_WIDTH_BIT; }
120 protected int mask() { return SWEEP_STROKE_WIDTH_BIT; }
132 protected int mask() { return SWEEP_STROKE_WIDTH_BIT; }
168 protected int mask() { return SWEEP_STROKE_CAP_BIT; }
192 protected int mask() { return SWEEP_STROKE_JOIN_BIT; }
216 protected int mask() { return SWEEP_TRANSFORM_BIT; };
243 protected int mask() { return SWEEP_TRANSFORM_BIT; };
252 protected int mask() { return SWEEP_TRANSFORM_BIT; };
263 protected int mask() { retur
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_FileObserver.cpp82 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path);
101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument
111 res = inotify_add_watch(fd, path, mask);

Completed in 1464 milliseconds

123456789