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