Home
last modified time | relevance | path

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

12345678

/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DPageTokenWrapperTest.java43 PageTokenWrapper wrapper = PageTokenWrapper.of(isAscending, timeMillis, offset); in of_createInstance() local
45 assertThat(wrapper.isAscending()).isEqualTo(isAscending); in of_createInstance()
46 assertThat(wrapper.timeMillis()).isEqualTo(timeMillis); in of_createInstance()
47 assertThat(wrapper.offset()).isEqualTo(offset); in of_createInstance()
48 assertThat(wrapper.isTimestampSet()).isTrue(); in of_createInstance()
49 assertThat(wrapper.isEmpty()).isFalse(); in of_createInstance()
55 PageTokenWrapper wrapper = in of_offsetTooLarge_setToMax() local
57 assertThat(wrapper.offset()).isEqualTo(MAX_ALLOWED_OFFSET); in of_offsetTooLarge_setToMax()
92 PageTokenWrapper wrapper = PageTokenWrapper.ofAscending(true); in ofAscending_timestampNotSet() local
93 assertThat(wrapper.isAscending()).isTrue(); in ofAscending_timestampNotSet()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DMediaPlayerWrapperTest.java175 MediaPlayerWrapper wrapper = in testNullControllerLooper() local
177 Assert.assertNull(wrapper); in testNullControllerLooper()
179 wrapper = MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, null); in testNullControllerLooper()
180 Assert.assertNull(wrapper); in testNullControllerLooper()
189 MediaPlayerWrapper wrapper = in testIsReady() local
191 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
192 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady()
196 Assert.assertFalse(wrapper.isPlaybackStateReady()); in testIsReady()
200 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
204 Assert.assertFalse(wrapper.isMetadataReady()); in testIsReady()
[all …]
DBrowserPlayerWrapperTest.java179 BrowsedPlayerWrapper wrapper = in testWrap() local
181 wrapper.connect(mConnCb); in testWrap()
188 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testWrap()
194 BrowsedPlayerWrapper wrapper = in testConnect_Successful() local
196 wrapper.connect(mConnCb); in testConnect_Successful()
202 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testConnect_Successful()
208 BrowsedPlayerWrapper wrapper = in testConnect_Suspended() local
210 wrapper.connect(mConnCb); in testConnect_Suspended()
216 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_CONN_ERROR), eq(wrapper)); in testConnect_Suspended()
225 BrowsedPlayerWrapper wrapper = in testConnect_Failed() local
[all …]
DGPMWrapperTest.java57 GPMWrapper wrapper = new GPMWrapper(mContext, mMediaController, null); in isMetadataSynced_whenQueueIsNull_returnsFalse() local
59 assertThat(wrapper.isMetadataSynced()).isFalse(); in isMetadataSynced_whenQueueIsNull_returnsFalse()
85 GPMWrapper wrapper = new GPMWrapper(mContext, mMediaController, null); in isMetadataSynced_whenOutOfSync_returnsFalse() local
87 assertThat(wrapper.isMetadataSynced()).isFalse(); in isMetadataSynced_whenOutOfSync_returnsFalse()
112 GPMWrapper wrapper = new GPMWrapper(mContext, mMediaController, null); in isMetadataSynced_whenSynced_returnsTrue() local
114 assertThat(wrapper.isMetadataSynced()).isTrue(); in isMetadataSynced_whenSynced_returnsTrue()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarServiceHelperWrapperUnitTest.java84 CarServiceHelperWrapper wrapper = createWithImmediateTimeout(); in testThrowWhenNotConnected() local
88 () -> wrapper.createUserEvenWhenDisallowed("", "", 0)); in testThrowWhenNotConnected()
89 assertThrows(IllegalStateException.class, () -> wrapper.getMainDisplayAssignedToUser(0)); in testThrowWhenNotConnected()
90 assertThrows(IllegalStateException.class, () -> wrapper.getProcessGroup(0)); in testThrowWhenNotConnected()
91 assertThrows(IllegalStateException.class, () -> wrapper.getUserAssignedToDisplay(0)); in testThrowWhenNotConnected()
93 () -> wrapper.setDisplayAllowlistForUser(0, null)); in testThrowWhenNotConnected()
94 assertThrows(IllegalStateException.class, () -> wrapper.sendInitialUser(UserHandle.SYSTEM)); in testThrowWhenNotConnected()
95 assertThrows(IllegalStateException.class, () -> wrapper.setPassengerDisplays(null)); in testThrowWhenNotConnected()
96 assertThrows(IllegalStateException.class, () -> wrapper.setPersistentActivity(null, 0, 0)); in testThrowWhenNotConnected()
97 assertThrows(IllegalStateException.class, () -> wrapper.setProcessGroup(0, 0)); in testThrowWhenNotConnected()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/
DBrowsablePlayerConnector.java86 (int status, BrowsedPlayerWrapper wrapper) -> { in connectToPlayers() argument
95 .obtainMessage(MSG_CONNECT_CB, status, 0, wrapper) in connectToPlayers()
110 for (BrowsedPlayerWrapper wrapper : mPendingPlayers) { in removePendingPlayers()
111 Log.d(TAG, "Disconnecting " + wrapper.getPackageName()); in removePendingPlayers()
112 wrapper.disconnect(); in removePendingPlayers()
133 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in handleMessage() local
138 if (!mPendingPlayers.remove(wrapper)) { in handleMessage()
146 + wrapper.getPackageName()); in handleMessage()
147 mResults.add(wrapper); in handleMessage()
154 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in handleMessage() local
[all …]
DMediaPlayerList.java241 for (BrowsedPlayerWrapper wrapper : players) { in init()
243 if (!havePlayerId(wrapper.getPackageName())) { in init()
245 wrapper.getPackageName(), getFreeMediaPlayerId()); in init()
250 + wrapper.getPackageName() in init()
252 + mMediaPlayerIds.get(wrapper.getPackageName())); in init()
255 mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init()
257 wrapper.getFolderItems( in init()
258 wrapper.getRootId(), in init()
349 BrowsedPlayerWrapper wrapper = mBrowsablePlayers.get(BLUETOOTH_PLAYER_ID + 1); in getPlayerRoot() local
350 String itemId = wrapper.getRootId(); in getPlayerRoot()
[all …]
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter$1
/packages/apps/Car/Launcher/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter$1 ...
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/GradleWrapperMain.class ...
/packages/services/Telephony/testapps/TestSliceApp/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter$1
/packages/providers/MediaProvider/tools/photopicker-gradle/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter$1
/packages/apps/Car/DebuggingRestrictionController/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter.class ...
/packages/modules/Bluetooth/android/leaudio/gradle/wrapper/
Dgradle-wrapper.jar ... org/ org/gradle/ org/gradle/wrapper/ org/gradle/wrapper/BootstrapMainStarter.class ...
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java112 CameraWrapper wrapper = MockCameraFactory.createCameraWrapper(frontCamera, backCamera); in testOpenCamera() local
113 CameraManager.setCameraWrapper(wrapper); in testOpenCamera()
119 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera()
120 Mockito.verify(wrapper).open(1); in testOpenCamera()
121 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
122 Mockito.verify(wrapper, Mockito.never()).release(backCamera); in testOpenCamera()
125 Mockito.verify(wrapper).open(0); in testOpenCamera()
126 Mockito.verify(wrapper).open(1); in testOpenCamera()
127 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera()
128 Mockito.verify(wrapper).release(backCamera); in testOpenCamera()
[all …]
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.jar ... gradle.wrapper.PathAssembler) org.gradle.wrapper.Logger logger org.gradle.wrapper.IDownload ...
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningModeWrapperProviderTest.java69 ProvisioningModeWrapper wrapper = mTestProvider.getProvisioningModeWrapper( in testGetProvisioningModeWrapper_workProfile() local
72 assertWrapperAsExpected(wrapper, expected); in testGetProvisioningModeWrapper_workProfile()
79 ProvisioningModeWrapper wrapper = mTestProvider.getProvisioningModeWrapper( in testGetProvisioningModeWrapper_workProfileOnOrgOwnedDevice() local
82 assertWrapperAsExpected(wrapper, expected); in testGetProvisioningModeWrapper_workProfileOnOrgOwnedDevice()
96 ProvisioningModeWrapper wrapper = in testGetProvisioningModeWrapper_fullyManagedDevice_withoutSensorPermission() local
100 assertWrapperAsExpected(wrapper, expected); in testGetProvisioningModeWrapper_fullyManagedDevice_withoutSensorPermission()
115 ProvisioningModeWrapper wrapper = in testGetProvisioningModeWrapper_fullyManagedDevice_withSensorPermission() local
119 assertWrapperAsExpected(wrapper, expected); in testGetProvisioningModeWrapper_fullyManagedDevice_withSensorPermission()
122 private void assertWrapperAsExpected(ProvisioningModeWrapper wrapper, String expected) { in assertWrapperAsExpected() argument
123 assertThat(wrapper.mSummary.value(mContext)).isEqualTo(expected); in assertWrapperAsExpected()
/packages/services/Telephony/src/com/android/phone/
DImsStateCallbackController.java382 boolean notifyState(CallbackWrapper wrapper) { in notifyState() argument
383 if (VDBG) logv(mLogPrefix + "notifyState subId=" + wrapper.mSubId); in notifyState()
385 return wrapper.notifyState(mSubId, FEATURE_MMTEL, mState, mReason); in notifyState()
591 boolean notifyState(CallbackWrapper wrapper) { in notifyState() argument
592 if (VDBG) logv(mLogPrefix + "notifyState subId=" + wrapper.mSubId); in notifyState()
597 return wrapper.notifyState(mSubId, FEATURE_RCS, STATE_UNAVAILABLE, in notifyState()
600 return wrapper.notifyState(mSubId, FEATURE_RCS, STATE_UNAVAILABLE, in notifyState()
605 return wrapper.notifyState(mSubId, FEATURE_RCS, mState, mReason); in notifyState()
811 CallbackWrapper wrapper = mWrappers.get(binder); in onSubChanged() local
812 if (wrapper != null) { in onSubChanged()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlFactoryUnitTest.java64 AudioControlWrapper wrapper = AudioControlFactory.newAudioControl(); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance() local
66 assertThat(wrapper).isNotNull(); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance()
67 assertThat(wrapper).isInstanceOf(AudioControlWrapperAidl.class); in newAudioControl_forAudioControlWrapperAIDL_returnsInstance()
76 AudioControlWrapper wrapper = AudioControlFactory.newAudioControl(); in newAudioControl_forAudioControlWrapperV2_returnsInstance() local
78 assertThat(wrapper).isNotNull(); in newAudioControl_forAudioControlWrapperV2_returnsInstance()
79 assertThat(wrapper).isInstanceOf(AudioControlWrapperV2.class); in newAudioControl_forAudioControlWrapperV2_returnsInstance()
88 AudioControlWrapper wrapper = AudioControlFactory.newAudioControl(); in newAudioControl_forAudioControlWrapperV1_returnsInstance() local
90 assertThat(wrapper).isNotNull(); in newAudioControl_forAudioControlWrapperV1_returnsInstance()
91 assertThat(wrapper).isInstanceOf(AudioControlWrapperV1.class); in newAudioControl_forAudioControlWrapperV1_returnsInstance()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DBroadcastReceiverHelpers.java36 ShadowApplication.Wrapper wrapper = getRegisteredReceiverWrapperWithActions(actions); in getRegisteredReceiverWithActions() local
37 return wrapper == null ? null : wrapper.broadcastReceiver; in getRegisteredReceiverWithActions()
48 for (ShadowApplication.Wrapper wrapper : registeredReceivers) { in getRegisteredReceiverWrapperWithActions()
49 if (matchesActions(wrapper.getIntentFilter(), actions)) { in getRegisteredReceiverWrapperWithActions()
51 returnWrapper = wrapper; in getRegisteredReceiverWrapperWithActions()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DConnectHelper.java49 @NonNull ActionListenerWrapper wrapper, in connectToNetwork() argument
52 mActiveModeWarden.getPrimaryClientModeManager(), result, wrapper, callingUid, in connectToNetwork() local
63 @NonNull ActionListenerWrapper wrapper, in connectToNetwork() argument
68 wrapper.sendFailure(WifiManager.ActionListener.FAILURE_INTERNAL_ERROR); in connectToNetwork()
73 clientModeManager.connectNetwork(result, wrapper, callingUid, packageName, attributionTag); in connectToNetwork()
/packages/modules/Profiling/framework/java/android/os/
DProfilingManager.java335 ProfilingRequestCallbackWrapper wrapper = mCallbacks.get(i); in unregisterForAllProfilingResults() local
338 if (wrapper.mKey == null) { in unregisterForAllProfilingResults()
339 listenersToRemove.add(wrapper); in unregisterForAllProfilingResults()
346 ProfilingRequestCallbackWrapper wrapper = mCallbacks.get(i); in unregisterForAllProfilingResults() local
347 if (listener.equals(wrapper.mListener)) { in unregisterForAllProfilingResults()
405 ProfilingRequestCallbackWrapper wrapper = mCallbacks.get(i); in getOrCreateIProfilingServiceLocked()
406 if (key.equals(wrapper.mKey)) { in getOrCreateIProfilingServiceLocked()
419 } else if (wrapper.mKey != null) { in getOrCreateIProfilingServiceLocked()
429 wrapper.mExecutor.execute(() -> wrapper.mListener.accept( in getOrCreateIProfilingServiceLocked()
/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/services/Car/service/src/com/android/car/audio/
DCarAudioContext.java443 AudioAttributesWrapper wrapper = getAudioAttributeWrapperFromUsage(usage); in getLegacyContextForUsage() local
444 return AUDIO_ATTRIBUTE_TO_CONTEXT.getOrDefault(wrapper, INVALID); in getLegacyContextForUsage()
452 AudioAttributesWrapper wrapper = in evaluateAudioAttributesToDuck() local
454 wrappers.add(wrapper); in evaluateAudioAttributesToDuck()
455 int context = AUDIO_ATTRIBUTE_TO_CONTEXT.getOrDefault(wrapper, INVALID); in evaluateAudioAttributesToDuck()
639 AudioAttributesWrapper wrapper = new AudioAttributesWrapper(attributes); in isNotificationAudioAttribute() local
640 return getAudioAttributeWrapperFromUsage(AudioAttributes.USAGE_NOTIFICATION).equals(wrapper) in isNotificationAudioAttribute()
642 .equals(wrapper); in isNotificationAudioAttribute()
646 AudioAttributesWrapper wrapper = new AudioAttributesWrapper(attributes); in isCriticalAudioAudioAttribute() local
647 return getAudioAttributeWrapperFromUsage(AudioAttributes.USAGE_EMERGENCY).equals(wrapper) in isCriticalAudioAudioAttribute()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/safetycenter/
DSafetyCenterManagerWrapperTest.kt40 lateinit var wrapper: SafetyCenterManagerWrapper variable in com.android.healthconnect.controller.tests.safetycenter.SafetyCenterManagerWrapperTest
45 wrapper = SafetyCenterManagerWrapper() in setUp()
50 assertThat(wrapper.isEnabled(null)).isFalse() in isEnabled_whenContextNull_returnsFalse()
56 assertThat(wrapper.isEnabled(mockContext)).isFalse() in isEnabled_whenSystemServiceNull_returnsFalse()
79 wrapper.setSafetySourceData( in setSafetySourceData_callsSafetyCenterManager()

12345678