/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationChannelTest.java | 57 NotificationChannel channel = in testDescribeContents() local 59 assertEquals(expected, channel.describeContents()); in testDescribeContents() 64 NotificationChannel channel = in testConstructor() local 66 assertEquals("1", channel.getId()); in testConstructor() 67 assertEquals("one", channel.getName().toString()); in testConstructor() 68 assertEquals(null, channel.getDescription()); in testConstructor() 69 assertEquals(false, channel.canBypassDnd()); in testConstructor() 70 assertEquals(false, channel.shouldShowLights()); in testConstructor() 71 assertEquals(false, channel.shouldVibrate()); in testConstructor() 72 assertEquals(null, channel.getVibrationPattern()); in testConstructor() [all …]
|
D | NotificationManagerTest.java | 532 final NotificationChannel channel = in testCreateChannelGroup() local 534 channel.setGroup(ncg.getId()); in testCreateChannelGroup() 539 mNotificationManager.createNotificationChannel(channel); in testCreateChannelGroup() 547 assertEquals(channel.getId(), ncgs.get(0).getChannels().get(0).getId()); in testCreateChannelGroup() 558 final NotificationChannel channel = in testGetChannelGroup() local 560 channel.setGroup(ncg.getId()); in testGetChannelGroup() 564 mNotificationManager.createNotificationChannel(channel); in testGetChannelGroup() 571 assertEquals(channel.getId(), actual.getChannels().get(0).getId()); in testGetChannelGroup() 579 final NotificationChannel channel = in testGetChannelGroups() local 581 channel.setGroup(ncg2.getId()); in testGetChannelGroups() [all …]
|
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/ |
D | AccessControlTest.java | 268 Channel channel = null; in testSelectableAid() local 273 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid() 274 assertNotNull("Null Channel", channel); in testSelectableAid() 275 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid() 281 if (channel != null) channel.close(); in testSelectableAid() 296 Channel channel = null; in testUnauthorisedAid() local 302 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid() 308 if (channel != null) channel.close(); in testUnauthorisedAid() 323 Channel channel = null; in testTransmitAPDU() local 328 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU() [all …]
|
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/ |
D | AccessControlTest.java | 270 Channel channel = null; in testSelectableAid() local 275 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid() 276 assertNotNull("Null Channel", channel); in testSelectableAid() 277 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid() 283 if (channel != null) channel.close(); in testSelectableAid() 298 Channel channel = null; in testUnauthorisedAid() local 304 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid() 310 if (channel != null) channel.close(); in testUnauthorisedAid() 325 Channel channel = null; in testTransmitAPDU() local 330 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU() [all …]
|
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/ |
D | AccessControlTest.java | 267 Channel channel = null; in testSelectableAid() local 272 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid() 273 assertNotNull("Null Channel", channel); in testSelectableAid() 274 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid() 280 if (channel != null) channel.close(); in testSelectableAid() 295 Channel channel = null; in testUnauthorisedAid() local 301 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid() 307 if (channel != null) channel.close(); in testUnauthorisedAid() 322 Channel channel = null; in testTransmitAPDU() local 327 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU() [all …]
|
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 345 Channel channel = null; in testOpenBasicChannelNullAid() local 349 channel = session.openBasicChannel(null, (byte) 0x00); in testOpenBasicChannelNullAid() 351 if (channel != null) channel.close(); in testOpenBasicChannelNullAid() 355 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNullAid() 357 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNullAid() 375 Channel channel = null; in testOpenBasicChannelNonNullAid() local 379 channel = session.openBasicChannel(SELECTABLE_AID, (byte) 0x00); in testOpenBasicChannelNonNullAid() 381 if (channel != null) channel.close(); in testOpenBasicChannelNonNullAid() 385 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNonNullAid() 387 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNonNullAid() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | PostMessageTest.java | 205 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() local 206 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testMessageChannel() 212 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE + i)); in testMessageChannel() 214 channel[0].setWebMessageCallback(new WebMessagePort.WebMessageCallback() { in testMessageChannel() 241 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testClose() local 242 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testClose() 246 channel[0].close(); in testClose() 247 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE)); in testClose() 285 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testReceiveMessagePort() local 286 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testReceiveMessagePort() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothLeBroadcastChannelTest.java | 109 BluetoothLeBroadcastChannel channel = in createBroadcastChannelFromBuilder() local 115 assertTrue(channel.isSelected()); in createBroadcastChannelFromBuilder() 116 assertEquals(TEST_CHANNEL_INDEX, channel.getChannelIndex()); in createBroadcastChannelFromBuilder() 117 assertEquals(codecMetadata, channel.getCodecMetadata()); in createBroadcastChannelFromBuilder() 118 assertEquals(TEST_AUDIO_LOCATION_FRONT_LEFT, channel.getCodecMetadata().getAudioLocation()); in createBroadcastChannelFromBuilder() 119 assertNotNull(channel.getCodecMetadata()); in createBroadcastChannelFromBuilder() 120 assertEquals(codecMetadata, channel.getCodecMetadata()); in createBroadcastChannelFromBuilder() 133 BluetoothLeBroadcastChannel channel = in createBroadcastChannelFromCopy() local 140 new BluetoothLeBroadcastChannel.Builder(channel).build(); in createBroadcastChannelFromCopy() 147 assertEquals(channel.getCodecMetadata(), channelCopy.getCodecMetadata()); in createBroadcastChannelFromCopy()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | DynamicsProcessingTest.java | 155 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_1ParametersChannel() local 157 final float inputGain = channel.getInputGain(); in test1_1ParametersChannel() 252 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_6Channel_perStage() local 349 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_7Channel_perBand() local 418 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_8Channel_setAllChannelsTo() local 424 channel.setPreEq(preEq); in test1_8Channel_setAllChannelsTo() 430 channel.setMbc(mbc); in test1_8Channel_setAllChannelsTo() 436 channel.setPostEq(postEq); in test1_8Channel_setAllChannelsTo() 440 channel.setLimiter(limiter); in test1_8Channel_setAllChannelsTo() 442 mDP.setAllChannelsTo(channel); in test1_8Channel_setAllChannelsTo() [all …]
|
/cts/tests/app/FgsStartTest/helper/src/android/app/fgsstarttesthelper/ |
D | FgsTestCommon.java | 36 final var channel = getNotificationChannelId(context); in ensureNotificationChannel() local 39 new NotificationChannel(channel, channel, in ensureNotificationChannel() 41 return channel; in ensureNotificationChannel()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0451/ |
D | poc.cpp | 86 int channel = 0; in validateQmfDomainBounds() local 91 for (channel = 0; channel < hSbrDecoder->pSbrElement[element]->nChannels; in validateQmfDomainBounds() 92 ++channel) { in validateQmfDomainBounds() 93 qmfDomainInChPtr = &hSbrDecoder->pQmfDomain->QmfDomainIn[absChOffset + channel]; in validateQmfDomainBounds() 95 &hSbrDecoder->pQmfDomain->QmfDomainOut[absChOffset + channel]; in validateQmfDomainBounds()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/ |
D | DialerShowsHunOnIncomingCallActivity.java | 66 NotificationChannel channel = in update() local 68 channel.enableLights(true); in update() 69 channel.enableVibration(true); in update() 70 channel.setShowBadge(false); in update() 71 notificationManager.createNotificationChannel(channel); in update()
|
/cts/tests/sensor/jni/ |
D | SensorTest.cpp | 43 for (int channel : mSensorDirectChannel) { in ~TestSensorManager() local 44 destroyDirectChannel(channel); in ~TestSensorManager() 90 void TestSensorManager::destroyDirectChannel(int channel) { in destroyDirectChannel() argument 94 ASensorManager_destroyDirectChannel(mManager, channel); in destroyDirectChannel() 95 mSensorDirectChannel.erase(channel); in destroyDirectChannel() 99 int TestSensorManager::configureDirectReport(TestSensor sensor, int channel, int rate) { in configureDirectReport() argument 103 return ASensorManager_configureDirectReport(mManager, sensor, channel, rate); in configureDirectReport()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | OverlayTestService.java | 73 String channel = Components.Notifications.CHANNEL_MAIN; in startForeground() local 76 new NotificationChannel(channel, channel, NotificationManager.IMPORTANCE_DEFAULT)); in startForeground() 78 new Notification.Builder(this, channel) in startForeground()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2022_20485.java | 130 NotificationChannel channel = in testLongStringFieldsNotificationChannel() local 137 parentId.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 141 id.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 146 name.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 151 desc.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 156 group.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 161 conversationId.set(channel, mLongString); in testLongStringFieldsNotificationChannel() 164 channel.writeToParcel(parcel, 0); in testLongStringFieldsNotificationChannel() 189 NotificationChannel channel = in testLongAlertFields() local 195 channel.setVibrationPattern(new long[INPUT_VIBRATION_LENGTH]); in testLongAlertFields() [all …]
|
D | TestForegroundService.java | 75 final NotificationChannel channel = new NotificationChannel( in createNotificationChannelId() local 77 channel.setDescription(description); in createNotificationChannelId() 78 nm.createNotificationChannel(channel); in createNotificationChannelId()
|
/cts/tests/tests/app.usage/TestApp1/src/android/app/usage/cts/test1/ |
D | TestService.java | 45 final NotificationChannel channel = new NotificationChannel(channelId, channelName, in createNotificationChannel() local 47 channel.setDescription(channelDescription); in createNotificationChannel() 48 getNotificationManager().createNotificationChannel(channel); in createNotificationChannel()
|
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/ |
D | TestService.java | 43 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance); in getNotificationChannelId() local 44 channel.setDescription(description); in getNotificationChannelId() 47 nm.createNotificationChannel(channel); in getNotificationChannelId()
|
/cts/hostsidetests/systemui/app/src/android/systemui/cts/ |
D | TestNotificationActivity.java | 61 NotificationChannel channel = new NotificationChannel(notificationChannelId, "SystemUi Cts", in doShowNotification() local 63 channel.setDescription("SystemUi Cts Channel"); in doShowNotification() 64 nm.createNotificationChannel(channel); in doShowNotification()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | TestLogService.java | 112 ClientChannel channel = mChannels.get(logtag); in record() local 113 channel.mResults.put(key, value); in record() 114 if (key.equals(channel.mStopKey)) { in record() 115 channel.mLatch.countDown(); in record()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | BootCompletedFgs.java | 91 final NotificationChannel channel = new NotificationChannel( in createNotificationChannelId() local 93 channel.setDescription(description); in createNotificationChannelId() 94 nm.createNotificationChannel(channel); in createNotificationChannelId()
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | LocalMediaProjectionService.java | 77 final NotificationChannel channel = new NotificationChannel(getNotificationChannelId(), in startForeground() local 79 channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); in startForeground() 83 notificationManager.createNotificationChannel(channel); in startForeground()
|
/cts/hostsidetests/os/test-apps/InattentiveSleepTestApp/src/android/os/inattentivesleeptests/ |
D | PartialWakeLockService.java | 44 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate() local 46 notificationManager.createNotificationChannel(channel); in onCreate()
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/util/ |
D | WallpaperTestUtils.java | 94 .mapToInt(channel -> Math.abs(channel.apply(pixel1) - channel.apply(pixel2))) in isSimilar()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorRatePermissionDirectReportTestHelper.java | 164 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in getSensorEvents() local 165 int token = channel.configure(mSensor, rateLevel); in getSensorEvents() 167 channel.configure(mSensor, SensorDirectChannel.RATE_STOP); in getSensorEvents() 170 channel.close(); in getSensorEvents()
|