Home
last modified time | relevance | path

Searched refs:mRegistry (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/
DFingerprintServiceRegistryTest.java79 private FingerprintServiceRegistry mRegistry; field in FingerprintServiceRegistryTest
96 mRegistry = new FingerprintServiceRegistry(mFingerprintService, () -> mBiometricService); in setup()
101 mRegistry.registerAllInBackground(() -> List.of(mProvider1, mProvider2)); in registersAllProviders()
103 assertThat(mRegistry.getProviders()).containsExactly(mProvider1, mProvider2); in registersAllProviders()
104 assertThat(mRegistry.getAllProperties()).containsExactly(mProvider1Props, mProvider2Props); in registersAllProviders()
114 mRegistry.registerAllInBackground(() -> List.of(mProvider1, mProvider2)); in getsProviderById()
116 assertThat(mRegistry.getProviderForSensor(SENSOR_ID_1)).isSameInstanceAs(mProvider1); in getsProviderById()
117 assertThat(mRegistry.getProviderForSensor(SENSOR_ID_2)).isSameInstanceAs(mProvider2); in getsProviderById()
118 assertThat(mRegistry.getProviderForSensor(500)).isNull(); in getsProviderById()
123 mRegistry.registerAllInBackground(() -> List.of(mProvider1)); in getsSingleProvider()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/
DFaceServiceRegistryTest.java79 private FaceServiceRegistry mRegistry; field in FaceServiceRegistryTest
100 mRegistry = new FaceServiceRegistry(mFaceService, () -> mBiometricService); in setup()
105 mRegistry.registerAllInBackground(() -> List.of(mProvider1, mProvider2)); in registersAllProviders()
107 assertThat(mRegistry.getProviders()).containsExactly(mProvider1, mProvider2); in registersAllProviders()
108 assertThat(mRegistry.getAllProperties()).containsExactly(mProvider1Props, mProvider2Props); in registersAllProviders()
118 mRegistry.registerAllInBackground(() -> List.of(mProvider1, mProvider2)); in getsProviderById()
120 assertThat(mRegistry.getProviderForSensor(SENSOR_ID_1)).isSameInstanceAs(mProvider1); in getsProviderById()
121 assertThat(mRegistry.getProviderForSensor(SENSOR_ID_2)).isSameInstanceAs(mProvider2); in getsProviderById()
122 assertThat(mRegistry.getProviderForSensor(500)).isNull(); in getsProviderById()
127 mRegistry.registerAllInBackground(() -> List.of(mProvider1)); in getsSingleProvider()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPendingRemoteAnimationRegistryTest.java50 private PendingRemoteAnimationRegistry mRegistry; field in PendingRemoteAnimationRegistryTest
60 mRegistry = new PendingRemoteAnimationRegistry(new WindowManagerGlobalLock(), mHandler); in setUp()
70 mRegistry.addPendingAnimation("com.android.test", mAdapter, null /* launchCookie */); in testOverrideActivityOptions()
72 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideActivityOptions()
78 mRegistry.addPendingAnimation("com.android.test", mAdapter, null /* launchCookie */); in testOverrideActivityOptions_null()
79 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testOverrideActivityOptions_null()
86 mRegistry.addPendingAnimation("com.android.test", mAdapter, mLaunchCookie); in testOverrideLaunchCookie()
88 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideLaunchCookie()
95 mRegistry.addPendingAnimation("com.android.test", mAdapter, null /* launchCookie */); in testTimeout()
98 assertNull(mRegistry.overrideOptionsIfNeeded("com.android.test", null)); in testTimeout()
[all …]
DActivityInterceptorCallbackRegistryTest.java46 private ActivityInterceptorCallbackRegistry mRegistry; field in ActivityInterceptorCallbackRegistryTest
50 mRegistry = spy(ActivityInterceptorCallbackRegistry.getInstance()); in setUp()
51 Mockito.doReturn(Process.SYSTEM_UID).when(mRegistry).getCallingUid(); in setUp()
70 () -> mRegistry.registerActivityInterceptorCallback(MAINLINE_LAST_ORDERED_ID + 1, in registerActivityInterceptorCallbackFailIfIdNotInRange()
76 () -> mRegistry.registerActivityInterceptorCallback(MAINLINE_FIRST_ORDERED_ID - 1, in registerActivityInterceptorCallbackFailIfIdNotInRange()
85 () -> mRegistry.registerActivityInterceptorCallback(MAINLINE_FIRST_ORDERED_ID, in registerActivityInterceptorCallbackFailIfCallbackIsNull()
94 mRegistry.registerActivityInterceptorCallback(orderId, in registerActivityInterceptorCallbackSuccessfully()
115 () -> mRegistry.unregisterActivityInterceptorCallback( in unRegisterActivityInterceptorCallbackFailIfIdNotInRange()
123 () -> mRegistry.unregisterActivityInterceptorCallback(MAINLINE_FIRST_ORDERED_ID) in unregisterActivityInterceptorCallbackFailIfNotRegistered()
131 mRegistry.registerActivityInterceptorCallback(orderId, in unregisterActivityInterceptorCallbackSuccessfully()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/
DFaceService.java98 private final FaceServiceRegistry mRegistry; field in FaceService
125 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId); in createTestSession()
141 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId); in dumpSensorServiceStateProto()
155 return mRegistry.getAllProperties(); in getSensorPropertiesInternal()
164 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId); in getSensorProperties()
180 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId); in generateChallenge()
195 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId); in revokeChallenge()
212 final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider(); in enroll()
228 final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider(); in scheduleWatchdog()
253 final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider(); in cancelEnrollment()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintService.java136 private final FingerprintServiceRegistry mRegistry; field in FingerprintService
152 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId);
168 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId);
183 return mRegistry.getAllProperties();
192 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId);
207 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId);
222 final ServiceProvider provider = mRegistry.getProviderForSensor(sensorId);
240 final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider();
255 final Pair<Integer, ServiceProvider> provider = mRegistry.getSingleProvider();
314 provider = mRegistry.getSingleProvider();
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DBenchmarkListAdapter.java37 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()
DHomeActivity.java47 private BenchmarkRegistry mRegistry; field in HomeActivity
62 mRegistry = new BenchmarkRegistry(this); in onCreate()
68 new BenchmarkListAdapter(LayoutInflater.from(this), mRegistry); in onCreate()
131 final int groupCount = mRegistry.getGroupCount(); in onClick()
134 Intent intent = mRegistry.getBenchmarkGroup(i).getIntent(); in onClick()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerStatsTest.java53 private PowerStats.DescriptorRegistry mRegistry; field in PowerStatsTest
58 mRegistry = new PowerStats.DescriptorRegistry(); in setup()
68 mRegistry.register(mDescriptor); in setup()
99 mRegistry.register(newDescriptor); in parceling_compatibleParcel()
101 PowerStats newStats = PowerStats.readFromParcel(newParcel, mRegistry); in parceling_compatibleParcel()
153 PowerStats newStats = PowerStats.readFromParcel(newParcel, mRegistry); in parceling_unrecognizedPowerComponent()
171 PowerStats newStats = PowerStats.readFromParcel(newParcel, mRegistry); in parceling_wrongArrayLength()
188 PowerStats newStats = PowerStats.readFromParcel(newParcel, mRegistry); in parceling_corruptParcel()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java292 private final PermissionRegistry mRegistry = new PermissionRegistry(); field in PermissionManagerServiceImpl
466 Permission bp = mRegistry.getPermission(perm.name); in PermissionManagerServiceImpl()
469 mRegistry.addPermission(bp); in PermissionManagerServiceImpl()
507 final ArraySet<String> packageNames = mRegistry.getAppOpPermissionPackages( in getAppOpPermissionPackagesInternal()
527 for (ParsedPermissionGroup pg : mRegistry.getPermissionGroups()) { in getAllPermissionGroups()
549 final ParsedPermissionGroup permissionGroup = mRegistry.getPermissionGroup(groupName); in getPermissionGroupInfo()
580 final Permission bp = mRegistry.getPermission(permName); in getPermissionInfo()
621 permissionGroup = mRegistry.getPermissionGroup(groupName); in queryPermissionsByGroup()
625 for (Permission bp : mRegistry.getPermissions()) { in queryPermissionsByGroup()
655 final Permission tree = mRegistry.enforcePermissionTree(info.name, callingUid); in addPermission()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java204 private final @Nullable CommandRegistry mRegistry; field in CommandQueue
575 mRegistry = registry; in CommandQueue()
1311 if (mRegistry == null) { in passThroughShellCommand()
1316 mRegistry.onShellCommand(pw, args); in passThroughShellCommand()