Home
last modified time | relevance | path

Searched refs:plugin (Results 1 – 25 of 123) sorted by relevance

12345

/frameworks/av/media/libstagefright/
DMediaExtractor.cpp46 MediaExtractorCUnwrapper::MediaExtractorCUnwrapper(CMediaExtractor *plugin) { in MediaExtractorCUnwrapper() argument
47 this->plugin = plugin; in MediaExtractorCUnwrapper()
51 plugin->free(plugin->data); in ~MediaExtractorCUnwrapper()
52 free(plugin); in ~MediaExtractorCUnwrapper()
56 return plugin->countTracks(plugin->data); in countTracks()
60 return MediaTrackCUnwrapper::create(plugin->getTrack(plugin->data, index)); in getTrack()
67 media_status_t ret = plugin->getTrackMetaData(plugin->data, format, index, flags); in getTrackMetaData()
78 media_status_t ret = plugin->getMetaData(plugin->data, format); in getMetaData()
87 return plugin->name(plugin->data); in name()
91 return plugin->flags(plugin->data); in flags()
[all …]
DMediaExtractorFactory.cpp78 sp<ExtractorPlugin> plugin; in CreateFromService() local
80 creator = sniff(source, &confidence, &meta, &freeMeta, plugin, &creatorVersion); in CreateFromService()
99 return CreateIMediaExtractorFromMediaExtractor(ex, source, plugin); in CreateFromService()
130 FreeMetaFunc *freeMeta, sp<ExtractorPlugin> &plugin, uint32_t *creatorVersion) { in sniff() argument
167 plugin = *it; in sniff()
182 void MediaExtractorFactory::RegisterExtractor(const sp<ExtractorPlugin> &plugin, in RegisterExtractor() argument
185 if (plugin->def.def_version != EXTRACTORDEF_VERSION_NDK_V1 && in RegisterExtractor()
186 plugin->def.def_version != EXTRACTORDEF_VERSION_NDK_V2) { in RegisterExtractor()
187 ALOGE("don't understand extractor format %u, ignoring.", plugin->def.def_version); in RegisterExtractor()
190 if (memcmp(&plugin->def.extractor_uuid, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) == 0) { in RegisterExtractor()
[all …]
DInterfaceUtils.cpp43 const sp<RefBase> &plugin) { in CreateIMediaExtractorFromMediaExtractor() argument
47 return RemoteMediaExtractor::wrap(extractor, source, plugin); in CreateIMediaExtractorFromMediaExtractor()
59 MediaTrack *source, const sp<RefBase> &plugin) { in CreateIMediaSourceFromMediaSourceBase() argument
63 return RemoteMediaSource::wrap(extractor, source, plugin); in CreateIMediaSourceFromMediaSourceBase()
DRemoteMediaSource.cpp26 const sp<RefBase> &plugin) in RemoteMediaSource() argument
29 mExtractorPlugin(plugin) {} in RemoteMediaSource()
78 MediaTrack *source, const sp<RefBase> &plugin) { in wrap() argument
82 return new RemoteMediaSource(extractor, source, plugin); in wrap()
DRemoteMediaExtractor.cpp46 const sp<RefBase> &plugin) in RemoteMediaExtractor() argument
49 mExtractorPlugin(plugin) { in RemoteMediaExtractor()
152 const sp<RefBase> &plugin) { in wrap() argument
156 return new RemoteMediaExtractor(extractor, source, plugin); in wrap()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockSwitchTest.java92 ClockPlugin plugin = mock(ClockPlugin.class); in onPluginConnected_showPluginClock() local
94 when(plugin.getView()).thenReturn(pluginView); in onPluginConnected_showPluginClock()
96 mKeyguardClockSwitch.getClockChangedListener().onClockChanged(plugin); in onPluginConnected_showPluginClock()
99 assertThat(plugin.getView().getParent()).isEqualTo(mClockContainer); in onPluginConnected_showPluginClock()
108 ClockPlugin plugin = mock(ClockPlugin.class); in onPluginConnected_showPluginBigClock() local
109 when(plugin.getBigClockView()).thenReturn(mBigClock); in onPluginConnected_showPluginBigClock()
113 mKeyguardClockSwitch.getClockChangedListener().onClockChanged(plugin); in onPluginConnected_showPluginBigClock()
122 ClockPlugin plugin = mock(ClockPlugin.class); in onPluginConnected_nullView() local
123 mKeyguardClockSwitch.getClockChangedListener().onClockChanged(plugin); in onPluginConnected_nullView()
147 ClockPlugin plugin = mock(ClockPlugin.class); in onPluginConnected_darkAmountInitialized() local
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXStore.cpp89 OMXPluginBase *plugin = nullptr; in addPlugin() local
91 plugin = (*createOMXPlugin)(); in addPlugin()
94 if (plugin) { in addPlugin()
95 mPlugins.push_back({ plugin, libHandle }); in addPlugin()
96 addPlugin(plugin); in addPlugin()
102 void OMXStore::addPlugin(OMXPluginBase *plugin) { in addPlugin() argument
109 while ((err = plugin->enumerateComponents( in addPlugin()
120 mPluginByComponentName.add(name8, plugin); in addPlugin()
136 for (const Plugin &plugin : mPlugins) { in clearPlugins() local
139 plugin.mLibHandle, "destroyOMXPlugin"); in clearPlugins()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockManager.java214 ClockPlugin plugin = pluginSupplier.get(); in addBuiltinClock() local
215 mPreviewClocks.addClockPlugin(plugin); in addBuiltinClock()
289 public void onPluginConnected(ClockPlugin plugin, Context pluginContext) { in onPluginConnected() argument
290 addClockPlugin(plugin); in onPluginConnected()
291 reloadIfNeeded(plugin); in onPluginConnected()
295 public void onPluginDisconnected(ClockPlugin plugin) { in onPluginDisconnected() argument
296 removeClockPlugin(plugin); in onPluginDisconnected()
297 reloadIfNeeded(plugin); in onPluginDisconnected()
321 void addClockPlugin(ClockPlugin plugin) { in addClockPlugin() argument
322 final String id = plugin.getClass().getName(); in addClockPlugin()
[all …]
/frameworks/base/packages/SystemUI/docs/
Dplugins.md9 Existing plugin hooks can be found [here](/packages/SystemUI/docs/plugin_hooks.md).
13 The first step of adding a plugin hook to SysUI is to define the interface layer between the plugin
15 …d be placed in the plugin library, under com.android.systemui.plugin or sub-packages.  The main in…
18 …e plugin library should be tagged with a version, they should also be tagged with an action if the…
33 To actually listen for plugins, you implement a plugin listener that has the following interface.
38     * Called when the plugin has been loaded and is ready to be used.
40     * It may also be called in the future if the plugin package changes
43    void onPluginConnected(T plugin);
46     * Called when a plugin has been uninstalled/updated and should be removed
49    default void onPluginDisconnected(T plugin) {
[all …]
Dplugin_hooks.md3 Expected interface: [OverlayPlugin](/packages/SystemUI/plugin/src/com/android/systemui/plugins/Over…
5 Use: Allows plugin access to the status bar and nav bar window for whatever nefarious purposes you …
8 Expected interface: [QS](/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QS.java)
15 Expected interface: [QSFactory](/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/QSFac…
20 Expected interface: [NavBarButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi…
22 Use: Allows a plugin to create a new nav bar button, or override an existing one with a view of its…
25 Expected interface: [NavGesture](/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusb…
30 Expected interface: [IntentButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi…
32 Use: Allows a plugin to specify the icon for the bottom right lock screen button, and the intent th…
35 Expected interface: [IntentButtonProvider](/packages/SystemUI/plugin/src/com/android/systemui/plugi…
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationListenerWithPlugins.java59 for (NotificationListenerController plugin : mPlugins) { in getActiveNotifications()
60 activeNotifications = plugin.getActiveNotifications(activeNotifications); in getActiveNotifications()
68 for (NotificationListenerController plugin : mPlugins) { in getCurrentRanking()
69 currentRanking = plugin.getCurrentRanking(currentRanking); in getCurrentRanking()
85 for (NotificationListenerController plugin : mPlugins) { in onPluginNotificationPosted()
86 if (plugin.onNotificationPosted(sbn, rankingMap)) { in onPluginNotificationPosted()
99 for (NotificationListenerController plugin : mPlugins) { in onPluginNotificationRemoved()
100 if (plugin.onNotificationRemoved(sbn, rankingMap)) { in onPluginNotificationRemoved()
112 public void onPluginConnected(NotificationListenerController plugin, Context pluginContext) { in onPluginConnected() argument
113 mPlugins.add(plugin); in onPluginConnected()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRecommendationServiceImpl.java26 import com.android.printservice.recommendation.plugin.google.CloudPrintPlugin;
27 import com.android.printservice.recommendation.plugin.hp.HPRecommendationPlugin;
28 import com.android.printservice.recommendation.plugin.mdnsFilter.MDNSFilterPlugin;
29 import com.android.printservice.recommendation.plugin.mdnsFilter.VendorConfig;
30 import com.android.printservice.recommendation.plugin.mopria.MopriaRecommendationPlugin;
31 import com.android.printservice.recommendation.plugin.samsung.SamsungRecommendationPlugin;
32 import com.android.printservice.recommendation.plugin.xerox.XeroxPrintServiceRecommendationPlugin;
159 RemotePrintServicePlugin plugin = mPlugins.get(i); in onChanged() local
162 List<InetAddress> printers = plugin.getPrinters(); in onChanged()
165 recommendations.add(new RecommendationInfo(plugin.packageName, in onChanged()
[all …]
DRemotePrintServicePlugin.java68 public RemotePrintServicePlugin(@NonNull PrintServicePlugin plugin, in RemotePrintServicePlugin() argument
72 mPlugin = plugin; in RemotePrintServicePlugin()
157 private PluginException(PrintServicePlugin plugin, String message, Throwable e) { in PluginException() argument
158 super(plugin + ": " + message, e); in PluginException()
/frameworks/base/core/java/android/webkit/
DPluginList.java68 public synchronized void addPlugin(Plugin plugin) { in addPlugin() argument
69 if (!mPlugins.contains(plugin)) { in addPlugin()
70 mPlugins.add(plugin); in addPlugin()
82 public synchronized void removePlugin(Plugin plugin) { in removePlugin() argument
83 int location = mPlugins.indexOf(plugin); in removePlugin()
111 Plugin plugin = mPlugins.get(position); in pluginClicked() local
112 plugin.dispatchClickEvent(context); in pluginClicked()
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeySessionLibrary.cpp32 ClearKeyCasSession::ClearKeyCasSession(CasPlugin *plugin) in ClearKeyCasSession() argument
33 : mPlugin(plugin) { in ClearKeyCasSession()
54 CasPlugin *plugin, CasSessionId *sessionId) { in addSession() argument
59 std::shared_ptr<ClearKeyCasSession> session(new ClearKeyCasSession(plugin)); in addSession()
95 void ClearKeySessionLibrary::destroyPlugin(CasPlugin *plugin) { in destroyPlugin() argument
100 if (session->getPlugin() == plugin) { in destroyPlugin()
DClearKeySessionLibrary.h35 explicit ClearKeyCasSession(CasPlugin *plugin);
76 status_t addSession(CasPlugin *plugin, CasSessionId *sessionId);
82 void destroyPlugin(CasPlugin *plugin);
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DCryptoFactory.cpp40 android::CryptoPlugin** plugin) { in createPlugin() argument
42 *plugin = NULL; in createPlugin()
52 *plugin = clearKeyPlugin; in createPlugin()
55 *plugin = NULL; in createPlugin()
DDrmFactory.cpp48 android::DrmPlugin** plugin) { in createDrmPlugin() argument
50 *plugin = NULL; in createDrmPlugin()
54 *plugin = new DrmPlugin(SessionLibrary::get()); in createDrmPlugin()
/frameworks/av/drm/mediacas/plugins/mock/
DMockSessionLibrary.h30 explicit MockCasSession(CasPlugin *plugin) : mPlugin(plugin) {} in MockCasSession() argument
47 status_t addSession(CasPlugin *plugin, CasSessionId *sessionId);
53 void destroyPlugin(CasPlugin *plugin);
DMockSessionLibrary.cpp43 CasPlugin *plugin, CasSessionId *sessionId) { in addSession() argument
46 sp<MockCasSession> session = new MockCasSession(plugin); in addSession()
82 void MockSessionLibrary::destroyPlugin(CasPlugin *plugin) { in destroyPlugin() argument
87 if (session->getPlugin() == plugin) { in destroyPlugin()
DMockCasPlugin.cpp54 CasPlugin **plugin) { in createPlugin() argument
59 *plugin = new MockCasPlugin(); in createPlugin()
67 CasPlugin **plugin) { in createPlugin() argument
72 *plugin = new MockCasPlugin(); in createPlugin()
83 int32_t CA_system_id, DescramblerPlugin** plugin) { in createPlugin() argument
88 *plugin = new MockDescramblerPlugin(); in createPlugin()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginInstanceManager.java119 for (PluginInfo plugin : plugins) { in destroy()
121 plugin.mPlugin).sendToTarget(); in destroy()
258 PluginInfo<T> plugin = mPlugins.get(i); in handleMessage() local
259 mListener.onPluginDisconnected(plugin.mPlugin); in handleMessage()
260 if (!(plugin.mPlugin instanceof PluginFragment)) { in handleMessage()
263 plugin.mPlugin.onDestroy(); in handleMessage()
272 final PluginInfo<T> plugin = mPlugins.get(i); in handleMessage() local
273 if (plugin.mPackage.equals(pkg)) { in handleMessage()
275 plugin.mPlugin).sendToTarget(); in handleMessage()
356 T plugin = (T) pluginClass.newInstance(); in handleLoadPlugin() local
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mopria/
DMopriaRecommendationPlugin.java18 package com.android.printservice.recommendation.plugin.mopria;
25 import com.android.printservice.recommendation.plugin.hp.MDnsUtils;
26 import com.android.printservice.recommendation.plugin.hp.ServiceRecommendationPlugin;
27 import com.android.printservice.recommendation.plugin.hp.VendorInfo;
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmFactory.cpp68 DrmPlugin *plugin = NULL; in createPlugin() local
72 _hidl_cb(Status::BAD_VALUE, plugin); in createPlugin()
76 plugin = new DrmPlugin(SessionLibrary::get()); in createPlugin()
77 _hidl_cb(Status::OK, plugin); in createPlugin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIApplication.java229 public void onPluginConnected(OverlayPlugin plugin, Context pluginContext) { in startServicesIfNeeded()
235 plugin.setup(statusBar.getStatusBarWindow(), in startServicesIfNeeded()
236 statusBar.getNavigationBarView(), new Callback(plugin), in startServicesIfNeeded()
244 public void onPluginDisconnected(OverlayPlugin plugin) { in startServicesIfNeeded()
248 mOverlays.remove(plugin); in startServicesIfNeeded()
258 Callback(OverlayPlugin plugin) { in startServicesIfNeeded()
259 mPlugin = plugin; in startServicesIfNeeded()

12345