Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dget_pred_adv_b_add.cpp194 uint32 mask; in GetPredAdvancedBy0x1() local
207 mask = 254; in GetPredAdvancedBy0x1()
208 mask |= (mask << 8); in GetPredAdvancedBy0x1()
209 mask |= (mask << 16); /* 0xFEFEFEFE */ in GetPredAdvancedBy0x1()
222 word1 &= mask; in GetPredAdvancedBy0x1()
223 word3 &= (~mask); /* 0x1010101, check last bit */ in GetPredAdvancedBy0x1()
224 word12 &= mask; in GetPredAdvancedBy0x1()
234 word2 &= mask; in GetPredAdvancedBy0x1()
235 word3 &= (~mask); /* 0x1010101, check last bit */ in GetPredAdvancedBy0x1()
236 word12 &= mask; in GetPredAdvancedBy0x1()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Ddevice_for_input_source.pfw4 component: /Policy/policy/input_sources/default/applicable_input_device/mask
21 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
38 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
59 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
80 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
101 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
121 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
139 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
156 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
177 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask
[all …]
/frameworks/wilhelm/src/android/
Dchannels.cpp94 SLuint32 sles_channel_count_from_mask(SLuint32 mask) { in sles_channel_count_from_mask() argument
96 = sles_to_audio_channel_mask_representation(mask); in sles_channel_count_from_mask()
99 mask &= SL_ANDROID_INDEXED_SPEAKER_MASK_ALL; in sles_channel_count_from_mask()
100 return popcount(mask); in sles_channel_count_from_mask()
102 mask &= SL_ANDROID_POSITIONAL_SPEAKER_MASK_ALL; in sles_channel_count_from_mask()
103 return popcount(mask); in sles_channel_count_from_mask()
114 audio_channel_representation_t sles_to_audio_channel_mask_representation(SLuint32 mask) { in sles_to_audio_channel_mask_representation() argument
115 if (mask & SL_ANDROID_SPEAKER_NON_POSITIONAL) { in sles_to_audio_channel_mask_representation()
165 SLuint32 mask, in sles_to_android_mask_helper() argument
168 if (!sles_is_channel_mask_valid(mask)) { in sles_to_android_mask_helper()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmotion_comp.cpp460 ULong mask; in GetPredAdvBy0x1() local
470 mask = 254; in GetPredAdvBy0x1()
471 mask |= (mask << 8); in GetPredAdvBy0x1()
472 mask |= (mask << 16); /* 0xFEFEFEFE */ in GetPredAdvBy0x1()
485 word1 &= mask; in GetPredAdvBy0x1()
486 word3 &= (~mask); /* 0x1010101, check last bit */ in GetPredAdvBy0x1()
487 word12 &= mask; in GetPredAdvBy0x1()
497 word2 &= mask; in GetPredAdvBy0x1()
498 word3 &= (~mask); /* 0x1010101, check last bit */ in GetPredAdvBy0x1()
499 word12 &= mask; in GetPredAdvBy0x1()
[all …]
Ddct.cpp46 Int mask; in BlockDCT_AANwSub() local
58 mask = 0x1FE; in BlockDCT_AANwSub()
62 k1 = mask & (tmp << 1); in BlockDCT_AANwSub()
65 k2 = mask & (tmp >> 7); in BlockDCT_AANwSub()
68 k3 = mask & (tmp >> 15); in BlockDCT_AANwSub()
71 k4 = mask & (tmp >> 23); in BlockDCT_AANwSub()
76 k5 = mask & (tmp << 1); in BlockDCT_AANwSub()
79 k6 = mask & (tmp >> 7); in BlockDCT_AANwSub()
82 k7 = mask & (tmp >> 15); in BlockDCT_AANwSub()
85 tmp = mask & (tmp >> 23); in BlockDCT_AANwSub()
[all …]
Dme_utils.cpp318 Int tmp, tmp2, mask = 0x00FF00FF; in ComputeMBSum_C() local
326 tmp2 = tmp & mask; in ComputeMBSum_C()
327 tmp = (tmp >> 8) & mask; in ComputeMBSum_C()
331 tmp2 = tmp & mask; in ComputeMBSum_C()
332 tmp = (tmp >> 8) & mask; in ComputeMBSum_C()
336 tmp2 = tmp & mask; in ComputeMBSum_C()
337 tmp = (tmp >> 8) & mask; in ComputeMBSum_C()
342 tmp2 = tmp & mask; in ComputeMBSum_C()
343 tmp = (tmp >> 8) & mask; in ComputeMBSum_C()
348 tmp2 = tmp & mask; in ComputeMBSum_C()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiUtils.java63 int mask = 0xF000; in getLocalPortFromPhysicalAddress() local
68 maskedAddress = myPhysicalAddress & mask; in getLocalPortFromPhysicalAddress()
69 finalMask |= mask; in getLocalPortFromPhysicalAddress()
70 mask >>= 4; in getLocalPortFromPhysicalAddress()
78 mask <<= 4; in getLocalPortFromPhysicalAddress()
79 int port = portAddress & mask; in getLocalPortFromPhysicalAddress()
157 int mask = 0xF000; in isValidPhysicalAddress() local
160 if ((address & mask) == 0) { in isValidPhysicalAddress()
167 mask >>= 4; in isValidPhysicalAddress()
187 int mask = (0xF000 >> (firstDiffPos * 4)); in getHdmiAddressRelativePosition() local
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
Ddevice_for_product_strategies.pfw5 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
40 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
44 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
132 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
136 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/radio/selected_output_devices/mask
[all …]
/frameworks/wilhelm/src/itf/
DIMIDIMuteSolo.cpp31 SLuint16 mask = 1 << channel; in IMIDIMuteSolo_SetChannelMute() local
34 thiz->mChannelMuteMask |= mask; in IMIDIMuteSolo_SetChannelMute()
36 thiz->mChannelMuteMask &= ~mask; in IMIDIMuteSolo_SetChannelMute()
55 SLuint16 mask = thiz->mChannelMuteMask; in IMIDIMuteSolo_GetChannelMute() local
57 *pMute = (mask >> channel) & 1; in IMIDIMuteSolo_GetChannelMute()
74 SLuint16 mask = 1 << channel; in IMIDIMuteSolo_SetChannelSolo() local
77 thiz->mChannelSoloMask |= mask; in IMIDIMuteSolo_SetChannelSolo()
79 thiz->mChannelSoloMask &= ~mask; in IMIDIMuteSolo_SetChannelSolo()
98 SLuint16 mask = thiz->mChannelSoloMask; in IMIDIMuteSolo_GetChannelSolo() local
100 *pSolo = (mask >> channel) & 1; in IMIDIMuteSolo_GetChannelSolo()
[all …]
DI3DGrouping.cpp43 unsigned mask = 1 << id; in I3DGrouping_Set3DGroup() local
52 assert(oldGroup->mMemberMask & mask); in I3DGrouping_Set3DGroup()
53 oldGroup->mMemberMask &= ~mask; in I3DGrouping_Set3DGroup()
62 assert(!(newGroup->mMemberMask & mask)); in I3DGrouping_Set3DGroup()
63 newGroup->mMemberMask |= mask; in I3DGrouping_Set3DGroup()
111 unsigned mask = 1 << (InterfaceToIObject(thiz)->mInstanceID - 1); in I3DGrouping_deinit() local
114 assert(group->mMemberMask & mask); in I3DGrouping_deinit()
115 group->mMemberMask &= ~mask; in I3DGrouping_deinit()
DIMuteSolo.cpp41 SLuint8 mask = 1 << chan; in IMuteSolo_SetChannelMute() local
44 ap->mMuteMask |= mask; in IMuteSolo_SetChannelMute()
46 ap->mMuteMask &= ~mask; in IMuteSolo_SetChannelMute()
81 SLuint8 mask = ap->mMuteMask; in IMuteSolo_GetChannelMute() local
82 mute = (SLboolean) ((mask >> chan) & 1); in IMuteSolo_GetChannelMute()
113 SLuint8 mask = 1 << chan; in IMuteSolo_SetChannelSolo() local
116 ap->mSoloMask |= mask; in IMuteSolo_SetChannelSolo()
118 ap->mSoloMask &= ~mask; in IMuteSolo_SetChannelSolo()
153 SLuint8 mask = ap->mSoloMask; in IMuteSolo_GetChannelSolo() local
154 solo = (SLboolean) ((mask >> chan) & 1); in IMuteSolo_GetChannelSolo()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/
Ddevice_for_product_strategies.pfw5 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
40 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
44 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask
50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask
97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
132 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
136 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/radio/selected_output_devices/mask
[all …]
/frameworks/base/core/java/com/android/internal/util/
DBitUtils.java37 public static boolean maskedEquals(long a, long b, long mask) { in maskedEquals() argument
38 return (a & mask) == (b & mask); in maskedEquals()
41 public static boolean maskedEquals(byte a, byte b, byte mask) { in maskedEquals() argument
42 return (a & mask) == (b & mask); in maskedEquals()
45 public static boolean maskedEquals(byte[] a, byte[] b, @Nullable byte[] mask) { in maskedEquals() argument
48 if (mask == null) return Arrays.equals(a, b); in maskedEquals()
49 Preconditions.checkArgument(a.length == mask.length, "Mask must be of same size as inputs"); in maskedEquals()
50 for (int i = 0; i < mask.length; i++) { in maskedEquals()
51 if (!maskedEquals(a[i], b[i], mask[i])) return false; in maskedEquals()
56 public static boolean maskedEquals(UUID a, UUID b, @Nullable UUID mask) { in maskedEquals() argument
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_media.pfw5 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
25 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
45 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
65 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
108 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
126 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
162 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
180 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
[all …]
Ddevice_for_product_strategy_enforced_audible.pfw7 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
56 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
60 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
68 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
91 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
114 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
137 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
160 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
183 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
206 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddec_alg_codebook.cpp121 int32 mask, i; in dec_1p_N1() local
123 mask = ((1 << N) - 1); in dec_1p_N1()
127 pos1 = ((index & mask) + offset); in dec_1p_N1()
148 int32 mask, i; in dec_2p_2N1() local
150 mask = (int32)(sub_int16(shl_int16(1, N), 1)); /* mask = ((1<<N)-1); */ in dec_2p_2N1()
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1()
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1()
195 int32 mask, idx; in dec_3p_3N1() local
202 mask = ((1 << ((2 * N) - 1)) - 1); in dec_3p_3N1()
204 idx = index & mask; in dec_3p_3N1()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHal.java707 int mask = 0; in wifiConfigurationToSupplicantKeyMgmtMask() local
712 mask |= ISupplicantStaNetwork.KeyMgmtMask.NONE; in wifiConfigurationToSupplicantKeyMgmtMask()
715 mask |= ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
718 mask |= ISupplicantStaNetwork.KeyMgmtMask.WPA_EAP; in wifiConfigurationToSupplicantKeyMgmtMask()
721 mask |= ISupplicantStaNetwork.KeyMgmtMask.IEEE8021X; in wifiConfigurationToSupplicantKeyMgmtMask()
724 mask |= ISupplicantStaNetwork.KeyMgmtMask.OSEN; in wifiConfigurationToSupplicantKeyMgmtMask()
727 mask |= ISupplicantStaNetwork.KeyMgmtMask.FT_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
730 mask |= ISupplicantStaNetwork.KeyMgmtMask.FT_EAP; in wifiConfigurationToSupplicantKeyMgmtMask()
733 mask |= android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork.KeyMgmtMask in wifiConfigurationToSupplicantKeyMgmtMask()
737 mask |= android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork.KeyMgmtMask in wifiConfigurationToSupplicantKeyMgmtMask()
[all …]
/frameworks/native/libs/ui/
DRect.cpp124 uint32_t mask = 0; in reduce() local
125 mask |= (exclude.left > left) ? 1 : 0; in reduce()
126 mask |= (exclude.top > top) ? 2 : 0; in reduce()
127 mask |= (exclude.right < right) ? 4 : 0; in reduce()
128 mask |= (exclude.bottom < bottom) ? 8 : 0; in reduce()
130 if (mask == 0) { in reduce()
135 if (!(mask & (mask - 1))) { in reduce()
137 if (mask & 1) { in reduce()
139 } else if (mask & 2) { in reduce()
141 } else if (mask & 4) { in reduce()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java663 int mask = BluetoothReceiver.DISCOVERY_STARTED_FLAG; in startScan() local
673 BluetoothReceiver receiver = getBluetoothReceiver(mask); in startScan()
679 if (adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { in startScan()
691 adapter.isDiscovering(), firedFlags, mask)); in startScan()
701 int mask = BluetoothReceiver.DISCOVERY_FINISHED_FLAG; in stopScan() local
711 BluetoothReceiver receiver = getBluetoothReceiver(mask); in stopScan()
717 if (!adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { in stopScan()
729 adapter.isDiscovering(), firedFlags, mask)); in stopScan()
808 int mask = PairReceiver.STATE_BONDING_FLAG | PairReceiver.STATE_BONDED_FLAG; in pairOrAcceptPair() local
821 PairReceiver receiver = getPairReceiver(device, passkey, pin, mask); in pairOrAcceptPair()
[all …]
/frameworks/base/core/java/android/hardware/location/
DMemoryRegion.java86 String mask = ""; in toString() local
89 mask += "r"; in toString()
91 mask += "-"; in toString()
95 mask += "w"; in toString()
97 mask += "-"; in toString()
101 mask += "x"; in toString()
103 mask += "-"; in toString()
106 String retVal = "[ " + mSizeBytesFree + "/ " + mSizeBytes + " ] : " + mask; in toString()
/frameworks/base/core/java/android/os/
DFileObserver.java117 @NotifyEventType int mask, FileObserver observer) { in startWatching() argument
126 startWatching(m_fd, paths, mask, wfds); in startWatching()
146 public void onEvent(int wfd, @NotifyEventType int mask, String path) { in onEvent() argument
163 observer.onEvent(mask, path); in onEvent()
173 @NotifyEventType int mask, int[] wfds); in startWatching() argument
227 public FileObserver(String path, @NotifyEventType int mask) { in FileObserver() argument
228 this(new File(path), mask); in FileObserver()
239 public FileObserver(@NonNull File file, @NotifyEventType int mask) { in FileObserver() argument
240 this(Arrays.asList(file), mask); in FileObserver()
250 public FileObserver(@NonNull List<File> files, @NotifyEventType int mask) { in FileObserver() argument
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoInput/
Ddevice_for_input_source.pfw6 # As the devices is a mask, use the "in" bit as a direction indicator.
8 component: /Policy/policy/input_sources/default/applicable_input_device/mask
31 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
54 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
77 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
100 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
123 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
146 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
169 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
192 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DFlagged.h169 Flag mask, IntFlag baseMask, Flag sharedMask, int shift, in canCombine()
173 shift >= 0 && (mask & topBits<Flag>(shift)) == 0 && in canCombine()
181 ((sharedMask ^ (baseMask & mask)) == 0 && in canCombine()
186 (mask & (effectiveMask >> shift)) == 0); in canCombine()
206 Flag mask, IntFlag baseMask, Flag sharedMask, int baseShift, IntFlag effectiveMask) { in getShift()
214 (canCombine(mask, baseMask, sharedMask, baseShift /* shift */, in getShift()
218 ((mask & effectiveMask) == 0) ? 0 : in getShift()
221 ((mask & topBits<Flag>(1)) || (mask < 0)) ? -1 : in getShift()
223 incShift(getShift(Flag(mask << 1), baseMask /* unused */, sharedMask /* 0 */, in getShift()
380 inline constexpr IntFlag getFlagsHelper(IntFlag mask, int shift) const {
[all …]
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.c110 void Downmix_testIndexComputation(uint32_t mask) { in Downmix_testIndexComputation() argument
111 ALOGI("Testing index computation for 0x%" PRIx32 ":", mask); in Downmix_testIndexComputation()
113 if (mask & kUnsupported) { in Downmix_testIndexComputation()
118 if ((mask & AUDIO_CHANNEL_OUT_STEREO) != AUDIO_CHANNEL_OUT_STEREO) { in Downmix_testIndexComputation()
124 if ((mask & kSides) != 0) { in Downmix_testIndexComputation()
125 if ((mask & kSides) != kSides) { in Downmix_testIndexComputation()
133 if ((mask & kBacks) != 0) { in Downmix_testIndexComputation()
134 if ((mask & kBacks) != kBacks) { in Downmix_testIndexComputation()
141 const int numChan = audio_channel_count_from_out_mask(mask); in Downmix_testIndexComputation()
142 const bool hasFC = ((mask & AUDIO_CHANNEL_OUT_FRONT_CENTER) == AUDIO_CHANNEL_OUT_FRONT_CENTER); in Downmix_testIndexComputation()
[all …]
/frameworks/av/media/libaudioclient/tests/
Drecord_test_output_v1.0_ref_walleye.txt6 format(0x1), channel mask(0x10), channel count(1), sample rate(48000)
15 format(0x1), channel mask(0x10), channel count(1), sample rate(24000)
24 format(0x1), channel mask(0x10), channel count(1), sample rate(16000)
33 format(0x1), channel mask(0x10), channel count(1), sample rate(8000)
42 format(0x1), channel mask(0x10), channel count(1), sample rate(44100)
51 format(0x1), channel mask(0x10), channel count(1), sample rate(22050)
60 format(0x1), channel mask(0x10), channel count(1), sample rate(11025)
69 format(0x2), channel mask(0x10), channel count(1), sample rate(48000)
78 format(0x3), channel mask(0x10), channel count(1), sample rate(48000)
87 format(0x5), channel mask(0x10), channel count(1), sample rate(48000)
[all …]

12345678910>>...12