Searched refs:flags (Results 1 - 25 of 300) sorted by relevance

1234567891011>>

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
H A Ddynamic_patricia_trie_reading_utils.h49 static AK_FORCE_INLINE bool isMoved(const NodeFlags flags) { argument
50 return FLAG_IS_MOVED == (MASK_MOVED & flags);
53 static AK_FORCE_INLINE bool isDeleted(const NodeFlags flags) { argument
54 return FLAG_IS_DELETED == (MASK_MOVED & flags);
59 NodeFlags flags = originalFlags; local
60 flags = isMoved ? ((flags & (~MASK_MOVED)) | FLAG_IS_MOVED) : flags;
61 flags = isDeleted ? ((flags
[all...]
H A Dpatricia_trie_policy.cpp89 const PatriciaTrieReadingUtils::NodeFlags flags = local
97 if (PatriciaTrieReadingUtils::hasMultipleChars(flags)) {
116 if (PatriciaTrieReadingUtils::hasMultipleChars(flags)) {
117 PatriciaTrieReadingUtils::skipCharacters(mDictRoot, flags, MAX_WORD_LENGTH, &pos);
119 if (PatriciaTrieReadingUtils::isTerminal(flags)) {
125 const bool hasChildren = PatriciaTrieReadingUtils::hasChildrenInFlags(flags);
135 ::readChildrenPositionAndAdvancePosition(mDictRoot, flags, &currentPos);
197 if (PatriciaTrieReadingUtils::hasChildrenInFlags(flags)) {
199 mDictRoot, flags, &pos);
201 if (PatriciaTrieReadingUtils::hasShortcutTargets(flags)) {
253 const PatriciaTrieReadingUtils::NodeFlags flags = local
339 const PatriciaTrieReadingUtils::NodeFlags flags = local
361 const PatriciaTrieReadingUtils::NodeFlags flags = local
381 const PatriciaTrieReadingUtils::NodeFlags flags = local
402 const PatriciaTrieReadingUtils::NodeFlags flags = local
[all...]
H A Dpatricia_trie_reading_utils.h37 static int getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags,
41 static int skipCharacters(const uint8_t *const buffer, const NodeFlags flags,
47 const NodeFlags flags, int *const pos);
52 static AK_FORCE_INLINE bool isBlacklisted(const NodeFlags flags) { argument
53 return (flags & FLAG_IS_BLACKLISTED) != 0;
56 static AK_FORCE_INLINE bool isNotAWord(const NodeFlags flags) { argument
57 return (flags & FLAG_IS_NOT_A_WORD) != 0;
60 static AK_FORCE_INLINE bool isTerminal(const NodeFlags flags) { argument
61 return (flags & FLAG_IS_TERMINAL) != 0;
64 static AK_FORCE_INLINE bool hasShortcutTargets(const NodeFlags flags) { argument
68 hasBigrams(const NodeFlags flags) argument
72 hasMultipleChars(const NodeFlags flags) argument
76 hasChildrenInFlags(const NodeFlags flags) argument
[all...]
H A Dpatricia_trie_reading_utils.cpp68 const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) {
70 if (hasMultipleChars(flags)) {
92 /* static */ int PtReadingUtils::skipCharacters(const uint8_t *const buffer, const NodeFlags flags, argument
94 if (hasMultipleChars(flags)) {
112 const uint8_t *const buffer, const NodeFlags flags, int *const pos) {
115 switch (MASK_CHILDREN_POSITION_TYPE & flags) {
67 getCharsAndAdvancePosition(const uint8_t *const buffer, const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) argument
111 readChildrenPositionAndAdvancePosition( const uint8_t *const buffer, const NodeFlags flags, int *const pos) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/bigram/
H A Dbigram_list_read_write_utils.h37 static AK_FORCE_INLINE int getProbabilityFromFlags(const BigramFlags flags) { argument
38 return flags & MASK_ATTRIBUTE_PROBABILITY;
41 static AK_FORCE_INLINE bool hasNext(const BigramFlags flags) { argument
42 return (flags & FLAG_ATTRIBUTE_HAS_NEXT) != 0;
48 // Returns the size of the bigram position field that is stored in bigram flags.
49 static AK_FORCE_INLINE int attributeAddressSize(const BigramFlags flags) { argument
50 return (flags & MASK_ATTRIBUTE_ADDRESS_TYPE) >> ATTRIBUTE_ADDRESS_SHIFT;
53 switch (flags * BinaryFormat::MASK_ATTRIBUTE_ADDRESS_TYPE) {
65 static AK_FORCE_INLINE BigramFlags setProbabilityInFlags(const BigramFlags flags, argument
67 return (flags
92 isOffsetNegative(const BigramFlags flags) argument
[all...]
H A Dbigram_list_policy.h36 BigramListReadWriteUtils::BigramFlags flags; local
37 BigramListReadWriteUtils::getBigramEntryPropertiesAndAdvancePosition(mBigramsBuf, &flags,
39 *outProbability = BigramListReadWriteUtils::getProbabilityFromFlags(flags);
40 *outHasNext = BigramListReadWriteUtils::hasNext(flags);
H A Dbigram_list_read_write_utils.cpp38 // Mask for attribute probability, stored on 4 bits inside the flags byte.
60 BigramFlags flags; local
62 getBigramEntryPropertiesAndAdvancePosition(bigramsBuf, &flags, 0 /* outTargetPtNodePos */,
64 } while(hasNext(flags));
68 const uint8_t *const bigramsBuf, const BigramFlags flags, int *const pos) {
71 switch (MASK_ATTRIBUTE_ADDRESS_TYPE & flags) {
87 if (isOffsetNegative(flags)) {
115 BigramFlags flags; local
116 if (!createAndGetBigramFlags(*writingPos, targetPos, probability, hasNext, &flags)) {
119 return writeBigramEntry(buffer, flags, targetPo
67 getBigramAddressAndAdvancePosition( const uint8_t *const bigramsBuf, const BigramFlags flags, int *const pos) argument
122 writeBigramEntry( BufferWithExtendableBuffer *const bufferToWrite, const BigramFlags flags, const int targetPtNodePos, int *const writingPos) argument
141 BigramFlags flags = probability & MASK_ATTRIBUTE_PROBABILITY; local
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DLegacyPolicySet.java21 * Legacy class for policy storage as a bit field of flags
25 // Security (provisioning) flags
64 * Convert legacy policy flags to a Policy
65 * @param flags legacy policy flags
68 public static Policy flagsToPolicy(long flags) { argument
70 policy.mPasswordMode = ((int) (flags & PASSWORD_MODE_MASK)) >> PASSWORD_MODE_SHIFT;
71 policy.mPasswordMinLength = (int) ((flags & PASSWORD_LENGTH_MASK) >> PASSWORD_LENGTH_SHIFT);
73 (int) ((flags & PASSWORD_MAX_FAILS_MASK) >> PASSWORD_MAX_FAILS_SHIFT);
75 (int) ((flags
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/shortcut/
H A Dshortcut_list_reading_utils.h32 static AK_FORCE_INLINE int getProbabilityFromFlags(const ShortcutFlags flags) { argument
33 return flags & MASK_ATTRIBUTE_PROBABILITY;
36 static AK_FORCE_INLINE bool hasNext(const ShortcutFlags flags) { argument
37 return (flags & FLAG_ATTRIBUTE_HAS_NEXT) != 0;
53 static AK_FORCE_INLINE bool isWhitelist(const ShortcutFlags flags) { argument
54 return getProbabilityFromFlags(flags) == WHITELIST_SHORTCUT_PROBABILITY;
H A Dshortcut_list_policy.h47 const ShortcutListReadingUtils::ShortcutFlags flags = local
50 *outHasNext = ShortcutListReadingUtils::hasNext(flags);
53 *outIsWhitelist = ShortcutListReadingUtils::isWhitelist(flags);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DEditorInfoCompatUtils.java66 final StringBuilder flags = new StringBuilder();
68 flags.append("flagNoEnterAction|");
71 flags.append("flagNavigateNext|");
74 flags.append("flagNavigatePrevious|");
77 flags.append("flagForceAscii|");
79 return (action != null) ? flags + action : flags.toString();
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/header/
H A Dheader_read_write_utils.h40 static AK_FORCE_INLINE bool supportsDynamicUpdate(const DictionaryFlags flags) { argument
41 return (flags & SUPPORTS_DYNAMIC_UPDATE_FLAG) != 0;
44 static AK_FORCE_INLINE bool requiresGermanUmlautProcessing(const DictionaryFlags flags) { argument
45 return (flags & GERMAN_UMLAUT_PROCESSING_FLAG) != 0;
48 static AK_FORCE_INLINE bool requiresFrenchLigatureProcessing(const DictionaryFlags flags) { argument
49 return (flags & FRENCH_LIGATURE_PROCESSING_FLAG) != 0;
67 const DictionaryFlags flags, int *const writingPos);
106 // Those *must* match the flags in makedict (FormatSpec#*_PROCESSING_FLAGS) or
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/exchange/
H A DExchangeAttachment.java28 public int flags; field in class:ExchangeAttachment
38 flags = in.readInt();
48 public void writeToParcel(Parcel dest, int flags) { argument
49 super.writeToParcel(dest, flags);
55 dest.writeInt(flags);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
H A DRegexFileFilter.java66 * Construct a new regular expression filter with the specified flags case sensitivity.
76 int flags = 0;
78 flags = Pattern.CASE_INSENSITIVE;
80 this.pattern = Pattern.compile(pattern, flags);
84 * Construct a new regular expression filter with the specified flags.
87 * @param flags pattern flags - e.g. {@link Pattern#CASE_INSENSITIVE}
90 public RegexFileFilter(String pattern, int flags) { argument
94 this.pattern = Pattern.compile(pattern, flags);
/packages/apps/Provision/
H A DAndroid.mk11 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/providers/UserDictionaryProvider/
H A DAndroid.mk13 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
H A DTrafficFlags.java50 * Get flags indicating sync of the passed-in account; note that, by default, these flags
56 * @return flags for syncing this account
63 * Get flags indicating attachment loading from the passed-in account
67 * @return flags for loading an attachment in this account
74 * Get flags indicating sending SMTP email from the passed-in account
78 * @return flags for sending SMTP email from this account
84 public static String toString(int flags) { argument
87 sb.append(flags & ACCOUNT_MASK);
89 sb.append(REASONS[(flags
[all...]
/packages/apps/OneTimeInitializer/
H A DAndroid.mk30 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/wallpapers/Basic/
H A DAndroid.mk27 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/wallpapers/MagicSmoke/
H A DAndroid.mk27 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/wallpapers/MusicVisualization/
H A DAndroid.mk27 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
/packages/apps/Launcher3/src/com/android/launcher3/
H A DAppInfo.java57 int flags = 0; field in class:AppInfo
81 flags = initFlags(pi);
91 int appFlags = pi.applicationInfo.flags;
92 int flags = 0;
94 flags |= DOWNLOADED_FLAG;
97 flags |= UPDATED_SYSTEM_APP_FLAG;
100 return flags;
112 flags = info.flags;
117 * Creates the application intent based on a component name and various launch flags
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DVer3DictDecoder.java118 final int flags = PtNodeReader.readPtNodeOptionFlags(mDictBuffer);
127 if (0 != (flags & FormatSpec.FLAG_HAS_MULTIPLE_CHARS)) {
146 if (0 != (FormatSpec.FLAG_IS_TERMINAL & flags)) {
152 int childrenAddress = PtNodeReader.readChildrenAddress(mDictBuffer, flags, options);
156 addressPointer += BinaryDictIOUtils.getChildrenAddressSize(flags, options);
158 if (0 != (flags & FormatSpec.FLAG_HAS_SHORTCUT_TARGETS)) {
167 if (0 != (flags & FormatSpec.FLAG_HAS_BIGRAMS)) {
178 return new PtNodeInfo(ptNodePos, addressPointer, flags, characters, frequency,
238 final int flags = PtNodeReader.readPtNodeOptionFlags(mDictBuffer);
241 (flags
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DApplicationInfo.java56 int flags = 0; field in class:ApplicationInfo
75 int appFlags = pm.getApplicationInfo(packageName, 0).flags;
77 flags |= DOWNLOADED_FLAG;
80 flags |= UPDATED_SYSTEM_APP_FLAG;
96 flags = info.flags;
101 * Creates the application intent based on a component name and various launch flags.
105 * @param launchFlags the launch flags
/packages/apps/PackageInstaller/
H A DAndroid.mk15 LOCAL_PROGUARD_FLAG_FILES := proguard.flags

Completed in 2608 milliseconds

1234567891011>>