/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 172 MediaPlayerWrapper wrapper = in testNullControllerLooper() local 174 Assert.assertNull(wrapper); in testNullControllerLooper() 176 wrapper = MediaPlayerWrapperFactory.wrap(mMockContext, mMockController, null); in testNullControllerLooper() 177 Assert.assertNull(wrapper); in testNullControllerLooper() 186 MediaPlayerWrapper wrapper = in testIsReady() local 188 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady() 189 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady() 193 Assert.assertFalse(wrapper.isPlaybackStateReady()); in testIsReady() 197 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady() 201 Assert.assertFalse(wrapper.isMetadataReady()); in testIsReady() [all …]
|
D | BrowserPlayerWrapperTest.java | 170 BrowsedPlayerWrapper wrapper = in testWrap() local 172 wrapper.connect(mConnCb); in testWrap() 179 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testWrap() 185 BrowsedPlayerWrapper wrapper = in testConnect_Successful() local 187 wrapper.connect(mConnCb); in testConnect_Successful() 193 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_SUCCESS), eq(wrapper)); in testConnect_Successful() 199 BrowsedPlayerWrapper wrapper = in testConnect_Suspended() local 201 wrapper.connect(mConnCb); in testConnect_Suspended() 207 verify(mConnCb).run(eq(BrowsedPlayerWrapper.STATUS_CONN_ERROR), eq(wrapper)); in testConnect_Suspended() 216 BrowsedPlayerWrapper wrapper = in testConnect_Failed() local [all …]
|
D | GPMWrapperTest.java | 57 GPMWrapper wrapper = new GPMWrapper(mContext, mMediaController, null); in isMetadataSynced_whenQueueIsNull_returnsFalse() local 59 assertThat(wrapper.isMetadataSynced()).isFalse(); in isMetadataSynced_whenQueueIsNull_returnsFalse() 84 GPMWrapper wrapper = new GPMWrapper(mContext, mMediaController, null); in isMetadataSynced_whenOutOfSync_returnsFalse() local 86 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/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/ |
D | BrowsablePlayerConnector.java | 96 player.connect((int status, BrowsedPlayerWrapper wrapper) -> { in connectToPlayers() argument 105 msg.obj = wrapper; in connectToPlayers() 122 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector() 125 if (!mPendingPlayers.remove(wrapper)) { in BrowsablePlayerConnector() 130 + wrapper.getPackageName()); in BrowsablePlayerConnector() 131 mResults.add(wrapper); in BrowsablePlayerConnector() 135 BrowsedPlayerWrapper wrapper = (BrowsedPlayerWrapper) msg.obj; in BrowsablePlayerConnector() 138 Log.i(TAG, wrapper.getPackageName() + " is not browsable"); in BrowsablePlayerConnector() 139 mPendingPlayers.remove(wrapper); in BrowsablePlayerConnector() 145 Log.i(TAG, "Checking root contents for " + wrapper.getPackageName()); in BrowsablePlayerConnector() [all …]
|
D | MediaPlayerList.java | 224 for (BrowsedPlayerWrapper wrapper : players) { in init() 226 if (!havePlayerId(wrapper.getPackageName())) { in init() 227 mMediaPlayerIds.put(wrapper.getPackageName(), getFreeMediaPlayerId()); in init() 230 d("Adding Browser Wrapper for " + wrapper.getPackageName() + " with id " in init() 231 + mMediaPlayerIds.get(wrapper.getPackageName())); in init() 233 mBrowsablePlayers.put(mMediaPlayerIds.get(wrapper.getPackageName()), wrapper); in init() 235 wrapper.getFolderItems(wrapper.getRootId(), in init() 296 BrowsedPlayerWrapper wrapper = mBrowsablePlayers.get(BLUETOOTH_PLAYER_ID + 1); in getPlayerRoot() local 297 String itemId = wrapper.getRootId(); in getPlayerRoot() 299 wrapper.getFolderItems(itemId, (status, id, results) -> { in getPlayerRoot() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarServiceHelperWrapperUnitTest.java | 84 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/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
D | CameraManagerTest.java | 109 CameraWrapper wrapper = MockCameraFactory.createCameraWrapper(frontCamera, backCamera); in testOpenCamera() local 110 CameraManager.setCameraWrapper(wrapper); in testOpenCamera() 116 Mockito.verify(wrapper, Mockito.never()).open(0); in testOpenCamera() 117 Mockito.verify(wrapper).open(1); in testOpenCamera() 118 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera() 119 Mockito.verify(wrapper, Mockito.never()).release(backCamera); in testOpenCamera() 122 Mockito.verify(wrapper).open(0); in testOpenCamera() 123 Mockito.verify(wrapper).open(1); in testOpenCamera() 124 Mockito.verify(wrapper, Mockito.never()).release(frontCamera); in testOpenCamera() 125 Mockito.verify(wrapper).release(backCamera); in testOpenCamera() [all …]
|
D | MockCameraFactory.java | 49 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/Telephony/src/com/android/phone/ |
D | ImsStateCallbackController.java | 382 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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningModeWrapperProviderTest.java | 69 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/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlFactoryUnitTest.java | 64 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/ |
D | BroadcastReceiverHelpers.java | 36 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/services/Car/service/src/com/android/car/audio/ |
D | CarAudioContext.java | 451 AudioAttributesWrapper wrapper = in getLegacyContextFromInfo() local 453 int context = AUDIO_ATTRIBUTE_TO_CONTEXT.getOrDefault(wrapper, INVALID); in getLegacyContextFromInfo() 467 AudioAttributesWrapper wrapper = in evaluateAudioAttributesToDuck() local 469 wrappers.add(wrapper); in evaluateAudioAttributesToDuck() 470 int context = AUDIO_ATTRIBUTE_TO_CONTEXT.getOrDefault(wrapper, INVALID); in evaluateAudioAttributesToDuck() 634 AudioAttributesWrapper wrapper = new AudioAttributesWrapper(attributes); in isNotificationAudioAttribute() local 635 return getAudioAttributeWrapperFromUsage(AudioAttributes.USAGE_NOTIFICATION).equals(wrapper) in isNotificationAudioAttribute() 637 .equals(wrapper); in isNotificationAudioAttribute() 641 AudioAttributesWrapper wrapper = new AudioAttributesWrapper(attributes); in isCriticalAudioAudioAttribute() local 642 return getAudioAttributeWrapperFromUsage(AudioAttributes.USAGE_EMERGENCY).equals(wrapper) in isCriticalAudioAudioAttribute() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 587 AppBlockingPackageInfoWrapper wrapper = policy.mBlocklistsMap.get(packageName); in searchFromClientPolicyBlocklistsLocked() local 588 if (wrapper != null && wrapper.isMatching && wrapper.info != null) { in searchFromClientPolicyBlocklistsLocked() 599 AppBlockingPackageInfoWrapper wrapper = policy.mAllowlistsMap.get(packageName); in searchFromClientPolicyAllowlistsLocked() local 600 if (wrapper != null && wrapper.isMatching && wrapper.info != null) { in searchFromClientPolicyAllowlistsLocked() 618 private boolean isActivityInMapAndMatching(AppBlockingPackageInfoWrapper wrapper, in isActivityInMapAndMatching() argument 620 if (wrapper == null || !wrapper.isMatching) { in isActivityInMapAndMatching() 626 return wrapper.info.isActivityCovered(className); in isActivityInMapAndMatching() 1050 AppBlockingPackageInfoWrapper wrapper = new AppBlockingPackageInfoWrapper( in getPackageInfoWrapperForUser() local 1052 return wrapper; in getPackageInfoWrapperForUser() 1068 AppBlockingPackageInfoWrapper wrapper = in updateActivityAllowlistAndDenylistMap() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ConnectHelper.java | 48 @NonNull ActionListenerWrapper wrapper, in connectToNetwork() argument 51 mActiveModeWarden.getPrimaryClientModeManager(), result, wrapper, callingUid, in connectToNetwork() local 62 @NonNull ActionListenerWrapper wrapper, in connectToNetwork() argument 67 wrapper.sendFailure(WifiManager.ActionListener.FAILURE_INTERNAL_ERROR); in connectToNetwork() 71 clientModeManager.connectNetwork(result, wrapper, callingUid, packageName); in connectToNetwork()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowLocalBroadcastManager.java | 60 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/modules/NetworkStack/apishim/34/com/android/networkstack/apishim/api34/ |
D | NsdShimImpl.java | 99 final ServiceInfoCallbackWrapper wrapper = new ServiceInfoCallbackWrapper(listener); in registerServiceInfoCallback() local 100 if (null != mCbWrappers.put(listener, wrapper)) { in registerServiceInfoCallback() 103 nsdManager.registerServiceInfoCallback(serviceInfo, executor, wrapper); in registerServiceInfoCallback() 109 final ServiceInfoCallbackWrapper wrapper = mCbWrappers.remove(listener); in unregisterServiceInfoCallback() local 110 if (wrapper == null) { in unregisterServiceInfoCallback() 113 nsdManager.unregisterServiceInfoCallback(wrapper); in unregisterServiceInfoCallback()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/safetycenter/ |
D | SafetyCenterManagerWrapperTest.kt | 40 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()
|
/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 173 public InstrumentedNetworkAgent(NetworkAgentWrapper wrapper, LinkProperties lp, in InstrumentedNetworkAgent() argument 175 this(wrapper, lp, nac, null /* provider */); in InstrumentedNetworkAgent() 178 public InstrumentedNetworkAgent(NetworkAgentWrapper wrapper, LinkProperties lp, in InstrumentedNetworkAgent() argument 180 super(wrapper.mContext, wrapper.mHandlerThread.getLooper(), wrapper.mLogTag, in InstrumentedNetworkAgent() 181 wrapper.mNetworkCapabilities, lp, wrapper.mScore, nac, in InstrumentedNetworkAgent() 182 null != provider ? provider : new NetworkProvider(wrapper.mContext, in InstrumentedNetworkAgent() 183 wrapper.mHandlerThread.getLooper(), PROVIDER_NAME)); in InstrumentedNetworkAgent() 184 mWrapper = wrapper; in InstrumentedNetworkAgent()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallStreamingController.java | 68 private void onConnectedInternal(Call call, TransactionalServiceWrapper wrapper, in onConnectedInternal() argument 75 mTransactionalServiceWrapper = wrapper; in onConnectedInternal() 169 TransactionalServiceWrapper wrapper, Call call) { in getCallStreamingServiceTransaction() argument 170 return new StreamingServiceTransaction(context, wrapper, call); in getCallStreamingServiceTransaction() 180 public StreamingServiceTransaction(Context context, TransactionalServiceWrapper wrapper, in StreamingServiceTransaction() argument 183 mWrapper = wrapper; in StreamingServiceTransaction() 287 TransactionalServiceWrapper wrapper, Call call, TelecomSystem.SyncRoot lock) { in getStartStreamingTransaction() argument 299 callsManager.getContext(), wrapper, call)); in getStartStreamingTransaction() local 395 public CallStreamingServiceConnection(Call call, TransactionalServiceWrapper wrapper, in CallStreamingServiceConnection() argument 398 mWrapper = wrapper; in CallStreamingServiceConnection()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | BaseDraggingActivity.java | 148 ActivityOptionsWrapper wrapper = super.getActivityLaunchOptions(v, item); in getActivityLaunchOptions() local 149 addOnResumeCallback(wrapper.onEndCallback::executeAllAndDestroy); in getActivityLaunchOptions() 150 return wrapper; in getActivityLaunchOptions() 155 ActivityOptionsWrapper wrapper = super.makeDefaultActivityOptions(splashScreenStyle); in makeDefaultActivityOptions() local 156 addOnResumeCallback(wrapper.onEndCallback::executeAllAndDestroy); in makeDefaultActivityOptions() 157 return wrapper; in makeDefaultActivityOptions()
|
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/ |
D | FuzzTest.cpp | 28 using ::android::nn::wrapper::Compilation; 29 using ::android::nn::wrapper::Execution; 30 using ::android::nn::wrapper::Model; 31 using ::android::nn::wrapper::OperandType; 32 using ::android::nn::wrapper::Result; 33 using ::android::nn::wrapper::SymmPerChannelQuantParams; 34 using ::android::nn::wrapper::Type;
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | InputTaskScheduler.java | 207 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/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | _helpers.py | 42 def wrapper(*args, **kwargs): function 59 return wrapper 83 def wrapper(*args, **kwargs): function 91 return wrapper
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/ |
D | LiveDataAdapter.java | 54 SensorDataWrapper wrapper = mLiveData.get(position); in onBindViewHolder() local 55 holder.setFields(wrapper.mName, "", wrapper.mNumber + " " + wrapper.mUnit, false); in onBindViewHolder()
|