Lines Matching refs:mask
266 static void SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in SetMethodFlags() argument
271 uint8_t base1 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
273 mask >>= 7; in SetMethodFlags()
275 uint8_t base2 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
277 mask >>= 7; in SetMethodFlags()
279 uint8_t base3 = static_cast<uint8_t>(mask & 0x7F); in SetMethodFlags()
290 static void ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in ApplyMaskToMethodFlags() argument
292 value &= mask; in ApplyMaskToMethodFlags()
297 static void OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) { in OrMaskToMethodFlags() argument
299 value |= mask; in OrMaskToMethodFlags()
439 uint32_t mask = ((i & 1) != 0 ? kAccPrivate : 0) | in TEST_F() local
450 OrMaskToMethodFlags(dex_file, "<init>", mask); in TEST_F()
575 uint32_t mask = ((j & 1) != 0 ? kAccPrivate : 0) | in TEST_F() local
586 OrMaskToMethodFlags(dex_file, kMethods[i], mask); in TEST_F()
663 static uint32_t ApplyMaskShifted(uint32_t src_value, uint32_t mask) { in ApplyMaskShifted() argument
669 ((mask & (1 << mask_index)) != 0)) { in ApplyMaskShifted()
818 uint32_t mask = ApplyMaskShifted(kInterfaceDisallowed, i); in TEST_F() local
819 if ((mask & kAccProtected) != 0) { in TEST_F()
820 mask &= ~kAccProtected; in TEST_F()
823 OrMaskToMethodFlags(dex_file, "foo", mask); in TEST_F()
854 static void SetFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in SetFieldFlags() argument
859 uint8_t base1 = static_cast<uint8_t>(mask & 0x7F); in SetFieldFlags()
861 mask >>= 7; in SetFieldFlags()
863 uint8_t base2 = static_cast<uint8_t>(mask & 0x7F); in SetFieldFlags()
865 mask >>= 7; in SetFieldFlags()
867 uint8_t base3 = static_cast<uint8_t>(mask & 0x7F); in SetFieldFlags()
878 static void ApplyMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in ApplyMaskToFieldFlags() argument
880 value &= mask; in ApplyMaskToFieldFlags()
885 static void OrMaskToFieldFlags(DexFile* dex_file, const char* field, uint32_t mask) { in OrMaskToFieldFlags() argument
887 value |= mask; in OrMaskToFieldFlags()
973 uint32_t mask = ApplyMaskShifted(kAccFlags, j); in TEST_F() local
974 OrMaskToFieldFlags(dex_file, kFields[i], mask); in TEST_F()
1178 uint32_t mask = ApplyMaskShifted(kInterfaceDisallowed, i); in TEST_F() local
1179 if ((mask & kAccProtected) != 0) { in TEST_F()
1180 mask &= ~kAccProtected; in TEST_F()
1183 OrMaskToFieldFlags(dex_file, "foo", mask); in TEST_F()
1193 uint32_t mask = ApplyMaskShifted(kInterfaceDisallowed, i); in TEST_F() local
1194 if ((mask & kAccProtected) != 0) { in TEST_F()
1195 mask &= ~kAccProtected; in TEST_F()
1198 OrMaskToFieldFlags(dex_file, "foo", mask); in TEST_F()