Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java141 MediaPlayerWrapper wrapper = MediaPlayerWrapper.wrap(null, mThread.getLooper()); in testNullControllerLooper() local
142 Assert.assertNull(wrapper); in testNullControllerLooper()
144 wrapper = MediaPlayerWrapper.wrap(mMockController, null); in testNullControllerLooper()
145 Assert.assertNull(wrapper); in testNullControllerLooper()
154 MediaPlayerWrapper wrapper = MediaPlayerWrapper.wrap(mMockController, mThread.getLooper()); in testIsReady() local
155 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
156 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady()
160 Assert.assertFalse(wrapper.isPlaybackStateReady()); in testIsReady()
164 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
168 Assert.assertFalse(wrapper.isMetadataReady()); in testIsReady()
[all …]
DBrowserPlayerWrapperTest.java61 BrowsedPlayerWrapper wrapper = BrowsedPlayerWrapper.wrap(null, "test", "test"); in testWrap() local
62 wrapper.connect(mConnCb); in testWrap()
69 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testWrap()
75 BrowsedPlayerWrapper wrapper = BrowsedPlayerWrapper.wrap(null, "test", "test"); in testConnect() local
76 wrapper.connect(mConnCb); in testConnect()
81 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_CONN_ERROR), eq(wrapper)); in testConnect()
83 wrapper.connect(mConnCb); in testConnect()
87 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testConnect()
93 BrowsedPlayerWrapper wrapper = BrowsedPlayerWrapper.wrap(null, "test", "test"); in testEmptyRoot() local
97 wrapper.connect(mConnCb); in testEmptyRoot()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsablePlayerConnector.java80 player.connect((int status, BrowsedPlayerWrapper wrapper) -> { in connectToPlayers() argument
89 msg.obj = wrapper; in connectToPlayers()
107 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector()
110 if (!mPendingPlayers.remove(wrapper)) { in BrowsablePlayerConnector()
115 + wrapper.getPackageName()); in BrowsablePlayerConnector()
116 mResults.add(wrapper); in BrowsablePlayerConnector()
120 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector()
123 Log.i(TAG, wrapper.getPackageName() + " is not browsable"); in BrowsablePlayerConnector()
124 mPendingPlayers.remove(wrapper); in BrowsablePlayerConnector()
130 Log.i(TAG, "Checking root contents for " + wrapper.getPackageName()); in BrowsablePlayerConnector()
[all …]
DMediaPlayerList.java153 for (BrowsedPlayerWrapper wrapper : players) { in init()
155 if (!mMediaPlayerIds.containsKey(wrapper.getPackageName())) { in init()
156 mMediaPlayerIds.put(wrapper.getPackageName(), getFreeMediaPlayerId()); in init()
159 d("Adding Browser Wrapper for " + wrapper.getPackageName() + " with id " in init()
160 + mMediaPlayerIds.get(wrapper.getPackageName())); in init()
162 mBrowsablePlayers.put(mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init()
164 wrapper.getFolderItems(wrapper.getRootId(), in init()
380 BrowsedPlayerWrapper wrapper = mBrowsablePlayers.get(playerIndex); in getFolderItems() local
383 + wrapper.getPackageName()); in getFolderItems()
384 itemId = wrapper.getRootId(); in getFolderItems()
[all …]
DBrowsedPlayerWrapper.java46 void run(int status, BrowsedPlayerWrapper wrapper); in run() argument
107 BrowsedPlayerWrapper wrapper = in wrap() local
109 return wrapper; in wrap()
123 mCallback = (int status, BrowsedPlayerWrapper wrapper) -> { in connect()
124 cb.run(status, wrapper); in connect()
125 wrapper.disconnect(); in connect()
146 connect((int status, BrowsedPlayerWrapper wrapper) -> { in playItem() argument
150 wrapper.mWrappedBrowser.getSessionToken()); in playItem()
184 mCallback = (int status, BrowsedPlayerWrapper wrapper) -> { in getFolderItems()
/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.java330 AppBlockingPackageInfoWrapper wrapper = policy.blacklistsMap.get(packageName); in searchFromBlacklistsLocked() local
331 if (wrapper != null && wrapper.isMatching) { in searchFromBlacklistsLocked()
332 return wrapper.info; in searchFromBlacklistsLocked()
341 AppBlockingPackageInfoWrapper wrapper = policy.whitelistsMap.get(packageName); in searchFromWhitelistsLocked() local
342 if (wrapper != null && wrapper.isMatching) { in searchFromWhitelistsLocked()
343 return wrapper.info; in searchFromWhitelistsLocked()
346 AppBlockingPackageInfoWrapper wrapper = mActivityWhitelistMap.get(packageName); in searchFromWhitelistsLocked() local
347 return (wrapper != null) ? wrapper.info : null; in searchFromWhitelistsLocked()
362 AppBlockingPackageInfoWrapper wrapper = map.get(packageName); in isActivityInMapAndMatching() local
363 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.java128 .filter(wrapper -> wrapper.intentFilter.hasAction(Intent.ACTION_PACKAGE_ADDED)) in testGetAppsOnPackageAdded()
129 .map(wrapper -> wrapper.broadcastReceiver) in testGetAppsOnPackageAdded()
152 .filter(wrapper -> wrapper.intentFilter.hasAction(Intent.ACTION_PACKAGE_REMOVED)) in testGetAppsOnPackageRemoved()
153 .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().getAction(0) in start_registersReceiver()
117 for (ShadowApplication.Wrapper wrapper : in stop_unregistersReceiver()
119 if (wrapper.getIntentFilter().getAction(0) in stop_unregistersReceiver()
DMobileNetworkUpdateManagerTest.java76 for (ShadowApplication.Wrapper wrapper : in onStart_receiverRegistered()
78 if (wrapper.getIntentFilter().getAction(0) in onStart_receiverRegistered()
97 for (ShadowApplication.Wrapper wrapper : in onStop_receiverUnregistered()
99 if (wrapper.getIntentFilter().getAction(0) in onStop_receiverUnregistered()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java170 private void handleFont(TagWrapper wrapper) { in handleFont() argument
171 final int start = wrapper.startIndex; in handleFont()
175 HtmlDocument.TagAttribute attr = wrapper.tag.getAttribute(HTML4.COLOR_ATTRIBUTE); in handleFont()
185 attr = wrapper.tag.getAttribute(HTML4.SIZE_ATTRIBUTE); in handleFont()
195 attr = wrapper.tag.getAttribute(HTML4.FACE_ATTRIBUTE); in handleFont()
/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/UnifiedEmail/src/com/android/mail/ui/
DWaitFragment.java78 ViewGroup wrapper = (ViewGroup) mInflater in onCreateView() local
80 wrapper.addView(getContent(wrapper)); in onCreateView()
81 return wrapper; in onCreateView()
/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/apps/Email/src/com/android/email/activity/setup/
DEditQuickResponseDialog.java84 final View wrapper = LayoutInflater.from(getActivity()) in onCreateDialog() local
86 mQuickResponseEditText = (EditText) wrapper.findViewById(R.id.quick_response_text); in onCreateDialog()
131 .setView(wrapper) in onCreateDialog()
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.properties3 distributionPath=wrapper/dists
5 zipStorePath=wrapper/dists
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java401 for (ViewWrapper wrapper : mPreviewViews) { in findViewForAttachment()
402 if (wrapper.attachment.equals(attachment) && in findViewForAttachment()
403 !(wrapper.attachment instanceof PendingAttachmentData)) { in findViewForAttachment()
404 return wrapper.view; in findViewForAttachment()
/packages/apps/Nfc/src/com/android/nfc/
DNfcUnlockManager.java76 for (UnlockHandlerWrapper wrapper : mUnlockHandlers.values()) { in recomputePollMask()
77 pollMask |= wrapper.mPollMask; in recomputePollMask()
/packages/services/Car/car-lib/src/android/car/
DCarBugreportManager.java187 CarBugreportManagerCallbackWrapper wrapper = in requestBugreport() local
189 mService.requestBugreport(output, extraOutput, wrapper); in requestBugreport()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DTetherServiceTest.java70 for (Wrapper wrapper : ShadowApplication.getInstance().getRegisteredReceivers()) { in scheduleAlarm_shouldRegisterReceiver()
71 if (wrapper.intentFilter.matchAction(WifiManager.WIFI_AP_STATE_CHANGED_ACTION)) { in scheduleAlarm_shouldRegisterReceiver()

12