Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/jni/filters/
DredEyeMath.c35 void findPossible(unsigned char *src, unsigned char *mask, int iw, in findPossible() argument
48 mask[x + y * recW] = ( in findPossible()
49 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
56 void findReds(unsigned char *src, unsigned char *mask, int iw, int ih __unused, in findReds() argument
66 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
74 unsigned char *mask, unsigned char *out, short *rect) { in dialateMaskIfRed() argument
84 char b = (mask[row + x] | mask[row + x + 1] | mask[row + x - 1] in dialateMaskIfRed()
85 | mask[row + x - recW] | mask[row + x + recW]); in dialateMaskIfRed()
89 out[row + x] = mask[row + x]; in dialateMaskIfRed()
94 void dialateMask(unsigned char *mask, unsigned char *out, int mw, int mh) { in dialateMask() argument
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupFragment.java150 public void enableFragmentTransition(@FragmentTransitionType int mask) { in enableFragmentTransition() argument
152 (mask & FRAGMENT_ENTER_TRANSITION) == 0 ? null : createTransition(Gravity.END)); in enableFragmentTransition()
154 (mask & FRAGMENT_EXIT_TRANSITION) == 0 ? null : createTransition(Gravity.START)); in enableFragmentTransition()
156 (mask & FRAGMENT_REENTER_TRANSITION) == 0 ? null : createTransition(Gravity.START)); in enableFragmentTransition()
158 (mask & FRAGMENT_RETURN_TRANSITION) == 0 ? null : createTransition(Gravity.END)); in enableFragmentTransition()
188 public void setShortDistance(@FragmentTransitionType int mask) { in setShortDistance() argument
189 if ((mask & FRAGMENT_ENTER_TRANSITION) != 0) { in setShortDistance()
195 if ((mask & FRAGMENT_EXIT_TRANSITION) != 0) { in setShortDistance()
201 if ((mask & FRAGMENT_REENTER_TRANSITION) != 0) { in setShortDistance()
207 if ((mask & FRAGMENT_RETURN_TRANSITION) != 0) { in setShortDistance()
/packages/apps/SecureElement/src/com/android/se/security/
DApduFilter.java50 public ApduFilter(byte[] apdu, byte[] mask) { in ApduFilter() argument
54 if (mask.length != 4) { in ApduFilter()
58 mMask = mask; in ApduFilter()
94 public void setMask(byte[] mask) { in setMask() argument
95 if (mask.length != 4) { in setMask()
98 mMask = mask; in setMask()
DCommandApdu.java89 public static boolean compareHeaders(byte[] header1, byte[] mask, byte[] header2) { in compareHeaders() argument
94 compHeader[0] = (byte) (header1[0] & mask[0]); in compareHeaders()
95 compHeader[1] = (byte) (header1[1] & mask[1]); in compareHeaders()
96 compHeader[2] = (byte) (header1[2] & mask[2]); in compareHeaders()
97 compHeader[3] = (byte) (header1[3] & mask[3]); in compareHeaders()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java54 private FolderAdaptiveIcon(Drawable bg, Drawable fg, Drawable badge, Path mask) { in FolderAdaptiveIcon() argument
57 mMask = mask; in FolderAdaptiveIcon()
60 badge.getConstantState(), mask); in FolderAdaptiveIcon()
134 Path mask = new Path(); in createDrawableOnUiThread() local
137 bg.getClipPath().transform(m, mask); in createDrawableOnUiThread()
143 return new FolderAdaptiveIcon(new ColorDrawable(bg.getBgColor()), foreground, badge, mask); in createDrawableOnUiThread()
157 MyConstantState(ConstantState bg, ConstantState fg, ConstantState badge, Path mask) { in MyConstantState() argument
161 mMask = mask; in MyConstantState()
DDragView.java255 final Path mask = adaptiveIcon.getIconMask(); in setItemInfo()
281 mScaledMaskPath = mask; in setItemInfo()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java111 @ViewDebug.FlagToString(mask = -1,
113 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
115 @ViewDebug.FlagToString(mask = Gravity.TOP,
117 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
119 @ViewDebug.FlagToString(mask = Gravity.LEFT,
121 @ViewDebug.FlagToString(mask = Gravity.RIGHT,
123 @ViewDebug.FlagToString(mask = Gravity.START,
125 @ViewDebug.FlagToString(mask = Gravity.END,
127 @ViewDebug.FlagToString(mask = Gravity.CENTER_VERTICAL,
129 @ViewDebug.FlagToString(mask = Gravity.FILL_VERTICAL,
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java111 @ViewDebug.FlagToString(mask = -1,
113 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
115 @ViewDebug.FlagToString(mask = Gravity.TOP,
117 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
119 @ViewDebug.FlagToString(mask = Gravity.LEFT,
121 @ViewDebug.FlagToString(mask = Gravity.RIGHT,
123 @ViewDebug.FlagToString(mask = Gravity.START,
125 @ViewDebug.FlagToString(mask = Gravity.END,
127 @ViewDebug.FlagToString(mask = Gravity.CENTER_VERTICAL,
129 @ViewDebug.FlagToString(mask = Gravity.FILL_VERTICAL,
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java57 ProfileConfig(Class theClass, int supportedFlag, long mask) { in ProfileConfig() argument
60 mMask = mask; in ProfileConfig()
149 long mask = 0; in getSupportedProfilesBitMask() local
151 mask |= getProfileMask(profileClass); in getSupportedProfilesBitMask()
153 return mask; in getSupportedProfilesBitMask()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java1085 int mask = (1 << col); in loadImageDone() local
1086 Assert((mCompletedMask & mask) == 0); in loadImageDone()
1087 Assert((mRequestedMask & mask) != 0); in loadImageDone()
1088 mRequestedMask &= ~mask; in loadImageDone()
1089 mCompletedMask |= mask; in loadImageDone()
1148 int mask = (1 << col); in cancelRequest() local
1149 Assert((mRequestedMask & mask) != 0); in cancelRequest()
1150 mRequestedMask &= ~mask; in cancelRequest()
1160 int mask = (1 << i); in cancelAllRequests() local
1161 if ((mRequestedMask & mask) != 0) { in cancelAllRequests()
[all …]
/packages/apps/Nfc/nci/jni/
DNativeNfcManager.cpp1901 tNFA_TECHNOLOGY_MASK mask = 0; in nfcManager_doSetP2pInitiatorModes() local
1902 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A; in nfcManager_doSetP2pInitiatorModes()
1903 if (modes & 0x02) mask |= NFA_TECHNOLOGY_MASK_F; in nfcManager_doSetP2pInitiatorModes()
1904 if (modes & 0x04) mask |= NFA_TECHNOLOGY_MASK_F; in nfcManager_doSetP2pInitiatorModes()
1905 if (modes & 0x08) mask |= NFA_TECHNOLOGY_MASK_A_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1906 if (modes & 0x10) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1907 if (modes & 0x20) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1908 nat->tech_mask = mask; in nfcManager_doSetP2pInitiatorModes()
1927 tNFA_TECHNOLOGY_MASK mask = 0; in nfcManager_doSetP2pTargetModes() local
1928 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A; in nfcManager_doSetP2pTargetModes()
[all …]
/packages/services/Car/evs/app/
DFormatConvert.cpp26 unsigned mask = alignment - 1; in align() local
27 return (value + mask) & ~mask; in align()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java876 private static void getGaussianMask(float[] mask) { in getGaussianMask() argument
877 int len = mask.length; in getGaussianMask()
885 mask[i] = ex; in getGaussianMask()
886 mask[symmetricIndex] = ex; in getGaussianMask()
887 sum += mask[i]; in getGaussianMask()
889 sum += mask[symmetricIndex]; in getGaussianMask()
893 for (int i = 0; i < mask.length; i++) { in getGaussianMask()
894 mask[i] /= sum; in getGaussianMask()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java260 int mask = (1 << d) - 1; in bitCycleLeft() local
261 int mout = x & mask; in bitCycleLeft()
264 int low = (mout << times) & mask; in bitCycleLeft()
265 int ret = x & ~mask; in bitCycleLeft()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCrop.java202 int mask = (1 << d) - 1; in bitCycleLeft() local
203 int mout = x & mask; in bitCycleLeft()
206 int low = (mout << times) & mask; in bitCycleLeft()
207 int ret = x & ~mask; in bitCycleLeft()
/packages/services/Car/evs/sampleDriver/
DbufferCopy.cpp34 unsigned mask = alignment - 1; in align() local
35 return (value + mask) & ~mask; in align()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java41 final int mask, final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in onePathForCaps() argument
42 final int oneTimeResult = expectedResult & mask; in onePathForCaps()
44 CapsModeUtils.getCapsMode(cs, mask, sp, hasSpaceBefore)); in onePathForCaps()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/util/
DScanDataAnalyzerTest.java74 BigInteger mask = new BigInteger("00000000000000000000000000200000", 16); in containsUuidsInOverflow_incorrectLengthByte_shouldReturnFalse() local
75 assertThat(ScanDataAnalyzer.containsUuidsInOverflow(data, mask)).isFalse(); in containsUuidsInOverflow_incorrectLengthByte_shouldReturnFalse()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h126 #define TRANS(mask) result &= ((GetRange((unsigned char)c) & (mask)) != 0) in Decode() argument
155 #define TRANS(mask) result &= ((GetRange((unsigned char)c) & (mask)) != 0) in Validate() argument
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/netlink/
DTcpSocketTrackerTest.java249 private MarkMaskParcel makeMarkMaskParcel(final int mask, final int mark) { in makeMarkMaskParcel() argument
251 parcel.mask = mask; in makeMarkMaskParcel()
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseActivity.java253 public boolean hasSomeInvisibleFlag(int mask) { in hasSomeInvisibleFlag() argument
254 return (mForceInvisible & mask) != 0; in hasSomeInvisibleFlag()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientConnectionHandler.java493 private boolean isRepositorySupported(int mask) { in isRepositorySupported() argument
498 return (mask & mPseRec.getSupportedRepositories()) != 0; in isRepositorySupported()
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/
Dhistory_item_action_module_info.proto28 // Bit-mask describing features of the call.
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowContentResolver.java137 protected static Object addStatusChangeListener(int mask, SyncStatusObserver callback) { in addStatusChangeListener() argument
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java615 int flags, int mask, @NonNull Context context) { in setPermissionFlags() argument
618 packageManager.updatePermissionFlags(permission, packageName, mask, flags, user); in setPermissionFlags()

12