Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/jni/filters/
DredEyeMath.c33 void findPossible(unsigned char *src, unsigned char *mask, int iw, int ih, in findPossible() argument
46 mask[x + y * recW] = ( in findPossible()
47 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
54 void findReds(unsigned char *src, unsigned char *mask, int iw, int ih, in findReds() argument
64 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
71 void dialateMaskIfRed(unsigned char *src, int iw, int ih, unsigned char *mask, in dialateMaskIfRed() argument
82 char b = (mask[row + x] | mask[row + x + 1] | mask[row + x - 1] in dialateMaskIfRed()
83 | mask[row + x - recW] | mask[row + x + recW]); in dialateMaskIfRed()
87 out[row + x] = mask[row + x]; in dialateMaskIfRed()
92 void dialateMask(unsigned char *mask, unsigned char *out, int mw, int mh) { in dialateMask() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterGradRepresentation.java65 private boolean mask = true; field in FilterGradRepresentation.Band
87 mask = copy.mask; in Band()
103 if (!point.mask) { in toString()
112 p.mask = false; in creatExample()
162 if (b1.mask != b2.mask in equals()
181 if (!point.mask) { in getNumberOfBands()
190 mCurrentBand.mask = false; in addBand()
206 if (point.mask) { in addBand()
212 if (point.mask) { in addBand()
264 while (point.mask == true); in nextPoint()
[all …]
Dgrad.rs38 bool mask[MAX_POINTS];
54 if (!mask[i]) {
/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java180 Bitmap mask = src.extractAlpha(sBlurPaint, xy); in drawSelectedAllAppsBitmap() local
184 dest.drawBitmap(mask, px + xy[0], py + xy[1], in drawSelectedAllAppsBitmap()
187 mask.recycle(); in drawSelectedAllAppsBitmap()
257 int mask = 0x8000000; in roundToPow2() local
258 while (mask != 0 && (n & mask) == 0) { in roundToPow2()
259 mask >>= 1; in roundToPow2()
261 while (mask != 0) { in roundToPow2()
262 n |= mask; in roundToPow2()
263 mask >>= 1; in roundToPow2()
/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/apps/Nfc/nci/jni/
DNativeNfcManager.cpp1576 tNFA_TECHNOLOGY_MASK mask = 0; in nfcManager_doSetP2pInitiatorModes() local
1577 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A; in nfcManager_doSetP2pInitiatorModes()
1578 if (modes & 0x02) mask |= NFA_TECHNOLOGY_MASK_F; in nfcManager_doSetP2pInitiatorModes()
1579 if (modes & 0x04) mask |= NFA_TECHNOLOGY_MASK_F; in nfcManager_doSetP2pInitiatorModes()
1580 if (modes & 0x08) mask |= NFA_TECHNOLOGY_MASK_A_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1581 if (modes & 0x10) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1582 if (modes & 0x20) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE; in nfcManager_doSetP2pInitiatorModes()
1583 nat->tech_mask = mask; in nfcManager_doSetP2pInitiatorModes()
1603 tNFA_TECHNOLOGY_MASK mask = 0; in nfcManager_doSetP2pTargetModes() local
1604 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A; in nfcManager_doSetP2pTargetModes()
[all …]
/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/UnifiedEmail/src/com/android/mail/ui/
DActionBarController.java312 final int mask = ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_HOME; in removeBackButton() local
313 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME, mask); in removeBackButton()
322 final int mask = ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_HOME; in setBackButton() local
323 mActionBar.setDisplayOptions(mask, mask); in setBackButton()
380 final int mask = ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_CUSTOM; in setTitleModeFlags() local
381 mActionBar.setDisplayOptions(enabledFlags, mask); in setTitleModeFlags()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
Dclouds.rs188 int mask = gTextureMask;
189 if (mask & 1) {
192 if (mask & 2) {
195 if (mask & 4) {
198 if (mask & 8) {
201 if (mask & 16) {
DMagicSmokeRS.java95 Preset(int processmode, int backcol, int locol, int hicol, float mul, int mask, in Preset() argument
102 mTextureMask = mask; in Preset()
/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/imageshow/
DImageGrad.java59 int mask = event.getActionMasked(); in onTouchEvent() local
62 if (MotionEvent.ACTION_DOWN != mask) { in onTouchEvent()
99 switch (mask) { in onTouchEvent()
116 switch (mask) { in onTouchEvent()
DImageVignette.java143 int mask = event.getActionMasked(); in onTouchEvent() local
145 if (MotionEvent.ACTION_DOWN != mask) { in onTouchEvent()
155 switch (mask) { in onTouchEvent()
170 switch (mask) { in onTouchEvent()
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/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java675 int mask = 1 << shift; in updatePreviewStates() local
679 return previewStates | mask; in updatePreviewStates()
682 return previewStates & ~mask; in updatePreviewStates()
697 int mask = 1 << shift; in getPreviewState() local
701 return (previewStates & mask) != 0; in getPreviewState()
704 return (previewStates & (mask << 1)) != 0; in getPreviewState()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp1412 jbyteArray data, jbyteArray mask) in gattClientScanFilterAddRemoveNative() argument
1429 jbyte* mask_array = env->GetByteArrayElements(mask, NULL); in gattClientScanFilterAddRemoveNative()
1430 uint16_t mask_len = (uint16_t) env->GetArrayLength(mask); in gattClientScanFilterAddRemoveNative()
1434 env->ReleaseByteArrayElements(mask, mask_array, JNI_ABORT); in gattClientScanFilterAddRemoveNative()
1471 jbyte* mask_array = env->GetByteArrayElements(mask, NULL); in gattClientScanFilterAddRemoveNative()
1472 uint16_t mask_len = (uint16_t) env->GetArrayLength(mask); in gattClientScanFilterAddRemoveNative()
1477 env->ReleaseByteArrayElements(mask, mask_array, JNI_ABORT); in gattClientScanFilterAddRemoveNative()
1489 jstring name, jstring address, jbyte addr_type, jbyteArray data, jbyteArray mask) in gattClientScanFilterAddNative() argument
1495 name, address, addr_type, data, mask); in gattClientScanFilterAddNative()
1502 jstring name, jstring address, jbyte addr_type, jbyteArray data, jbyteArray mask) in gattClientScanFilterDeleteNative() argument
[all …]
/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/InCallUI/src/com/android/incallui/
DAnswerPresenter.java200 private boolean isEnabled(int videoState, int mask) { in isEnabled() argument
201 return (videoState & mask) == mask; in isEnabled()
DCallButtonPresenter.java153 public void onSupportedAudioMode(int mask) { in onSupportedAudioMode() argument
155 getUi().setSupportedAudio(mask); in onSupportedAudioMode()
433 void setSupportedAudio(int mask); in setSupportedAudio() argument
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java32 final int mask, final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in onePathForCaps() argument
33 final int oneTimeResult = expectedResult & mask; in onePathForCaps()
35 CapsModeUtils.getCapsMode(cs, mask, sp, hasSpaceBefore)); in onePathForCaps()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java1031 String address, byte addr_type, byte[] data, byte[] mask); in gattClientScanFilterAddNative() argument
1037 String address, byte addr_type, byte[] data, byte[] mask); in gattClientScanFilterDeleteNative() argument
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java1014 int mask = 0; in computeLockscreenPollMask() local
1018 mask |= techCodeToMask.get(techList[i]).intValue(); in computeLockscreenPollMask()
1022 return mask; in computeLockscreenPollMask()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java892 boolean eventMaskContainsContacts(long mask) { in eventMaskContainsContacts() argument
893 return sendEventParticipantPresenceChanged(mask); in eventMaskContainsContacts()
896 boolean eventMaskContainsCovo(long mask) { in eventMaskContainsCovo() argument
897 return (sendEventConversationChanged(mask) in eventMaskContainsCovo()
898 || sendEventParticipantChatstateChanged(mask)); in eventMaskContainsCovo()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp387 int mask; in db_Filter14641_128_i() local
389 mask=0xFFFFFFFF; in db_Filter14641_128_i()
396 movd mm7,mask in db_Filter14641_128_i()
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp387 int mask; in db_Filter14641_128_i() local
389 mask=0xFFFFFFFF; in db_Filter14641_128_i()
396 movd mm7,mask in db_Filter14641_128_i()

12