Home
last modified time | relevance | path

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

123

/frameworks/layoutlib/bridge/src/android/view/
DRenderNode_Delegate.java78 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nSetElevation() local
79 if (delegate != null && delegate.mLift != lift) { in nSetElevation()
80 delegate.mLift = lift; in nSetElevation()
88 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nGetElevation() local
89 if (delegate != null) { in nGetElevation()
90 return delegate.mLift; in nGetElevation()
97 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nSetTranslationX() local
98 if (delegate != null && delegate.mTranslationX != translationX) { in nSetTranslationX()
99 delegate.mTranslationX = translationX; in nSetTranslationX()
107 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); in nGetTranslationX() local
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java255 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nGetFlags() local
256 if (delegate == null) { in nGetFlags()
260 return delegate.mFlags; in nGetFlags()
268 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nSetFlags() local
269 if (delegate == null) { in nSetFlags()
273 delegate.mFlags = flags; in nSetFlags()
284 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nGetHinting() local
285 if (delegate == null) { in nGetHinting()
289 return delegate.mHintingMode; in nGetHinting()
295 Paint_Delegate delegate = sManager.getDelegate(nativePaint); in nSetHinting() local
[all …]
DBitmap_Delegate.java141 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() local
143 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
174 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap() local
176 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
206 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() local
208 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
263 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate() local
265 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCreate()
292 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCopy() local
294 return createBitmap(delegate, getPremultipliedBitmapCreateFlags(isMutable), in nativeCopy()
[all …]
DTypeface_Delegate.java156 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
157 if (delegate == null) {
158 delegate = sManager.getDelegate(sDefaultTypeface);
160 if (delegate == null) {
164 return sManager.addNewDelegate(new Typeface_Delegate(delegate.mFontFamilies, style,
165 delegate.mWeight));
171 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
172 if (delegate == null) {
173 delegate = sManager.getDelegate(sDefaultTypeface);
175 if (delegate == null) {
[all …]
DFontFamily_Delegate.java259 final FontFamily_Delegate delegate = getDelegate(thisFontFamily.mBuilderPtr); in addFont() local
260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic); in addFont()
268 FontFamily_Delegate delegate = new FontFamily_Delegate(); in nInitBuilder() local
271 delegate.mVariant = FontVariant.values()[variant]; in nInitBuilder()
273 delegate.init(); in nInitBuilder()
275 sPostInitDelegate.add(delegate); in nInitBuilder()
277 return sManager.addNewDelegate(delegate); in nInitBuilder()
313 final FontFamily_Delegate delegate = getDelegate(builderPtr);
315 if (delegate != null) {
317 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic));
[all …]
DNinePatch_Delegate.java174 NinePatch_Delegate delegate = sManager.getDelegate(nativeNinePatch); in getChunk() local
175 if (delegate != null) { in getChunk()
176 return delegate.chunk; in getChunk()
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java154 private final AndroidShimResponseCache delegate; field in HttpResponseCache
156 private HttpResponseCache(AndroidShimResponseCache delegate) { in HttpResponseCache() argument
157 this.delegate = delegate; in HttpResponseCache()
188 AndroidShimResponseCache trueResponseCache = installedResponseCache.delegate; in install()
206 return delegate.get(uri, requestMethod, requestHeaders); in get()
210 return delegate.put(uri, urlConnection); in put()
220 return delegate.size(); in size()
232 return delegate.maxSize(); in maxSize()
242 delegate.flush(); in flush()
252 return delegate.getNetworkCount(); in getNetworkCount()
[all …]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java77 IDelegate delegate = Mockito.mock(IDelegate.class); in testSetLanguage_delegation() local
78 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_delegation()
80 … Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
82 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
88 Mockito.verify(delegate, Mockito.atLeast(0)).onIsLanguageAvailable( in testSetLanguage_delegation()
90 Mockito.verify(delegate, Mockito.atLeast(0)).onLoadLanguage( in testSetLanguage_delegation()
95 IDelegate delegate = Mockito.mock(IDelegate.class); in testSetLanguage_availableLanguage() local
96 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_availableLanguage()
102 Mockito.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
104 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()
126 return delegate.toString(); in toString()
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/
DDeletionMethodProcessor.kt31 val delegate = ShortcutMethodProcessor(context, containing, executableElement) in process() constant
32 delegate.extractAnnotation(Delete::class, ProcessorErrors.MISSING_DELETE_ANNOTATION) in process()
34 val returnTypeName = delegate.extractReturnType().typeName() in process()
41 val (entities, params) = delegate.extractParams( in process()
47 element = delegate.executableElement, in process()
48 name = delegate.executableElement.simpleName.toString(), in process()
DUpdateMethodProcessor.kt34 val delegate = ShortcutMethodProcessor(context, containing, executableElement) in process() constant
35 val annotation = delegate in process()
42 val returnTypeName = delegate.extractReturnType().typeName() in process()
49 val (entities, params) = delegate.extractParams( in process()
55 element = delegate.executableElement, in process()
56 name = delegate.executableElement.simpleName.toString(), in process()
DInsertionMethodProcessor.kt42 val delegate = ShortcutMethodProcessor(context, containing, executableElement) in process() constant
43 val annotation = delegate.extractAnnotation(Insert::class, in process()
50 val returnType = delegate.extractReturnType() in process()
55 val (entities, params) = delegate.extractParams( in process()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDelegateManager.java104 Object delegate; in getDelegate() local
106 delegate = sDelegates.get(native_object); in getDelegate()
110 if (delegate == null) { in getDelegate()
116 assert delegate != null; in getDelegate()
118 return (T)delegate; in getDelegate()
152 T delegate = getDelegate(native_object); in removeJavaReferenceFor() local
159 sJavaReferences.remove(delegate); in removeJavaReferenceFor()
/frameworks/base/media/java/android/media/projection/
DMediaProjectionManager.java134 CallbackDelegate delegate = new CallbackDelegate(callback, handler); in addCallback() local
135 mCallbacks.put(callback, delegate); in addCallback()
137 mService.addCallback(delegate); in addCallback()
151 CallbackDelegate delegate = mCallbacks.remove(callback); in removeCallback() local
153 if (delegate != null) { in removeCallback()
154 mService.removeCallback(delegate); in removeCallback()
/frameworks/support/media-compat/api21/android/support/v4/media/
DVolumeProviderCompatApi21.java25 final Delegate delegate) { in createVolumeProvider() argument
29 delegate.onSetVolumeTo(volume); in createVolumeProvider()
34 delegate.onAdjustVolume(direction); in createVolumeProvider()
/frameworks/layoutlib/bridge/src/libcore/util/
DNativeAllocationRegistry_Delegate.java59 NativeAllocationRegistry_Delegate delegate = sManager.getDelegate(freeFunction); in applyFreeFunction() local
60 if (delegate != null) { in applyFreeFunction()
61 delegate.mFinalizer.free(nativePtr); in applyFreeFunction()
/frameworks/webview/nullwebview/java/com/android/webview/nullwebview/
DNullWebViewFactoryProvider.java34 public static WebViewFactoryProvider create(WebViewDelegate delegate) { in create() argument
35 return new NullWebViewFactoryProvider(delegate); in create()
38 public NullWebViewFactoryProvider(WebViewDelegate delegate) { in NullWebViewFactoryProvider() argument
/frameworks/support/compat/java/android/support/v4/view/
DAccessibilityDelegateCompat.java94 AccessibilityDelegate delegate, View host) { in getAccessibilityNodeProvider() argument
99 public boolean performAccessibilityAction(AccessibilityDelegate delegate, View host, in performAccessibilityAction() argument
168 AccessibilityDelegate delegate, View host) {
169 Object provider = delegate.getAccessibilityNodeProvider(host);
177 public boolean performAccessibilityAction(AccessibilityDelegate delegate, View host,
179 return delegate.performAccessibilityAction(host, action, args);
/frameworks/base/packages/Osu/src/com/android/hotspot2/app/
DLocalServiceBinder.java8 public LocalServiceBinder(OSUService delegate) { in LocalServiceBinder() argument
9 mDelegate = delegate; in LocalServiceBinder()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java191 NativeEventHandlerDelegate delegate = module.mEventHandlerDelegate; in postEventFromNative() local
192 if (delegate != null) { in postEventFromNative()
193 Handler handler = delegate.handler(); in postEventFromNative()
/frameworks/support/persistence/db-framework/src/main/java/android/arch/persistence/db/framework/
DFrameworkSQLiteProgram.java28 FrameworkSQLiteProgram(SQLiteProgram delegate) { in FrameworkSQLiteProgram() argument
29 mDelegate = delegate; in FrameworkSQLiteProgram()
/frameworks/layoutlib/bridge/src/libcore/io/
DMemoryMappedFile_Delegate.java95 MemoryMappedFile_Delegate delegate = getDelegate(file); in bigEndianIterator() local
96 return new BridgeBufferIterator(delegate.mSize, delegate.mMappedByteBuffer.duplicate()); in bigEndianIterator()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DDirectStatementRetriever.java167 for (String delegate : result.getDelegates()) { in retrieveStatementFromUrl()
169 retrieveStatementFromUrl(delegate, maxIncludeLevel - 1, source) in retrieveStatementFromUrl()
202 for (String delegate : delegates) { in retrieveFromAndroid()
203 statements.addAll(retrieveStatementFromUrl(delegate, MAX_INCLUDE_LEVEL, in retrieveFromAndroid()
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/
DRoomOpenHelper.java45 public RoomOpenHelper(@NonNull DatabaseConfiguration configuration, @NonNull Delegate delegate, in RoomOpenHelper() argument
47 super(delegate.version); in RoomOpenHelper()
49 mDelegate = delegate; in RoomOpenHelper()

123