Home
last modified time | relevance | path

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

123

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java254 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint); in getFlags() local
255 if (delegate == null) { in getFlags()
259 return delegate.mFlags; in getFlags()
267 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint); in setFlags() local
268 if (delegate == null) { in setFlags()
272 delegate.mFlags = flags; in setFlags()
283 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint); in getHinting() local
284 if (delegate == null) { in getHinting()
288 return delegate.mHintingMode; in getHinting()
294 Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint); in setHinting() local
[all …]
DBitmap_Delegate.java120 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap() local
122 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
154 Bitmap_Delegate delegate = new Bitmap_Delegate(ImageIO.read(input), Config.ARGB_8888); in createBitmap() local
156 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
188 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap() local
190 return createBitmap(delegate, createFlags, density.getDpiValue()); in createBitmap()
198 Bitmap_Delegate delegate = sManager.getDelegate(bitmap.mNativeBitmap); in getImage() local
199 if (delegate == null) { in getImage()
203 return delegate.mImage; in getImage()
272 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig)); in nativeCreate() local
[all …]
DTypeface_Delegate.java138 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
139 if (delegate == null) {
140 delegate = sManager.getDelegate(sDefaultTypeface);
142 if (delegate == null) {
146 return sManager.addNewDelegate(new Typeface_Delegate(delegate.mFontFamilies, style,
147 delegate.mWeight));
152 Typeface_Delegate delegate = sManager.getDelegate(native_instance);
153 if (delegate == null) {
154 delegate = sManager.getDelegate(sDefaultTypeface);
156 if (delegate == null) {
[all …]
DFontFamily_Delegate.java222 FontFamily_Delegate delegate = new FontFamily_Delegate(); in nCreateFamily() local
225 delegate.mVariant = FontVariant.values()[variant]; in nCreateFamily()
227 delegate.init(); in nCreateFamily()
229 sPostInitDelegate.add(delegate); in nCreateFamily()
231 return sManager.addNewDelegate(delegate); in nCreateFamily()
243 final FontFamily_Delegate delegate = getDelegate(nativeFamily);
244 if (delegate != null) {
246 delegate.mPostInitRunnables.add(new Runnable() {
249 delegate.addFont(path);
254 return delegate.addFont(path);
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DAccessibilityDelegateCompat.java36 public boolean dispatchPopulateAccessibilityEvent(Object delegate, View host, in dispatchPopulateAccessibilityEvent() argument
38 public void onInitializeAccessibilityEvent(Object delegate, View host, in onInitializeAccessibilityEvent() argument
40 public void onInitializeAccessibilityNodeInfo(Object delegate, View host, in onInitializeAccessibilityNodeInfo() argument
42 public void onPopulateAccessibilityEvent(Object delegate, View host, in onPopulateAccessibilityEvent() argument
44 public boolean onRequestSendAccessibilityEvent(Object delegate, ViewGroup host, View child, in onRequestSendAccessibilityEvent() argument
46 public void sendAccessibilityEvent(Object delegate, View host, int eventType); in sendAccessibilityEvent() argument
47 public void sendAccessibilityEventUnchecked(Object delegate, View host, in sendAccessibilityEventUnchecked() argument
49 public AccessibilityNodeProviderCompat getAccessibilityNodeProvider(Object delegate, in getAccessibilityNodeProvider() argument
51 public boolean performAccessibilityAction(Object delegate, View host, int action, in performAccessibilityAction() argument
66 public boolean dispatchPopulateAccessibilityEvent(Object delegate, View host, in dispatchPopulateAccessibilityEvent() argument
[all …]
/frameworks/base/core/java/android/net/http/
DHttpResponseCache.java152 private final com.android.okhttp.HttpResponseCache delegate; field in HttpResponseCache
154 private HttpResponseCache(com.android.okhttp.HttpResponseCache delegate) { in HttpResponseCache() argument
155 this.delegate = delegate; in HttpResponseCache()
207 return delegate.get(uri, requestMethod, requestHeaders); in get()
211 return delegate.put(uri, urlConnection); in put()
220 return delegate.getSize(); in size()
228 return delegate.getMaxSize(); in maxSize()
238 delegate.flush(); in flush()
248 return delegate.getNetworkCount(); in getNetworkCount()
257 return delegate.getHitCount(); in getHitCount()
[all …]
DAndroidHttpClient.java156 private final HttpClient delegate; field in AndroidHttpClient
162 this.delegate = new DefaultHttpClient(ccm, params) { in AndroidHttpClient()
244 return delegate.getParams(); in getParams()
248 return delegate.getConnectionManager(); in getConnectionManager()
252 return delegate.execute(request); in execute()
257 return delegate.execute(request, context); in execute()
262 return delegate.execute(target, request); in execute()
267 return delegate.execute(target, request, context); in execute()
273 return delegate.execute(request, responseHandler); in execute()
279 return delegate.execute(request, responseHandler, context); in execute()
[all …]
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java67 IDelegate delegate = LittleMock.mock(IDelegate.class); in testSetLanguage_delegation() local
68 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_delegation()
70 … LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_delegation()
72 LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE).when(delegate).onLoadLanguage( in testSetLanguage_delegation()
78 LittleMock.verify(delegate, LittleMock.anyTimes()).onIsLanguageAvailable( in testSetLanguage_delegation()
80 LittleMock.verify(delegate, LittleMock.times(1)).onLoadLanguage( in testSetLanguage_delegation()
85 IDelegate delegate = LittleMock.mock(IDelegate.class); in testSetLanguage_availableLanguage() local
86 MockableTextToSpeechService.setMocker(delegate); in testSetLanguage_availableLanguage()
92 … LittleMock.doReturn(TextToSpeech.LANG_COUNTRY_AVAILABLE).when(delegate).onIsLanguageAvailable( in testSetLanguage_availableLanguage()
94 … LittleMock.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()
DMockableTextToSpeechService.java29 public static void setMocker(IDelegate delegate) { in setMocker() argument
30 sDelegate = delegate; in setMocker()
/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/v4/ics/android/support/v4/view/
DAccessibilityDelegateCompatIcs.java85 public static boolean dispatchPopulateAccessibilityEvent(Object delegate, View host,
87 return ((AccessibilityDelegate) delegate).dispatchPopulateAccessibilityEvent(host, event);
90 public static void onInitializeAccessibilityEvent(Object delegate, View host,
92 ((AccessibilityDelegate) delegate).onInitializeAccessibilityEvent(host, event);
95 public static void onInitializeAccessibilityNodeInfo(Object delegate, View host, Object info) {
96 ((AccessibilityDelegate) delegate).onInitializeAccessibilityNodeInfo(host,
100 public static void onPopulateAccessibilityEvent(Object delegate, View host,
102 ((AccessibilityDelegate) delegate).onPopulateAccessibilityEvent(host, event);
105 public static boolean onRequestSendAccessibilityEvent(Object delegate, ViewGroup host,
107 return ((AccessibilityDelegate) delegate).onRequestSendAccessibilityEvent(host, child,
[all …]
DViewCompatICS.java37 public static void setAccessibilityDelegate(View v, Object delegate) { in setAccessibilityDelegate() argument
38 v.setAccessibilityDelegate((AccessibilityDelegate) delegate); in setAccessibilityDelegate()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDelegateManager.java99 T delegate = mDelegates.get(native_object); in getDelegate() local
102 if (delegate == null) { in getDelegate()
108 assert delegate != null; in getDelegate()
109 return delegate; in getDelegate()
137 T delegate = getDelegate(native_object); in removeJavaReferenceFor() local
144 mJavaReferences.remove(delegate); in removeJavaReferenceFor()
/frameworks/base/media/java/android/media/projection/
DMediaProjectionManager.java140 CallbackDelegate delegate = new CallbackDelegate(callback, handler); in addCallback() local
141 mCallbacks.put(callback, delegate); in addCallback()
143 mService.addCallback(delegate); in addCallback()
157 CallbackDelegate delegate = mCallbacks.remove(callback); in removeCallback() local
159 if (delegate != null) { in removeCallback()
160 mService.removeCallback(delegate); in removeCallback()
/frameworks/support/v4/api21/android/support/v4/media/
DVolumeProviderCompatApi21.java23 final Delegate delegate) { in createVolumeProvider() argument
27 delegate.onSetVolumeTo(volume); in createVolumeProvider()
32 delegate.onAdjustVolume(direction); in createVolumeProvider()
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DDynamicProxy.java47 public static <T> T dynamicProxy(Class<T> clazz, final Object delegate) { in dynamicProxy() argument
52 return delegate.getClass() in dynamicProxy()
54 .invoke(delegate, args); in dynamicProxy()
/frameworks/support/v4/jellybean/android/support/v4/view/
DAccessibilityDelegateCompatJellyBean.java97 public static Object getAccessibilityNodeProvider(Object delegate,
99 return ((AccessibilityDelegate) delegate).getAccessibilityNodeProvider(host);
102 public static boolean performAccessibilityAction(Object delegate, View host, int action,
104 return ((AccessibilityDelegate) delegate).performAccessibilityAction(host, action, args);
/frameworks/base/core/java/android/os/storage/
DStorageManager.java117 final ObbListenerDelegate delegate; in onObbResult() local
119 delegate = mListeners.get(nonce); in onObbResult()
120 if (delegate != null) { in onObbResult()
125 if (delegate != null) { in onObbResult()
126 delegate.sendObbStateChanged(filename, status); in onObbResult()
131 final ObbListenerDelegate delegate = new ObbListenerDelegate(listener); in addListener() local
134 mListeners.put(delegate.nonce, delegate); in addListener()
137 return delegate.nonce; in addListener()
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
DDateIntervalFormat_Delegate.java44 DateIntervalFormat_Delegate delegate = sManager.getDelegate((int)address); in formatDateInterval() local
45 if (delegate == null) { in formatDateInterval()
53 delegate.mFormat.format(interval, sb, pos); in formatDateInterval()
/frameworks/testing/espresso/espresso-sample/src/androidTest/java/com/google/android/apps/common/testing/ui/testapp/
DCustomFailureHandlerTest.java71 private final FailureHandler delegate; field in CustomFailureHandlerTest.CustomFailureHandler
74 delegate = new DefaultFailureHandler(targetContext); in CustomFailureHandler()
80 delegate.handle(error, viewMatcher); in handle()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTriggerModule.java194 NativeEventHandlerDelegate delegate = module.mEventHandlerDelegate; in postEventFromNative() local
195 if (delegate != null) { in postEventFromNative()
196 Handler handler = delegate.handler(); in postEventFromNative()
/frameworks/testing/support/src/android/support/test/internal/runner/junit3/
DNonLeakyTestSuite.java46 NonLeakyTest(Test delegate) { in NonLeakyTest() argument
47 this.mDelegate = delegate; in NonLeakyTest()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DSingleThreadedMediaPlayerProxy.java32 public SingleThreadedMediaPlayerProxy(MediaPlayerProxy delegate) { in SingleThreadedMediaPlayerProxy() argument
33 mDelegate = delegate; in SingleThreadedMediaPlayerProxy()
/frameworks/compile/mclinker/unittests/
DFactoriesTest.cpp83 m_pNodeAlloc->delegate(*delegatee); in TEST_F()
105 m_pNodeAlloc->delegate(*delegatee); in TEST_F()
141 m_pNodeAlloc->delegate(*delegatee); in TEST_F()
165 m_pNodeAlloc->delegate(*m_pNodeAlloc); in TEST_F()

123