synchronized (ParentalControlTest.class) {
ParentalControl.getParentalControlState(new Callback(), null);
try {
long start = SystemClock.uptimeMillis();
ParentalControlTest.class.wait(20 * 1000);
long end = SystemClock.uptimeMillis();
Log.d("AndroidTests", "ParentalControlTest callback took " + (end-start) + " ms.");
} catch (InterruptedException ex) {
}
}
Assert.assertTrue(mOnResultCalled);