lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/NonSupportActivity.java
public boolean awaitResumedState() throws InterruptedException {
        mLock.lock();
        try {
            while (!mIsResumed) {
                if (!mIsResumedCondition.await(TIMEOUT, TimeUnit.SECONDS)) {
                    return false;
                }
            }
            return true;
        } finally {
            mLock.unlock();
        }
    }
/**
     *  awaits resumed state
     * @return
     * @throws InterruptedException
     */
awaits resumed state
@return
@throws InterruptedException
awaits resumed state @return @throws InterruptedException
public boolean awaitResumedState() throws InterruptedException {
        mLock.lock();
        try {
            while (!mIsResumed) {
                if (!mIsResumedCondition.await(TIMEOUT, TimeUnit.SECONDS)) {
                    return false;
                }
            }
            return true;
        } finally {
            mLock.unlock();
        }
    }
public boolean awaitResumedState ( ) throws InterruptedException { mLock . lock ( ) ; try { while ( ! mIsResumed ) { if ( ! mIsResumedCondition . await ( TIMEOUT , TimeUnit . SECONDS ) ) { return false ; } } return true ; } finally { mLock . unlock ( ) ; } }
awaits resumed state
 @return
 @throws InterruptedException
awaits resumed state @return @throws InterruptedException