Home
last modified time | relevance | path

Searched refs:registry (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCallbackRegistryTest.java37 CallbackRegistry<Integer, CallbackRegistryTest, Integer> registry; field in CallbackRegistryTest
64 registry = new CallbackRegistry<Integer, CallbackRegistryTest, Integer>(notifier); in testAddListener()
67 assertNotNull(registry.copyListeners()); in testAddListener()
68 assertEquals(0, registry.copyListeners().size()); in testAddListener()
70 registry.add(callback); in testAddListener()
71 ArrayList<Integer> callbacks = registry.copyListeners(); in testAddListener()
75 registry.add(callback); in testAddListener()
76 callbacks = registry.copyListeners(); in testAddListener()
81 registry.add(otherListener); in testAddListener()
82 callbacks = registry.copyListeners(); in testAddListener()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DSurfaceControlRegistryTests.java121 SurfaceControlRegistry registry = SurfaceControlRegistry.getProcessInstance(); in testThresholds() local
123 registry.setReportingThresholds(4 /* max */, 2 /* reset */, reporter); in testThresholds()
154 SurfaceControlRegistry registry = SurfaceControlRegistry.getProcessInstance(); in testCallStackDebugging_matchesFilters() local
157 registry.setCallStackDebuggingParams("com.android.app1", ""); in testCallStackDebugging_matchesFilters()
158 assertFalse(registry.matchesForCallStackDebugging("com.android.noMatchApp", "setAlpha")); in testCallStackDebugging_matchesFilters()
159 assertTrue(registry.matchesForCallStackDebugging("com.android.app1", "setAlpha")); in testCallStackDebugging_matchesFilters()
162 registry.setCallStackDebuggingParams("", "setAlpha"); in testCallStackDebugging_matchesFilters()
163 assertFalse(registry.matchesForCallStackDebugging("com.android.app1", "setLayer")); in testCallStackDebugging_matchesFilters()
164 assertTrue(registry.matchesForCallStackDebugging("com.android.app1", "setAlpha")); in testCallStackDebugging_matchesFilters()
165 assertTrue(registry.matchesForCallStackDebugging("com.android.app2", "setAlpha")); in testCallStackDebugging_matchesFilters()
[all …]
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_xml_test.go26 registry, err := Unmarshal([]byte(`
28 <registry>
33 </registry>`))
38 if registry.Types[0].Name != "int" {
41 if registry.Types[1].Name != "type_name" {
49 <registry>
53 </registry>`))
64 registry, err := Unmarshal([]byte(`
66 <registry>
73 </registry>`))
[all …]
Dvulkan_xml.go34 type registry struct { struct
432 func Unmarshal(data []byte) (*registry, error) {
433 var registry registry
434 err := xml.Unmarshal(data, &registry)
438 for i := range registry.Types {
439 typе := &registry.Types[i]
480 for i := range registry.Commands {
481 command := &registry.Commands[i]
524 return &registry, nil
527 func VulkanTypesfromXML(registry *registry) (sorted_type_names []string, types map[string]cpp_types… argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DCommandRegistryTest.kt48 lateinit var registry: CommandRegistry in safeEq() variable in com.android.systemui.statusbar.commandline.CommandRegistryTest
59 registry = CommandRegistry(context, inLineExecutor) in safeEq()
64 registry.registerCommand(COMMAND) { FakeCommand() } in safeEq()
66 registry.registerCommand(COMMAND) { FakeCommand() } in safeEq()
72 registry.registerCommand(COMMAND) { fakeCommand } in safeEq()
73 registry.onShellCommand(writer, arrayOf(COMMAND)) in safeEq()
80 registry.registerCommand(COMMAND) { fakeCommand } in safeEq()
81 registry.onShellCommand(writer, arrayOf(COMMAND, "arg1", "arg2", "arg3")) in safeEq()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
DClockRegistryTest.kt76 private lateinit var registry: ClockRegistry variable in com.android.systemui.shared.clocks.ClockRegistryTest
157 registry = object : ClockRegistry( in setUp()
175 registry.registerListeners() in setUp()
196 val list = registry.getClocks() in pluginRegistration_CorrectState()
211 val clock = registry.createCurrentClock() in noPlugins_createDefaultClock()
229 val list = registry.getClocks() in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
239 assertEquals(registry.createExampleClock("clock_1"), mockClock) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
240 assertEquals(registry.createExampleClock("clock_2"), mockClock) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
241 assertEquals(registry.getClockThumbnail("clock_1"), mockThumbnail) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
242 assertEquals(registry.getClockThumbnail("clock_2"), mockThumbnail) in clockIdConflict_ErrorWithoutCrash_unloadDuplicate()
[all …]
/frameworks/native/opengl/tools/glgen2/
Dglgen.py225 registry = reg.Registry() variable
226 registry.loadFile('registry/gl.xml')
228 registry.setGenerator(TrampolineGen())
251 registry.apiGen(opts)
255 registry.setGenerator(apigen)
269 registry.apiGen(opts)
275 registry.setGenerator(apigen)
297 registry.apiGen(opts)
304 registry.setGenerator(SpecGenerator())
D.gitignore1 registry/reg.pyc
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAnimatingActivityRegistryTest.java68 final AnimatingActivityRegistry registry = in testDeferring() local
80 assertTrue(registry.notifyAboutToFinish(activity1, mMockEndDeferFinishCallback1)); in testDeferring()
81 assertFalse(registry.notifyAboutToFinish(activity2, mMockEndDeferFinishCallback2)); in testDeferring()
91 final AnimatingActivityRegistry registry = in testContainerRemoved() local
103 registry.notifyAboutToFinish(window1, mMockEndDeferFinishCallback1); in testContainerRemoved()
DActivityInterceptorCallbackRegistryTest.java57 ActivityInterceptorCallbackRegistry registry = spy( in registerActivityInterceptorCallbackFailIfNotSystemId() local
61 () -> registry.registerActivityInterceptorCallback(MAINLINE_LAST_ORDERED_ID + 1, in registerActivityInterceptorCallbackFailIfNotSystemId()
103 ActivityInterceptorCallbackRegistry registry = spy( in unregisterActivityInterceptorCallbackFailIfNotSystemId() local
107 () -> registry.unregisterActivityInterceptorCallback(MAINLINE_LAST_ORDERED_ID + 1) in unregisterActivityInterceptorCallbackFailIfNotSystemId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
DRepeatWhenAttached.kt166 private val registry = LifecycleRegistry(this) constant
169 registry.currentState = Lifecycle.State.CREATED in onCreate()
178 registry.currentState = Lifecycle.State.DESTROYED in onDestroy()
183 return registry
187 registry.currentState = in updateState()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DBenchmarkListAdapter.java27 import com.android.benchmark.registry.BenchmarkGroup;
28 import com.android.benchmark.registry.BenchmarkRegistry;
40 BenchmarkRegistry registry) { in BenchmarkListAdapter() argument
42 mRegistry = registry; in BenchmarkListAdapter()
DUiResultsFragment.java29 import com.android.benchmark.registry.BenchmarkGroup;
30 import com.android.benchmark.registry.BenchmarkRegistry;
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayLifecycleOwner.kt29 val registry: LifecycleRegistry = LifecycleRegistry(this) constant in com.android.systemui.dreams.DreamOverlayLifecycleOwner
33 return registry
/frameworks/base/packages/SystemUI/src/com/android/keyguard/dagger/
DClockRegistryModule.java59 ClockRegistry registry = new ClockRegistry( in getClockRegistry() local
79 registry.registerListeners(); in getClockRegistry()
80 return registry; in getClockRegistry()
/frameworks/base/core/java/android/window/
DWindowInfosListener.java36 NativeAllocationRegistry registry = NativeAllocationRegistry.createMalloced( in WindowInfosListener() local
40 registry.registerNativeAllocation(this, mNativeListener); in WindowInfosListener()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/registry/
DBenchmarkCategory.java17 package com.android.benchmark.registry;
DBenchmarkGroup.java17 package com.android.benchmark.registry;
/frameworks/native/vulkan/vkprofiles/
DREADME.md13 …ipts/gen_profiles_solution.py --debug --registry ~/<PATH_TO_YOUR_ANDROID_REPO>/external/vulkan-he…
/frameworks/native/vulkan/scripts/
Dgenerator_common.py350 registry = os.path.join(os.path.dirname(__file__), '..', '..', '..', '..',
352 tree = element_tree.parse(registry)
/frameworks/base/core/java/android/hardware/
DHardwareBuffer.java289 NativeAllocationRegistry registry = new NativeAllocationRegistry( in HardwareBuffer() local
291 mCleaner = registry.registerNativeAllocation(this, mNativeObject); in HardwareBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/dagger/
DCentralSurfacesDependenciesModule.java145 CommandRegistry registry, in provideCommandQueue() argument
149 return new CommandQueue(context, displayTracker, registry, dumpHandler, powerInteractor); in provideCommandQueue()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DTextScrollActivity.java25 import com.android.benchmark.registry.BenchmarkRegistry;
/frameworks/native/vulkan/
DREADME.md17 …er and tools directly from the Vulkan Registry (external/vulkan-headers/registry/vk.xml). Code gen…
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorController.java453 NativeAllocationRegistry registry = in init() local
456 registry.registerNativeAllocation(this, mNativePtr); in init()

12