/frameworks/support/lifecycle/runtime/src/test/java/androidx/lifecycle/ |
D | LifecycleRegistryTest.java | 47 private LifecycleRegistry mRegistry; field in LifecycleRegistryTest 54 mRegistry = new LifecycleRegistry(mLifecycleOwner); in init() 60 mRegistry.addObserver(observer); in addRemove() 61 assertThat(mRegistry.getObserverCount(), is(1)); in addRemove() 62 mRegistry.removeObserver(observer); in addRemove() 63 assertThat(mRegistry.getObserverCount(), is(0)); in addRemove() 69 mRegistry.addObserver(generic); in addGenericAndObserve() 80 mRegistry.addObserver(testObserver); in addRegularClass() 92 mRegistry.addObserver(observer1); in add2RemoveOne() 93 mRegistry.addObserver(observer2); in add2RemoveOne() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DefaultPhoneNotifier.java | 42 protected ITelephonyRegistry mRegistry; field in DefaultPhoneNotifier 45 mRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService( in DefaultPhoneNotifier() 59 if (mRegistry != null) { in notifyPhoneState() 60 mRegistry.notifyCallStateForPhoneId(phoneId, subId, in notifyPhoneState() 75 Rlog.d(LOG_TAG, "nofityServiceState: mRegistry=" + mRegistry + " ss=" + ss in notifyServiceState() 82 if (mRegistry != null) { in notifyServiceState() 83 mRegistry.notifyServiceStateForPhoneId(phoneId, subId, ss); in notifyServiceState() 96 Rlog.d(LOG_TAG, "notifySignalStrength: mRegistry=" + mRegistry in notifySignalStrength() 100 if (mRegistry != null) { in notifySignalStrength() 101 mRegistry.notifySignalStrengthForPhoneId(phoneId, subId, in notifySignalStrength() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | PendingRemoteAnimationRegistryTest.java | 52 private PendingRemoteAnimationRegistry mRegistry; field in PendingRemoteAnimationRegistryTest 65 mRegistry = new PendingRemoteAnimationRegistry(mService, mHandler); in setUp() 70 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testOverrideActivityOptions() 72 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideActivityOptions() 78 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testOverrideActivityOptions_null() 79 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testOverrideActivityOptions_null() 86 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout() 89 assertNull(mRegistry.overrideOptionsIfNeeded("com.android.test", null)); in testTimeout() 94 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout_overridenEntry() 97 mRegistry.addPendingAnimation("com.android.test", mAdapter); in testTimeout_overridenEntry() [all …]
|
/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/ |
D | MediatorLiveDataTest.java | 47 private LifecycleRegistry mRegistry; field in MediatorLiveDataTest 55 mRegistry = new LifecycleRegistry(mOwner); in setup() 56 when(mOwner.getLifecycle()).thenReturn(mRegistry); in setup() 71 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_CREATE); in setup() 72 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in setup() 86 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testSingleDelivery() 98 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testChangeWhileInactive() 101 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in testChangeWhileInactive() 117 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testAddSourceToInActive() 121 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in testAddSourceToInActive() [all …]
|
/frameworks/support/lifecycle/service/src/main/java/androidx/lifecycle/ |
D | ServiceLifecycleDispatcher.java | 31 private final LifecycleRegistry mRegistry; field in ServiceLifecycleDispatcher 39 mRegistry = new LifecycleRegistry(provider); in ServiceLifecycleDispatcher() 47 mLastDispatchRunnable = new DispatchRunnable(mRegistry, event); in postDispatchRunnable() 88 return mRegistry; in getLifecycle() 92 private final LifecycleRegistry mRegistry; field in ServiceLifecycleDispatcher.DispatchRunnable 97 mRegistry = registry; in DispatchRunnable() 104 mRegistry.handleLifecycleEvent(mEvent); in run()
|
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/ |
D | LiveDataTest.java | 65 private LifecycleRegistry mRegistry; field in LiveDataTest 88 mRegistry = new LifecycleRegistry(mOwner); in init() 89 when(mOwner.getLifecycle()).thenReturn(mRegistry); in init() 140 mRegistry.handleLifecycleEvent(ON_START); in testActiveObserverToggle() 145 mRegistry.handleLifecycleEvent(ON_STOP); in testActiveObserverToggle() 151 mRegistry.handleLifecycleEvent(ON_START); in testActiveObserverToggle() 182 mRegistry.handleLifecycleEvent(ON_START); in testAdd2ObserversWithSameOwnerAndRemove() 191 assertThat(mRegistry.getObserverCount(), is(0)); in testAdd2ObserversWithSameOwnerAndRemove() 215 mRegistry.handleLifecycleEvent(ON_START); in testRemoveDestroyedObserver() 222 mRegistry.handleLifecycleEvent(ON_DESTROY); in testRemoveDestroyedObserver() [all …]
|
D | ThreadedLiveDataTest.java | 49 private LifecycleRegistry mRegistry; field in ThreadedLiveDataTest 55 mRegistry = new LifecycleRegistry(mLifecycleOwner); in init() 56 when(mLifecycleOwner.getLifecycle()).thenReturn(mRegistry); in init() 77 mRegistry.handleLifecycleEvent(ON_START); in testPostValue()
|
/frameworks/support/lifecycle/process/src/main/java/androidx/lifecycle/ |
D | ProcessLifecycleOwner.java | 62 private final LifecycleRegistry mRegistry = new LifecycleRegistry(this); field in ProcessLifecycleOwner 108 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in activityStarted() 117 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in activityResumed() 140 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_PAUSE); in dispatchPauseIfNeeded() 146 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in dispatchStopIfNeeded() 156 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_CREATE); in attach() 179 return mRegistry; in getLifecycle()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | BenchmarkListAdapter.java | 37 private final BenchmarkRegistry mRegistry; field in BenchmarkListAdapter 42 mRegistry = registry; in BenchmarkListAdapter() 47 return mRegistry.getGroupCount(); in getGroupCount() 52 return mRegistry.getBenchmarkCount(groupPosition); in getChildrenCount() 57 return mRegistry.getBenchmarkGroup(groupPosition); in getGroup() 62 BenchmarkGroup benchmarkGroup = mRegistry.getBenchmarkGroup(groupPosition); in getChild()
|
D | HomeActivity.java | 45 private BenchmarkRegistry mRegistry; field in HomeActivity 60 mRegistry = new BenchmarkRegistry(this); in onCreate() 66 new BenchmarkListAdapter(LayoutInflater.from(this), mRegistry); in onCreate() 129 final int groupCount = mRegistry.getGroupCount(); in onClick() 132 Intent intent = mRegistry.getBenchmarkGroup(i).getIntent(); in onClick()
|
/frameworks/support/loader/src/androidTest/java/androidx/loader/app/ |
D | LoaderInfoTest.java | 49 private LifecycleRegistry mRegistry; field in LoaderInfoTest 54 mRegistry = new LifecycleRegistry(mOwner); in setup() 55 when(mOwner.getLifecycle()).thenReturn(mRegistry); in setup() 56 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_CREATE); in setup() 57 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in setup() 148 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testMarkForRedelivery() 154 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in testMarkForRedelivery() 171 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testMarkForRedelivery_replace() 182 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START); in testMarkForRedelivery_replace()
|
/frameworks/support/lifecycle/runtime/src/test/java/ |
D | NoPackageTest.java | 37 private LifecycleRegistry mRegistry; field in NoPackageTest 44 mRegistry = new LifecycleRegistry(mLifecycleOwner); in init() 50 mRegistry.addObserver(observer); in testNoPackage() 51 mRegistry.handleLifecycleEvent(ON_CREATE); in testNoPackage()
|
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/ |
D | ServerMain.java | 50 private final Registry mRegistry; field in ServerMain 54 mRegistry = registry; in ServerMain() 63 UnicastRemoteObject.unexportObject(mRegistry, true); in stop()
|
/frameworks/support/lifecycle/reactivestreams/src/test/java/androidx/lifecycle/ |
D | LiveDataReactiveStreamsTest.java | 68 LifecycleRegistry mRegistry = new LifecycleRegistry(this); in init() 70 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_RESUME); in init() 75 return mRegistry; in init()
|