Constraint { static int compact(@JobConstraint int[] constraints) { int result = 0; if (constraints == null) { return result; } for (int c : constraints) { result |= c; } return result; } private  Constraint();  static final int ON_UNMETERED_NETWORK; static final int ON_ANY_NETWORK; static final int DEVICE_CHARGING; static final int DEVICE_IDLE; }
@Test public void compactNull() { assertEquals(0, Constraint.compact(null)); }