Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 2437) sorted by relevance

12345678910>>...98

/frameworks/base/libs/hwui/hwui/
DPaintImpl.cpp127 uint32_t flags = 0; in paintToLegacyFlags() local
128 flags |= -(int)paint.isAntiAlias() & sAntiAliasFlag; in paintToLegacyFlags()
129 flags |= -(int)paint.isDither() & sDitherFlag; in paintToLegacyFlags()
131 flags |= sFilterBitmapFlag; in paintToLegacyFlags()
133 return flags; in paintToLegacyFlags()
137 uint32_t flags = 0; in fontToLegacyFlags() local
138 flags |= -(int)font.isEmbolden() & sFakeBoldFlag; in fontToLegacyFlags()
139 flags |= -(int)font.isLinearMetrics() & sLinearMetrics; in fontToLegacyFlags()
140 flags |= -(int)font.isSubpixel() & sSubpixelMetrics; in fontToLegacyFlags()
141 flags |= -(int)font.isEmbeddedBitmaps() & sEmbeddedBitmaps; in fontToLegacyFlags()
[all …]
/frameworks/base/tools/hiddenapi/
Dgenerate_hiddenapi_lists_test.py25 flags = FlagsDict()
26 flags.parse_and_merge_csv(['A,' + FLAG_WHITELIST, 'B,' + FLAG_WHITELIST,
28 filter_set = flags.filter_apis(lambda api, flags: not flags)
34 flags = FlagsDict()
35 flags.parse_and_merge_csv(['A,' + FLAG_WHITELIST, 'B', 'C'])
36 flags.assign_flag(FLAG_GREYLIST, set(['C']))
37 self.assertEqual(flags.generate_csv(),
45 flags.get_valid_subset_of_unassigned_apis(set(['A', 'B', 'D'])), set([ 'B' ]))
48 flags = FlagsDict()
51 self.assertEqual(flags.generate_csv(), [])
[all …]
Dgenerate_hiddenapi_lists.py83 HAS_NO_API_LIST_ASSIGNED = lambda api, flags: not FLAGS_API_LIST_SET.intersection(flags) argument
84 IS_SERIALIZATION = lambda api, flags: SERIALIZATION_REGEX.match(api) argument
239 flags = csv[1:]
240 if (FLAG_PUBLIC_API in flags) or (FLAG_SYSTEM_API in flags):
241 flags.append(FLAG_WHITELIST)
242 elif FLAG_TEST_API in flags:
243 flags.append(FLAG_GREYLIST)
244 self._dict[csv[0]].update(flags)
272 flags = FlagsDict()
280 flags.parse_and_merge_csv(read_lines(filename), filename)
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIntRangeManagerTest.java48 int flags; field in IntRangeManagerTest.TestIntRangeManager
58 flags |= FLAG_START_UPDATE_CALLED; in startUpdate()
70 flags |= FLAG_ADD_RANGE_CALLED; in addRange()
78 flags |= FLAG_FINISH_UPDATE_CALLED; in finishUpdate()
84 flags = 0; in reset()
119 assertEquals("flags before test", 0, testManager.flags); in testAddSingleChannel()
121 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
127 assertEquals("flags after test", ALL_FLAGS_SET, testManager.flags); in testAddSingleChannel()
137 assertEquals("flags after enable", ALL_FLAGS_SET, testManager.flags); in testRemoveSingleChannel()
142 testManager.flags); in testRemoveSingleChannel()
[all …]
/frameworks/base/libs/androidfw/tests/
DTheme_test.cpp72 uint32_t flags; in TEST_F() local
73 EXPECT_EQ(kInvalidCookie, theme->GetAttribute(app::R::attr::attr_one, &value, &flags)); in TEST_F()
84 uint32_t flags; in TEST_F() local
87 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
91 EXPECT_EQ(static_cast<uint32_t>(ResTable_typeSpec::SPEC_PUBLIC), flags); in TEST_F()
93 cookie = theme->GetAttribute(app::R::attr::attr_two, &value, &flags); in TEST_F()
97 EXPECT_EQ(static_cast<uint32_t>(ResTable_typeSpec::SPEC_PUBLIC), flags); in TEST_F()
108 uint32_t flags; in TEST_F() local
111 cookie = theme->GetAttribute(app::R::attr::attr_one, &value, &flags); in TEST_F()
115 EXPECT_EQ(static_cast<uint32_t>(ResTable_typeSpec::SPEC_PUBLIC), flags); in TEST_F()
[all …]
/frameworks/av/media/codec2/components/vpx/
DC2SoftVpxEnc.cpp338 vpx_enc_frame_flags_t flags = 0; in getEncodeFlags() local
344 flags |= VP8_EFLAG_NO_UPD_GF; in getEncodeFlags()
345 flags |= VP8_EFLAG_NO_UPD_ARF; in getEncodeFlags()
346 flags |= VP8_EFLAG_NO_REF_GF; in getEncodeFlags()
347 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
350 flags |= VP8_EFLAG_NO_REF_GF; in getEncodeFlags()
353 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
354 flags |= VP8_EFLAG_NO_UPD_ARF; in getEncodeFlags()
355 flags |= VP8_EFLAG_NO_UPD_LAST; in getEncodeFlags()
358 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
[all …]
/frameworks/base/core/java/android/content/pm/
DUserInfo.java108 public int flags; field in UserInfo
132 public UserInfo(int id, String name, int flags) { in UserInfo() argument
133 this(id, name, null, flags); in UserInfo()
137 public UserInfo(int id, String name, String iconPath, int flags) { in UserInfo() argument
140 this.flags = flags; in UserInfo()
148 return (flags & FLAG_PRIMARY) == FLAG_PRIMARY; in isPrimary()
153 return (flags & FLAG_ADMIN) == FLAG_ADMIN; in isAdmin()
158 return (flags & FLAG_GUEST) == FLAG_GUEST; in isGuest()
163 return (flags & FLAG_RESTRICTED) == FLAG_RESTRICTED; in isRestricted()
168 return (flags & FLAG_MANAGED_PROFILE) == FLAG_MANAGED_PROFILE; in isManagedProfile()
[all …]
DIPackageManager.aidl69 PackageInfo getPackageInfo(String packageName, int flags, int userId); in getPackageInfo() argument
71 int flags, int userId); in getPackageInfoVersioned() argument
73 int getPackageUid(String packageName, int flags, int userId); in getPackageUid() argument
74 int[] getPackageGids(String packageName, int flags, int userId); in getPackageGids() argument
81 PermissionInfo getPermissionInfo(String name, String packageName, int flags); in getPermissionInfo() argument
83 ParceledListSlice queryPermissionsByGroup(String group, int flags); in queryPermissionsByGroup() argument
86 PermissionGroupInfo getPermissionGroupInfo(String name, int flags); in getPermissionGroupInfo() argument
88 ParceledListSlice getAllPermissionGroups(int flags); in getAllPermissionGroups() argument
91 ApplicationInfo getApplicationInfo(String packageName, int flags ,int userId); in getApplicationInfo() argument
94 ActivityInfo getActivityInfo(in ComponentName className, int flags, int userId); in getActivityInfo() argument
[all …]
DPackageUserState.java120 public boolean isAvailable(int flags) { in isAvailable() argument
123 final boolean matchAnyUser = (flags & PackageManager.MATCH_ANY_USER) != 0; in isAvailable()
124 final boolean matchUninstalled = (flags & PackageManager.MATCH_UNINSTALLED_PACKAGES) != 0; in isAvailable()
139 public boolean isMatch(ComponentInfo componentInfo, int flags) { in isMatch() argument
141 final boolean matchUninstalled = (flags & PackageManager.MATCH_KNOWN_PACKAGES) != 0; in isMatch()
142 if (!isAvailable(flags) in isMatch()
143 && !(isSystemApp && matchUninstalled)) return reportIfDebug(false, flags); in isMatch()
144 if (!isEnabled(componentInfo, flags)) return reportIfDebug(false, flags); in isMatch()
146 if ((flags & MATCH_SYSTEM_ONLY) != 0) { in isMatch()
148 return reportIfDebug(false, flags); in isMatch()
[all …]
/frameworks/av/camera/
DCameraUtils.cpp53 int32_t& flags = *transform; in getRotationTransform() local
60 flags = 0; in getRotationTransform()
63 flags = NATIVE_WINDOW_TRANSFORM_ROT_90; in getRotationTransform()
66 flags = NATIVE_WINDOW_TRANSFORM_ROT_180; in getRotationTransform()
69 flags = NATIVE_WINDOW_TRANSFORM_ROT_270; in getRotationTransform()
82 flags = NATIVE_WINDOW_TRANSFORM_FLIP_H; in getRotationTransform()
85 flags = NATIVE_WINDOW_TRANSFORM_FLIP_H ^ in getRotationTransform()
89 flags = NATIVE_WINDOW_TRANSFORM_FLIP_H ^ in getRotationTransform()
93 flags = NATIVE_WINDOW_TRANSFORM_FLIP_H ^ in getRotationTransform()
118 flags |= NATIVE_WINDOW_TRANSFORM_INVERSE_DISPLAY; in getRotationTransform()
[all …]
/frameworks/av/media/libaudioclient/tests/
Drecord_test_output_v1.0_ref_walleye.txt5 flags(0), req. flags(0), audio source(0)
14 flags(0), req. flags(0), audio source(0)
23 flags(0), req. flags(0), audio source(0)
32 flags(0), req. flags(0), audio source(0)
41 flags(0), req. flags(0), audio source(0)
50 flags(0), req. flags(0), audio source(0)
59 flags(0), req. flags(0), audio source(0)
68 flags(0), req. flags(0), audio source(0)
77 flags(0), req. flags(0), audio source(0)
86 flags(0), req. flags(0), audio source(0)
[all …]
/frameworks/base/tests/net/common/java/android/net/metrics/
DApfProgramEventTest.kt56 assertEquals(ApfProgramEvent.flagsFor(true, true), apfProgramEvent.flags) in hasFlag()
63 var flags = ApfProgramEvent.flagsFor(false, false) in testFlagsFor() variable
64 assertFalse(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
65 assertFalse(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
67 flags = ApfProgramEvent.flagsFor(true, false) in testFlagsFor()
68 assertTrue(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
69 assertFalse(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
71 flags = ApfProgramEvent.flagsFor(false, true) in testFlagsFor()
72 assertFalse(flags hasFlag ApfProgramEvent.FLAG_HAS_IPV4_ADDRESS) in testFlagsFor()
73 assertTrue(flags hasFlag ApfProgramEvent.FLAG_MULTICAST_FILTER_ON) in testFlagsFor()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionInspector.java116 int flags = 0; in getMissingMethodFlagsInternal() local
118 flags |= MissingMethodFlags.GET_SELECTED_TEXT; in getMissingMethodFlagsInternal()
121 flags |= MissingMethodFlags.SET_COMPOSING_REGION; in getMissingMethodFlagsInternal()
124 flags |= MissingMethodFlags.COMMIT_CORRECTION; in getMissingMethodFlagsInternal()
127 flags |= MissingMethodFlags.REQUEST_CURSOR_UPDATES; in getMissingMethodFlagsInternal()
130 flags |= MissingMethodFlags.DELETE_SURROUNDING_TEXT_IN_CODE_POINTS; in getMissingMethodFlagsInternal()
133 flags |= MissingMethodFlags.GET_HANDLER; in getMissingMethodFlagsInternal()
136 flags |= MissingMethodFlags.CLOSE_CONNECTION; in getMissingMethodFlagsInternal()
139 flags |= MissingMethodFlags.COMMIT_CONTENT; in getMissingMethodFlagsInternal()
141 sMissingMethodsMap.put(clazz, flags); in getMissingMethodFlagsInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java41 final int flags; // Binding options. field in ConnectionRecord
97 + " flags=0x" + Integer.toHexString(flags)); in dump()
108 flags = _flags; in ConnectionRecord()
117 return (flags & flag) != 0; in hasFlag()
121 return (flags & flag) == 0; in notHasFlag()
171 if ((flags&Context.BIND_AUTO_CREATE) != 0) { in toString()
174 if ((flags&Context.BIND_DEBUG_UNBIND) != 0) { in toString()
177 if ((flags&Context.BIND_NOT_FOREGROUND) != 0) { in toString()
180 if ((flags&Context.BIND_IMPORTANT_BACKGROUND) != 0) { in toString()
183 if ((flags&Context.BIND_ABOVE_CLIENT) != 0) { in toString()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java49 public PackageInfo getPackageInfo(String packageName, int flags) in getPackageInfo() argument
51 return getPackageInfoAsUser(packageName, flags, UserHandle.USER_SYSTEM); in getPackageInfo()
55 public PackageInfo getPackageInfo(VersionedPackage versionedPackage, int flags) in getPackageInfo() argument
61 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
101 public int[] getPackageGids(String packageName, int flags) in getPackageGids() argument
107 public int getPackageUid(String packageName, int flags) in getPackageUid() argument
119 public int getPackageUidAsUser(String packageName, int flags, int userId) in getPackageUidAsUser() argument
125 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo() argument
131 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() argument
147 public PermissionGroupInfo getPermissionGroupInfo(String name, int flags) in getPermissionGroupInfo() argument
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java66 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument
71 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
78 @PackageInfoFlags int flags) throws NameNotFoundException { in getPackageInfo() argument
83 public List<SharedLibraryInfo> getSharedLibraries(@InstallFlags int flags) { in getSharedLibraries() argument
88 public List<SharedLibraryInfo> getSharedLibrariesAsUser(@InstallFlags int flags, in getSharedLibrariesAsUser() argument
124 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument
129 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument
139 …public int getPackageUidAsUser(String packageName, int flags, int userHandle) throws NameNotFoundE… in getPackageUidAsUser() argument
144 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo() argument
149 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() argument
[all …]
/frameworks/base/core/java/android/net/
DLinkAddress.java76 private int flags; field in LinkAddress
155 private void init(InetAddress address, int prefixLength, int flags, int scope) { in init() argument
166 this.flags = flags; in init()
183 int flags, int scope) { in LinkAddress() argument
184 init(address, prefixLength, flags, scope); in LinkAddress()
236 public LinkAddress(@NonNull String address, int flags, int scope) { in LinkAddress() argument
240 init(ipAndMask.first, ipAndMask.second, flags, scope); in LinkAddress()
270 this.flags == linkAddress.flags && in equals()
279 return address.hashCode() + 11 * prefixLength + 19 * flags + 43 * scope; in hashCode()
332 return flags; in getFlags()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp548 vpx_enc_frame_flags_t flags = 0; in getEncodeFlags() local
554 flags |= VP8_EFLAG_NO_UPD_GF; in getEncodeFlags()
555 flags |= VP8_EFLAG_NO_UPD_ARF; in getEncodeFlags()
556 flags |= VP8_EFLAG_NO_REF_GF; in getEncodeFlags()
557 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
560 flags |= VP8_EFLAG_NO_REF_GF; in getEncodeFlags()
563 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
564 flags |= VP8_EFLAG_NO_UPD_ARF; in getEncodeFlags()
565 flags |= VP8_EFLAG_NO_UPD_LAST; in getEncodeFlags()
568 flags |= VP8_EFLAG_NO_REF_ARF; in getEncodeFlags()
[all …]
/frameworks/base/core/java/android/os/
DDropBoxManager.java142 public Entry(String tag, long millis, byte[] data, int flags) { in Entry() argument
144 if (((flags & IS_EMPTY) != 0) != (data == null)) { in Entry()
145 throw new IllegalArgumentException("Bad flags: " + flags); in Entry()
152 mFlags = flags; in Entry()
159 public Entry(String tag, long millis, ParcelFileDescriptor data, int flags) { in Entry() argument
161 if (((flags & IS_EMPTY) != 0) != (data == null)) { in Entry()
162 throw new IllegalArgumentException("Bad flags: " + flags); in Entry()
169 mFlags = flags; in Entry()
176 public Entry(String tag, long millis, File data, int flags) throws IOException { in Entry() argument
178 if ((flags & IS_EMPTY) != 0) throw new IllegalArgumentException("Bad flags: " + flags); in Entry()
[all …]
/frameworks/native/vulkan/libvulkan/
Ddebug_report.cpp34 head_.next = new (mem) Node{head_.next, info.flags, info.pfnCallback, in AddCallback()
56 void DebugReportCallbackList::Message(VkDebugReportFlagsEXT flags, in Message() argument
66 if ((node->flags & flags) != 0) { in Message()
67 node->callback(flags, object_type, object, location, message_code, in Message()
73 void DebugReportLogger::Message(VkDebugReportFlagsEXT flags, in Message() argument
86 (info->flags & flags) != 0) { in Message()
87 info->pfnCallback(flags, object_type, object, location, in Message()
97 callbacks_->Message(flags, object_type, object, location, message_code, in Message()
102 void DebugReportLogger::PrintV(VkDebugReportFlagsEXT flags, in PrintV() argument
114 Message(flags, object_type, object, 0, 0, LOG_TAG, buf); in PrintV()
[all …]
/frameworks/base/core/java/android/view/autofill/
DAutofillId.java67 private AutofillId(int flags, int parentId, long virtualChildId, int sessionId) { in AutofillId() argument
68 mFlags = flags; in AutofillId()
70 mVirtualIntId = ((flags & FLAG_IS_VIRTUAL_INT) != 0) ? (int) virtualChildId : View.NO_ID; in AutofillId()
71 mVirtualLongId = ((flags & FLAG_IS_VIRTUAL_LONG) != 0) ? virtualChildId : View.NO_ID; in AutofillId()
77 final int flags = id.mFlags & ~FLAG_HAS_SESSION; in withoutSession() local
78 return new AutofillId(flags, id.mViewId, id.mVirtualLongId, NO_SESSION); in withoutSession()
227 public void writeToParcel(Parcel parcel, int flags) { in writeToParcel() argument
245 final int flags = source.readInt();
246 final int sessionId = (flags & FLAG_HAS_SESSION) != 0 ? source.readInt() : NO_SESSION;
247 if ((flags & FLAG_IS_VIRTUAL_INT) != 0) {
[all …]
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java74 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument
80 int flags) throws NameNotFoundException { in getPackageInfo() argument
86 public PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() argument
123 public int[] getPackageGids(String packageName, int flags) throws NameNotFoundException { in getPackageGids() argument
128 public int getPackageUid(String packageName, int flags) throws NameNotFoundException { in getPackageUid() argument
134 public int getPackageUidAsUser(String packageName, int flags, int userHandle) in getPackageUidAsUser() argument
147 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo() argument
153 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() argument
172 int flags) throws NameNotFoundException { in getPermissionGroupInfo() argument
177 public List<PermissionGroupInfo> getAllPermissionGroups(int flags) { in getAllPermissionGroups() argument
[all …]
/frameworks/base/core/java/android/util/
DBase64.java118 public static byte[] decode(String str, int flags) { in decode() argument
119 return decode(str.getBytes(), flags); in decode()
136 public static byte[] decode(byte[] input, int flags) { in decode() argument
137 return decode(input, 0, input.length, flags); in decode()
156 public static byte[] decode(byte[] input, int offset, int len, int flags) { in decode() argument
159 Decoder decoder = new Decoder(flags, new byte[len*3/4]); in decode()
242 public Decoder(int flags, byte[] output) { in Decoder() argument
245 alphabet = ((flags & URL_SAFE) == 0) ? DECODE : DECODE_WEBSAFE; in Decoder()
455 public static String encodeToString(byte[] input, int flags) { in encodeToString() argument
457 return new String(encode(input, flags), "US-ASCII"); in encodeToString()
[all …]
/frameworks/av/services/camera/libcameraservice/hidl/
DCameraHybridInterface.h45 uint32_t flags = 0);
49 uint32_t flags = 0,
57 uint32_t flags; member
63 recipient(r), cookie(c), flags(f), who(w) { in Obituary()
68 flags(o.flags), in Obituary()
74 flags = o.flags;
96 void* cookie, uint32_t flags) { in linkToDeath() argument
101 mObituaries.push_back(new Obituary(recipient, cookie, flags, this)); in linkToDeath()
116 void* cookie, uint32_t flags, in unlinkToDeath() argument
120 if ((flags = (*i)->flags) && ( in unlinkToDeath()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DQuickStepContract.java89 public static String getSystemUiStateString(int flags) { in getSystemUiStateString() argument
91 str.add((flags & SYSUI_STATE_SCREEN_PINNING) != 0 ? "screen_pinned" : ""); in getSystemUiStateString()
92 str.add((flags & SYSUI_STATE_OVERVIEW_DISABLED) != 0 ? "overview_disabled" : ""); in getSystemUiStateString()
93 str.add((flags & SYSUI_STATE_HOME_DISABLED) != 0 ? "home_disabled" : ""); in getSystemUiStateString()
94 str.add((flags & SYSUI_STATE_NAV_BAR_HIDDEN) != 0 ? "navbar_hidden" : ""); in getSystemUiStateString()
95 str.add((flags & SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED) != 0 ? "notif_visible" : ""); in getSystemUiStateString()
96 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING) != 0 ? "keygrd_visible" : ""); in getSystemUiStateString()
97 str.add((flags & SYSUI_STATE_STATUS_BAR_KEYGUARD_SHOWING_OCCLUDED) != 0 in getSystemUiStateString()
99 str.add((flags & SYSUI_STATE_BOUNCER_SHOWING) != 0 ? "bouncer_visible" : ""); in getSystemUiStateString()
100 str.add((flags & SYSUI_STATE_A11Y_BUTTON_CLICKABLE) != 0 ? "a11y_click" : ""); in getSystemUiStateString()
[all …]

12345678910>>...98