Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa45143b authored by Eduard Dumitrescul's avatar Eduard Dumitrescul
Browse files

Implement method isPolicyApplied is FlagUnion

The isPolicyApplied method checks whether all the set bits int the given
policy value are also set in the resolved value.

Bug: 285532044

Test: atest com.android.server.devicePolicy.ResolutionMechanismTest#isPolicyApplied_flagUnion_flagSet_returnTrue
Test: atest com.android.server.devicePolicy.ResolutionMechanismTest#isPolicyApplied_flagUnion_flagNotSet_returnFalse
Test: atest com.android.server.devicePolicy.ResolutionMechanismTest#isPolicyApplied_flagUnion_someFlagsNotSet_returnFalse

Flag: TEST_ONLY

Change-Id: Id914a3f91be0e255550fb9b4a34092e8e15df127
parent 86531699
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment