Home
last modified time | relevance | path

Searched refs:delegate (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/layoutlib/bridge/src/android/graphics/
DRenderNode_Delegate.java76 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nSetElevation() local
77 if (delegate != null && delegate.mLift != lift) { in nSetElevation()
78 delegate.mLift = lift; in nSetElevation()
86 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nGetElevation() local
87 if (delegate != null) { in nGetElevation()
88 return delegate.mLift; in nGetElevation()
95 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nSetTranslationX() local
96 if (delegate != null && delegate.mTranslationX != translationX) { in nSetTranslationX()
97 delegate.mTranslationX = translationX; in nSetTranslationX()
105 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nGetTranslationX() local
[all …]
DPaint_Delegate.java292 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nGetFlags() local
293 if (delegate == null) { in nGetFlags()
297 return delegate.mFlags; in nGetFlags()
305 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nSetFlags() local
306 if (delegate == null) { in nSetFlags()
310 delegate.mFlags = flags; in nSetFlags()
321 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nGetHinting() local
322 if (delegate == null) { in nGetHinting()
326 return delegate.mHintingMode; in nGetHinting()
332 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nSetHinting() local
[all …]
DBitmap_Delegate.java143 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() local
144 delegate.mIsMutable = createFlags.contains(BitmapCreateFlags.MUTABLE); in createBitmap()
146 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
176 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() local
177 delegate.mIsMutable = createFlags.contains(BitmapCreateFlags.MUTABLE); in createBitmap()
179 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
233 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate() local
234 delegate.mIsMutable = isMutable; in nativeCreate()
236 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCreate()
263 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCopy() local
[all …]
DTypeface_Delegate.java108 Typeface_Delegate delegate = sManager.getDelegate(native_instance); in nativeCreateFromTypeface() local
109 if (delegate == null) { in nativeCreateFromTypeface()
110 delegate = sManager.getDelegate(sDefaultTypeface); in nativeCreateFromTypeface()
112 if (delegate == null) { in nativeCreateFromTypeface()
117 new Typeface_Delegate(delegate.mFontFamilies, delegate.mFontFamilyBuilders, style, in nativeCreateFromTypeface()
118 delegate.mWeight)); in nativeCreateFromTypeface()
124 Typeface_Delegate delegate = sManager.getDelegate(native_instance); in nativeCreateFromTypefaceWithExactStyle() local
125 if (delegate == null) { in nativeCreateFromTypefaceWithExactStyle()
126 delegate = sManager.getDelegate(sDefaultTypeface); in nativeCreateFromTypefaceWithExactStyle()
128 if (delegate == null) { in nativeCreateFromTypefaceWithExactStyle()
[all …]
DNinePatch_Delegate.java155 NinePatch_Delegate delegate = sManager.getDelegate(nativeNinePatch); in nativeFinalize() local
156 if (delegate != null && delegate.chunk != null) { in nativeFinalize()
157 sChunkCache.remove(delegate.chunk); in nativeFinalize()
170 NinePatch_Delegate delegate = sManager.getDelegate(nativeNinePatch); in getChunk() local
171 if (delegate != null) { in getChunk()
172 return delegate.chunk; in getChunk()
DFontFamily_Delegate.java303 final FontFamily_Delegate delegate = getDelegate(thisFontFamily.mBuilderPtr); in addFont() local
304 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont()
312 FontFamily_Delegate delegate = new FontFamily_Delegate(); in nInitBuilder() local
315 delegate.mVariant = FontVariant.values()[variant]; in nInitBuilder()
317 delegate.init(); in nInitBuilder()
319 sPostInitDelegate.add(delegate); in nInitBuilder()
321 return sManager.addNewDelegate(delegate); in nInitBuilder()
361 final FontFamily_Delegate delegate = getDelegate(builderPtr);
363 if (delegate != null) {
365 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic));
[all …]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java78 IDelegate delegate = Mockito.mock(IDelegate.class); in testSetLanguage_delegation() local
79 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_delegation()
81 … Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
83 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
89 Mockito.verify(delegate, Mockito.atLeast(0)).onIsLanguageAvailable( in testSetLanguage_delegation()
91 Mockito.verify(delegate, Mockito.atLeast(0)).onLoadLanguage( in testSetLanguage_delegation()
96 IDelegate delegate = Mockito.mock(IDelegate.class); in testSetLanguage_availableLanguage() local
97 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_availableLanguage()
103 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
105 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
[all …]
DMockableCheckVoiceData.java31 MockableTextToSpeechService.IDelegate delegate = in onCreate() local
34 ArrayList<String> availableLangs = delegate.getAvailableVoices(); in onCreate()
35 ArrayList<String> unavailableLangs = delegate.getUnavailableVoices(); in onCreate()
/frameworks/base/location/lib/java/com/android/location/provider/
DLocationRequestUnbundled.java78 private final LocationRequest delegate; field in LocationRequestUnbundled
80 LocationRequestUnbundled(LocationRequest delegate) { in LocationRequestUnbundled() argument
81 this.delegate = delegate; in LocationRequestUnbundled()
90 return delegate.getInterval(); in getInterval()
103 return delegate.getFastestInterval(); in getFastestInterval()
112 return delegate.getQuality(); in getQuality()
121 return delegate.getSmallestDisplacement(); in getSmallestDisplacement()
130 return delegate.isLocationSettingsIgnored(); in isLocationSettingsIgnored()
135 return delegate.toString(); in toString()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDelegateManager.java142 Object delegate; in getDelegate() local
144 delegate = sDelegates.get(native_object); in getDelegate()
148 if (delegate == null) { in getDelegate()
154 assert delegate != null; in getDelegate()
156 return (T)delegate; in getDelegate()
190 T delegate = getDelegate(native_object); in removeJavaReferenceFor() local
197 if (!sJavaReferences.remove(delegate)) { in removeJavaReferenceFor()
202 … WeakReference<NativeAllocationHolder> holderRef = sNativeAllocationsReferences.get(delegate); in removeJavaReferenceFor()
225 T delegate = getDelegate(native_object); in markAsNativeAllocation() local
227 if (delegate == null) { in markAsNativeAllocation()
[all …]
/frameworks/base/core/java/android/content/
DLoggingContentInterface.java44 private final ContentInterface delegate; field in LoggingContentInterface
46 public LoggingContentInterface(String tag, ContentInterface delegate) { in LoggingContentInterface() argument
48 this.delegate = delegate; in LoggingContentInterface()
97 return l.setResult(delegate.query(uri, projection, queryArgs, cancellationSignal)); in query()
109 return l.setResult(delegate.getType(uri)); in getType()
122 return l.setResult(delegate.getStreamTypes(uri, mimeTypeFilter)); in getStreamTypes()
134 return l.setResult(delegate.canonicalize(uri)); in canonicalize()
146 return l.setResult(delegate.uncanonicalize(uri)); in uncanonicalize()
159 return l.setResult(delegate.refresh(uri, args, cancellationSignal)); in refresh()
172 return l.setResult(delegate.insert(uri, initialValues)); in insert()
[all …]
/frameworks/opt/setupwizard/library/gingerbread/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelper.java72 private final AccessibilityDelegateCompat delegate; field in LinkAccessibilityHelper
84 LinkAccessibilityHelper(@NonNull AccessibilityDelegateCompat delegate) { in LinkAccessibilityHelper() argument
85 this.delegate = delegate; in LinkAccessibilityHelper()
90 delegate.sendAccessibilityEvent(host, eventType); in sendAccessibilityEvent()
95 delegate.sendAccessibilityEventUnchecked(host, event); in sendAccessibilityEventUnchecked()
100 return delegate.dispatchPopulateAccessibilityEvent(host, event); in dispatchPopulateAccessibilityEvent()
105 delegate.onPopulateAccessibilityEvent(host, event); in onPopulateAccessibilityEvent()
110 delegate.onInitializeAccessibilityEvent(host, event); in onInitializeAccessibilityEvent()
115 delegate.onInitializeAccessibilityNodeInfo(host, info); in onInitializeAccessibilityNodeInfo()
121 return delegate.onRequestSendAccessibilityEvent(host, child, event); in onRequestSendAccessibilityEvent()
[all …]
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
DRemoteResolverAdapter.java30 private RemoteResolverAdapter(Resolver delegate) { in RemoteResolverAdapter() argument
31 mDelegate = delegate; in RemoteResolverAdapter()
34 public static RemoteNamespaceResolver create(@NotNull ResourceNamespace.Resolver delegate) in create() argument
36 assert !(delegate instanceof RemoteResolverAdapter); in create()
39 new RemoteResolverAdapter(delegate), 0); in create()
/frameworks/base/core/java/android/timezone/
DTimeZoneFinder.java54 private TimeZoneFinder(@NonNull com.android.i18n.timezone.TimeZoneFinder delegate) { in TimeZoneFinder() argument
55 mDelegate = Objects.requireNonNull(delegate); in TimeZoneFinder()
74 com.android.i18n.timezone.CountryTimeZones delegate = mDelegate in lookupCountryTimeZones() local
76 return delegate == null ? null : new CountryTimeZones(delegate); in lookupCountryTimeZones()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DRequireScrollMixin.java76 private ScrollHandlingDelegate delegate; field in RequireScrollMixin
88 public void setScrollHandlingDelegate(@NonNull ScrollHandlingDelegate delegate) { in setScrollHandlingDelegate() argument
89 this.delegate = delegate; in setScrollHandlingDelegate()
123 delegate.pageScrollDown(); in createOnClickListener()
202 delegate.startListening();
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
DScrollViewScrollHandlingDelegateTest.java40 private ScrollViewScrollHandlingDelegate delegate; field in ScrollViewScrollHandlingDelegateTest
49 delegate = new ScrollViewScrollHandlingDelegate(requireScrollMixin, scrollView); in setUp()
57 delegate.startListening(); in testRequireScroll()
65 delegate.startListening(); in testScrolledToBottom()
77 delegate.pageScrollDown(); in testPageScrollDown()
DListViewScrollHandlingDelegateTest.java44 private ListViewScrollHandlingDelegate delegate; field in ListViewScrollHandlingDelegateTest
51 delegate = new ListViewScrollHandlingDelegate(requireScrollMixin, listView); in setUp()
58 delegate.startListening(); in testRequireScroll()
65 delegate.startListening(); in testScrolledToBottom()
76 delegate.pageScrollDown(); in testPageScrollDown()
DRequireScrollMixinTest.java50 @Mock private ScrollHandlingDelegate delegate; field in RequireScrollMixinTest
60 requireScrollMixin.setScrollHandlingDelegate(delegate); in setUp()
67 verify(delegate).startListening(); in testRequireScroll()
111 verify(delegate).pageScrollDown(); in testCreateOnClickListener()
133 verify(delegate).pageScrollDown(); in testRequireScrollWithNavigationBar()
160 verify(delegate).pageScrollDown(); in testRequireScrollWithButton()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteILayoutPullParserAdapter.java29 private RemoteILayoutPullParserAdapter(@NotNull ILayoutPullParser delegate) { in RemoteILayoutPullParserAdapter() argument
30 super(delegate); in RemoteILayoutPullParserAdapter()
33 public static RemoteILayoutPullParser create(@NotNull ILayoutPullParser delegate) in create() argument
36 new RemoteILayoutPullParserAdapter(delegate), 0); in create()
DRemoteActionBarCallbackAdapter.java32 private RemoteActionBarCallbackAdapter(@NotNull ActionBarCallback delegate) { in RemoteActionBarCallbackAdapter() argument
33 mDelegate = delegate; in RemoteActionBarCallbackAdapter()
36 public static RemoteActionBarCallback create(@NotNull ActionBarCallback delegate) in create() argument
39 new RemoteActionBarCallbackAdapter(delegate), 0); in create()
DRemoteAssetRepositoryAdapter.java32 private RemoteAssetRepositoryAdapter(@NotNull AssetRepository delegate) { in RemoteAssetRepositoryAdapter() argument
33 mDelegate = delegate; in RemoteAssetRepositoryAdapter()
36 static RemoteAssetRepository create(@NotNull AssetRepository delegate) throws RemoteException { in create() argument
38 new RemoteAssetRepositoryAdapter(delegate), 0); in create()
/frameworks/base/media/java/android/media/projection/
DMediaProjectionManager.java141 CallbackDelegate delegate = new CallbackDelegate(callback, handler); in addCallback() local
142 mCallbacks.put(callback, delegate); in addCallback()
144 mService.addCallback(delegate); in addCallback()
158 CallbackDelegate delegate = mCallbacks.remove(callback); in removeCallback() local
160 if (delegate != null) { in removeCallback()
161 mService.removeCallback(delegate); in removeCallback()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteRenderSessionAdapter.java32 private RemoteRenderSessionAdapter(@NotNull RenderSession delegate) { in RemoteRenderSessionAdapter() argument
33 mDelegate = delegate; in RemoteRenderSessionAdapter()
36 public static RemoteRenderSession create(@NotNull RenderSession delegate) in create() argument
39 new RemoteRenderSessionAdapter(delegate), 0); in create()
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java259 AccessibilityDelegateCompat delegate = mock(AccessibilityDelegateCompat.class); in testMethodDelegation() local
260 LinkAccessibilityHelper helper = new LinkAccessibilityHelper(delegate); in testMethodDelegation()
266 verify(delegate) in testMethodDelegation()
270 verify(delegate).sendAccessibilityEventUnchecked(same(mTextView), same(accessibilityEvent)); in testMethodDelegation()
274 verify(delegate) in testMethodDelegation()
279 verify(delegate).dispatchPopulateAccessibilityEvent(same(mTextView), same(accessibilityEvent)); in testMethodDelegation()
282 verify(delegate).getAccessibilityNodeProvider(same(mTextView)); in testMethodDelegation()
285 verify(delegate).onInitializeAccessibilityEvent(same(mTextView), eq(accessibilityEvent)); in testMethodDelegation()
289 verify(delegate) in testMethodDelegation()
293 verify(delegate).onPopulateAccessibilityEvent(same(mTextView), same(accessibilityEvent)); in testMethodDelegation()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DOptionalClassRunner.java56 Runner delegate; in OptionalClassRunner() local
60 delegate = new JUnit4(testClass); in OptionalClassRunner()
64 delegate = new ClassNotFoundRunner(testClass, className); in OptionalClassRunner()
67 this.mDelegate = delegate; in OptionalClassRunner()

12345