Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java141 MediaPlayerWrapper wrapper = MediaPlayerWrapperFactory.wrap(null, mThread.getLooper()); in testNullControllerLooper() local
142 Assert.assertNull(wrapper); in testNullControllerLooper()
144 wrapper = MediaPlayerWrapperFactory.wrap(mMockController, null); in testNullControllerLooper()
145 Assert.assertNull(wrapper); in testNullControllerLooper()
154 MediaPlayerWrapper wrapper = in testIsReady() local
156 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
157 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady()
161 Assert.assertFalse(wrapper.isPlaybackStateReady()); in testIsReady()
165 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
169 Assert.assertFalse(wrapper.isMetadataReady()); in testIsReady()
[all …]
DBrowserPlayerWrapperTest.java71 BrowsedPlayerWrapper wrapper = in testWrap() local
73 wrapper.connect(mConnCb); in testWrap()
80 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testWrap()
86 BrowsedPlayerWrapper wrapper = in testConnect_Successful() local
88 wrapper.connect(mConnCb); in testConnect_Successful()
94 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testConnect_Successful()
100 BrowsedPlayerWrapper wrapper = in testConnect_Suspended() local
102 wrapper.connect(mConnCb); in testConnect_Suspended()
108 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_CONN_ERROR), eq(wrapper)); in testConnect_Suspended()
117 BrowsedPlayerWrapper wrapper = in testConnect_Failed() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsablePlayerConnector.java93 player.connect((int status, BrowsedPlayerWrapper wrapper) -> { in connectToPlayers() argument
102 msg.obj = wrapper; in connectToPlayers()
120 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector()
123 if (!mPendingPlayers.remove(wrapper)) { in BrowsablePlayerConnector()
128 + wrapper.getPackageName()); in BrowsablePlayerConnector()
129 mResults.add(wrapper); in BrowsablePlayerConnector()
133 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector()
136 Log.i(TAG, wrapper.getPackageName() + " is not browsable"); in BrowsablePlayerConnector()
137 mPendingPlayers.remove(wrapper); in BrowsablePlayerConnector()
143 Log.i(TAG, "Checking root contents for " + wrapper.getPackageName()); in BrowsablePlayerConnector()
[all …]
DMediaPlayerList.java174 for (BrowsedPlayerWrapper wrapper : players) { in init()
176 if (!havePlayerId(wrapper.getPackageName())) { in init()
177 mMediaPlayerIds.put(wrapper.getPackageName(), getFreeMediaPlayerId()); in init()
180 d("Adding Browser Wrapper for " + wrapper.getPackageName() + " with id " in init()
181 + mMediaPlayerIds.get(wrapper.getPackageName())); in init()
183 mBrowsablePlayers.put(mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init()
185 wrapper.getFolderItems(wrapper.getRootId(), in init()
413 BrowsedPlayerWrapper wrapper = mBrowsablePlayers.get(playerIndex); in getFolderItems() local
416 + wrapper.getPackageName()); in getFolderItems()
417 itemId = wrapper.getRootId(); in getFolderItems()
[all …]
DBrowsedPlayerWrapper.java51 void run(int status, BrowsedPlayerWrapper wrapper); in run() argument
121 BrowsedPlayerWrapper wrapper = in wrap() local
123 return wrapper; in wrap()
142 return setCallbackAndConnect((int status, BrowsedPlayerWrapper wrapper) -> { in connect()
143 cb.run(status, wrapper); in connect()
209 return setCallbackAndConnect((int status, BrowsedPlayerWrapper wrapper) -> { in playItem()
212 wrapper.mWrappedBrowser.getSessionToken()); in playItem()
253 return setCallbackAndConnect((int status, BrowsedPlayerWrapper wrapper) -> {
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java105 CameraWrapper wrapper = MockCameraFactory.createCameraWrapper(frontCamera, backCamera); in testOpenCamera() local
106 CameraManager.setCameraWrapper(wrapper); in testOpenCamera()
112 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera()
113 Mockito.verify(wrapper).open(1); in testOpenCamera()
114 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
115 Mockito.verify(wrapper, Mockito.never()).release(backCamera); in testOpenCamera()
118 Mockito.verify(wrapper).open(0); in testOpenCamera()
119 Mockito.verify(wrapper).open(1); in testOpenCamera()
120 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
121 Mockito.verify(wrapper).release(backCamera); in testOpenCamera()
[all …]
DMockCameraFactory.java49 CameraWrapper wrapper = Mockito.mock(CameraWrapper.class); in createCameraWrapper() local
50 Mockito.when(wrapper.getNumberOfCameras()).thenReturn(cameras.length); in createCameraWrapper()
51 Mockito.when(wrapper.open(Mockito.anyInt())).then(new Answer<Camera>() { in createCameraWrapper()
66 }).when(wrapper).getCameraInfo(Mockito.anyInt(), Mockito.any(CameraInfo.class)); in createCameraWrapper()
67 return wrapper; in createCameraWrapper()
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java337 AppBlockingPackageInfoWrapper wrapper = policy.blacklistsMap.get(packageName); in searchFromBlacklistsLocked() local
338 if (wrapper != null && wrapper.isMatching) { in searchFromBlacklistsLocked()
339 return wrapper.info; in searchFromBlacklistsLocked()
348 AppBlockingPackageInfoWrapper wrapper = policy.whitelistsMap.get(packageName); in searchFromWhitelistsLocked() local
349 if (wrapper != null && wrapper.isMatching) { in searchFromWhitelistsLocked()
350 return wrapper.info; in searchFromWhitelistsLocked()
353 AppBlockingPackageInfoWrapper wrapper = mActivityWhitelistMap.get(packageName); in searchFromWhitelistsLocked() local
354 return (wrapper != null) ? wrapper.info : null; in searchFromWhitelistsLocked()
369 AppBlockingPackageInfoWrapper wrapper = map.get(packageName); in isActivityInMapAndMatching() local
370 if (wrapper == null || !wrapper.isMatching) { in isActivityInMapAndMatching()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowLocalBroadcastManager.java60 Wrapper wrapper = iterator.next(); in unregisterReceiver() local
61 if (wrapper.getBroadcastReceiver() == receiver) { in unregisterReceiver()
72 for (Wrapper wrapper : copy) { in sendBroadcast()
73 if (wrapper.getIntentFilter().matchAction(intent.getAction())) { in sendBroadcast()
74 int match = wrapper.getIntentFilter().matchData(intent.getType(), in sendBroadcast()
78 final BroadcastReceiver receiver = wrapper.getBroadcastReceiver(); in sendBroadcast()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourcesLiveDataTest.java124 .filter(wrapper -> wrapper.intentFilter.hasAction(Intent.ACTION_PACKAGE_ADDED)) in testGetAppsOnPackageAdded()
125 .map(wrapper -> wrapper.broadcastReceiver) in testGetAppsOnPackageAdded()
147 .filter(wrapper -> wrapper.intentFilter.hasAction(Intent.ACTION_PACKAGE_REMOVED)) in testGetAppsOnPackageRemoved()
148 .map(wrapper -> wrapper.broadcastReceiver) in testGetAppsOnPackageRemoved()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DInputTaskScheduler.java207 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleRemoveSchedule() local
208 if (wrapper != null) { in handleRemoveSchedule()
209 wrapper.mTask.cancel(); in handleRemoveSchedule()
226 HandlerWrapper wrapper = mPendingRecordings.get(schedule.getId()); in handleUpdateSchedule() local
227 if (wrapper != null) { in handleUpdateSchedule()
229 && schedule.getStartTimeMs() > wrapper.mTask.getStartTimeMs()) { in handleUpdateSchedule()
233 wrapper.mTask.cancel(); in handleUpdateSchedule()
237 wrapper.sendMessage(wrapper.obtainMessage(RecordingTask.MSG_UDPATE_SCHEDULE, schedule)); in handleUpdateSchedule()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DSubscriptionsChangeListenerTest.java93 for (ShadowApplication.Wrapper wrapper : in start_registersReceiver()
95 if (wrapper.getIntentFilter().matchAction( in start_registersReceiver()
117 for (ShadowApplication.Wrapper wrapper : in stop_unregistersReceiver()
119 if (wrapper.getIntentFilter().matchAction( in stop_unregistersReceiver()
DMobileNetworkUpdateManagerTest.java76 for (ShadowApplication.Wrapper wrapper : in onStart_receiverRegistered()
78 if (wrapper.getIntentFilter().matchAction( in onStart_receiverRegistered()
97 for (ShadowApplication.Wrapper wrapper : in onStop_receiverUnregistered()
99 if (wrapper.getIntentFilter().matchAction( in onStop_receiverUnregistered()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java146 JobWrapper wrapper = mJobs.removeFirst(); in submitTasksIfAllowed() local
147 if (!wrapper.isCancelled()) { in submitTasksIfAllowed()
149 wrapper.setFuture(mPool.submit(wrapper, this)); in submitTasksIfAllowed()
/packages/apps/Car/libs/car-ui-lib/
Dgradlew67 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
165 ….gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain…
Dgradlew.bat66 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
69 …Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain…
/packages/apps/Car/tests/
Dgradlew67 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
165 ….gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain…
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/
Dgradlew67 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
165 ….gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain…
Dgradlew.bat66 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
69 …Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain…
/packages/inputmethods/LatinIME/
Dgradlew63 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
160 exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
Dgradlew.bat72 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
75 …Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain…
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultPackageStatusNotifier.java44 ListenerWrapper wrapper = new ListenerWrapper(mAppContext, action, listener); in addListener() local
46 mListeners.put(listener, wrapper); in addListener()
47 mLauncherApps.registerCallback(wrapper); in addListener()
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/packages/apps/Car/tests/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaPlayerWrapperFactory.java48 static void inject(MediaPlayerWrapper wrapper) { in inject() argument
49 sInjectedWrapper = wrapper; in inject()

12