Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_mask_util_test.cc121 FieldMask mask; in TEST() local
122 EXPECT_EQ("", FieldMaskUtil::ToString(mask)); in TEST()
123 mask.add_paths("foo_bar"); in TEST()
124 EXPECT_EQ("foo_bar", FieldMaskUtil::ToString(mask)); in TEST()
125 mask.add_paths("baz_quz"); in TEST()
126 EXPECT_EQ("foo_bar,baz_quz", FieldMaskUtil::ToString(mask)); in TEST()
128 FieldMaskUtil::FromString("", &mask); in TEST()
129 EXPECT_EQ(0, mask.paths_size()); in TEST()
130 FieldMaskUtil::FromString("fooBar", &mask); in TEST()
131 EXPECT_EQ(1, mask.paths_size()); in TEST()
[all …]
Dfield_mask_util.h50 static string ToString(const FieldMask& mask);
57 static bool ToJsonString(const FieldMask& mask, string* out);
68 static bool IsValidFieldMask(const FieldMask& mask) { in IsValidFieldMask() argument
69 for (int i = 0; i < mask.paths_size(); ++i) { in IsValidFieldMask()
70 if (!InternalIsValidPath(T::descriptor(), mask.paths(i))) return false; in IsValidFieldMask()
78 static void AddPathToFieldMask(StringPiece path, FieldMask* mask) { in AddPathToFieldMask() argument
80 mask->add_paths(path); in AddPathToFieldMask()
95 static void ToCanonicalForm(const FieldMask& mask, FieldMask* out);
107 static bool IsPathInFieldMask(StringPiece path, const FieldMask& mask);
113 static void MergeMessageTo(const Message& source, const FieldMask& mask,
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java79 FieldMask mask = FieldMask.newBuilder().addPaths("foo").build(); in testToString() local
80 assertEquals("foo", FieldMaskUtil.toString(mask)); in testToString()
81 mask = FieldMask.newBuilder().addPaths("foo").addPaths("bar").build(); in testToString()
82 assertEquals("foo,bar", FieldMaskUtil.toString(mask)); in testToString()
85 mask = in testToString()
93 assertEquals("foo,bar", FieldMaskUtil.toString(mask)); in testToString()
97 FieldMask mask = FieldMaskUtil.fromString(""); in testFromString() local
98 assertEquals(0, mask.getPathsCount()); in testFromString()
99 mask = FieldMaskUtil.fromString("foo"); in testFromString()
100 assertEquals(1, mask.getPathsCount()); in testFromString()
[all …]
/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/wilhelm/src/android/
Dchannels.cpp93 SLuint32 sles_channel_count_from_mask(SLuint32 mask) { in sles_channel_count_from_mask() argument
95 = sles_to_audio_channel_mask_representation(mask); in sles_channel_count_from_mask()
98 mask &= SL_ANDROID_INDEXED_SPEAKER_MASK_ALL; in sles_channel_count_from_mask()
99 return popcount(mask); in sles_channel_count_from_mask()
101 mask &= SL_ANDROID_POSITIONAL_SPEAKER_MASK_ALL; in sles_channel_count_from_mask()
102 return popcount(mask); in sles_channel_count_from_mask()
113 audio_channel_representation_t sles_to_audio_channel_mask_representation(SLuint32 mask) { in sles_to_audio_channel_mask_representation() argument
114 if (mask & SL_ANDROID_SPEAKER_NON_POSITIONAL) { in sles_to_audio_channel_mask_representation()
164 SLuint32 mask, in sles_to_android_mask_helper() argument
167 if (!sles_is_channel_mask_valid(mask)) { in sles_to_android_mask_helper()
[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/Settings/
Ddevice_for_input_source.pfw4 component: /Policy/policy/input_sources/default/applicable_input_device/mask
22 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
40 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
62 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
84 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
106 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
127 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
146 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
164 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
186 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask
[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/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()
/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/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dwell_known_types_test.py311 mask = field_mask_pb2.FieldMask()
312 self.assertEqual('', mask.ToJsonString())
313 mask.paths.append('foo')
314 self.assertEqual('foo', mask.ToJsonString())
315 mask.paths.append('bar')
316 self.assertEqual('foo,bar', mask.ToJsonString())
318 mask.FromJsonString('')
319 self.assertEqual('', mask.ToJsonString())
320 mask.FromJsonString('foo')
321 self.assertEqual(['foo'], mask.paths)
[all …]
/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/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/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 …]
/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/java/android/hardware/location/
DMemoryRegion.java84 String mask = ""; in toString() local
87 mask += "r"; in toString()
89 mask += "-"; in toString()
93 mask += "w"; in toString()
95 mask += "-"; in toString()
99 mask += "x"; in toString()
101 mask += "-"; in toString()
104 String retVal = "[ " + mSizeBytesFree + "/ " + mSizeBytes + " ] : " + mask; in toString()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dfield_mask.proto59 // specified in the mask. For example, if the mask in the previous
85 // field mask.
91 // Note that a field mask does not necessarily apply to the
93 // field mask applies directly to the response, but in case of a REST
94 // list operation, the mask instead applies to each individual message
96 // other definitions may be used. Where the mask applies will be
103 // A field mask in update operations specifies which fields of the
105 // to only change the values of the fields as specified in the mask
108 // fields not covered by the mask.
113 // mask.
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHal.java715 int mask = 0; in wifiConfigurationToSupplicantKeyMgmtMask() local
720 mask |= ISupplicantStaNetwork.KeyMgmtMask.NONE; in wifiConfigurationToSupplicantKeyMgmtMask()
723 mask |= ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
726 mask |= ISupplicantStaNetwork.KeyMgmtMask.WPA_EAP; in wifiConfigurationToSupplicantKeyMgmtMask()
729 mask |= ISupplicantStaNetwork.KeyMgmtMask.IEEE8021X; in wifiConfigurationToSupplicantKeyMgmtMask()
732 mask |= ISupplicantStaNetwork.KeyMgmtMask.OSEN; in wifiConfigurationToSupplicantKeyMgmtMask()
735 mask |= ISupplicantStaNetwork.KeyMgmtMask.FT_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
738 mask |= ISupplicantStaNetwork.KeyMgmtMask.FT_EAP; in wifiConfigurationToSupplicantKeyMgmtMask()
741 mask |= android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork.KeyMgmtMask in wifiConfigurationToSupplicantKeyMgmtMask()
745 mask |= android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork.KeyMgmtMask in wifiConfigurationToSupplicantKeyMgmtMask()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java620 int mask = BluetoothReceiver.DISCOVERY_STARTED_FLAG; in startScan() local
630 BluetoothReceiver receiver = getBluetoothReceiver(mask); in startScan()
636 if (adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { in startScan()
648 adapter.isDiscovering(), firedFlags, mask)); in startScan()
658 int mask = BluetoothReceiver.DISCOVERY_FINISHED_FLAG; in stopScan() local
668 BluetoothReceiver receiver = getBluetoothReceiver(mask); in stopScan()
674 if (!adapter.isDiscovering() && ((receiver.getFiredFlags() & mask) == mask)) { in stopScan()
686 adapter.isDiscovering(), firedFlags, mask)); in stopScan()
765 int mask = PairReceiver.STATE_BONDING_FLAG | PairReceiver.STATE_BONDED_FLAG; in pairOrAcceptPair() local
778 PairReceiver receiver = getPairReceiver(device, passkey, pin, mask); in pairOrAcceptPair()
[all …]
/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 …]

12345678910>>...12