/cts/tests/app/src/android/app/cts/ |
D | NotificationChannelTest.java | 41 NotificationChannel channel = in testDescribeContents() local 43 assertEquals(expected, channel.describeContents()); in testDescribeContents() 47 NotificationChannel channel = in testConstructor() local 49 assertEquals("1", channel.getId()); in testConstructor() 50 assertEquals("one", channel.getName()); in testConstructor() 51 assertEquals(null, channel.getDescription()); in testConstructor() 52 assertEquals(false, channel.canBypassDnd()); in testConstructor() 53 assertEquals(false, channel.shouldShowLights()); in testConstructor() 54 assertEquals(false, channel.shouldVibrate()); in testConstructor() 55 assertEquals(null, channel.getVibrationPattern()); in testConstructor() [all …]
|
D | NotificationManagerTest.java | 1175 final NotificationChannel channel = in testCreateChannelGroup() local 1177 channel.setGroup(ncg.getId()); in testCreateChannelGroup() 1182 mNotificationManager.createNotificationChannel(channel); in testCreateChannelGroup() 1190 assertEquals(channel.getId(), ncgs.get(0).getChannels().get(0).getId()); in testCreateChannelGroup() 1200 final NotificationChannel channel = in testGetChannelGroup() local 1202 channel.setGroup(ncg.getId()); in testGetChannelGroup() 1206 mNotificationManager.createNotificationChannel(channel); in testGetChannelGroup() 1213 assertEquals(channel.getId(), actual.getChannels().get(0).getId()); in testGetChannelGroup() 1220 final NotificationChannel channel = in testGetChannelGroups() local 1222 channel.setGroup(ncg2.getId()); in testGetChannelGroups() [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/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/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/omapi/src/android/omapi/cts/ |
D | OmapiTest.java | 343 Channel channel = null; in testOpenBasicChannelNullAid() local 347 channel = session.openBasicChannel(null, (byte) 0x00); in testOpenBasicChannelNullAid() 349 if (channel != null) channel.close(); in testOpenBasicChannelNullAid() 353 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNullAid() 355 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNullAid() 373 Channel channel = null; in testOpenBasicChannelNonNullAid() local 377 channel = session.openBasicChannel(SELECTABLE_AID, (byte) 0x00); in testOpenBasicChannelNonNullAid() 379 if (channel != null) channel.close(); in testOpenBasicChannelNonNullAid() 383 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNonNullAid() 385 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNonNullAid() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | PostMessageTest.java | 177 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() local 178 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testMessageChannel() 184 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE + i)); in testMessageChannel() 186 channel[0].setWebMessageCallback(new WebMessagePort.WebMessageCallback() { in testMessageChannel() 215 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testClose() local 216 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testClose() 220 channel[0].close(); in testClose() 221 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE)); in testClose() 260 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testReceiveMessagePort() local 261 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testReceiveMessagePort() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DynamicsProcessingTest.java | 145 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_1ParametersChannel() local 147 final float inputGain = channel.getInputGain(); in test1_1ParametersChannel() 237 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_6Channel_perStage() local 333 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_7Channel_perBand() local 401 Channel channel = mDP.getChannelByChannelIndex(TEST_CHANNEL_INDEX); in test1_8Channel_setAllChannelsTo() local 407 channel.setPreEq(preEq); in test1_8Channel_setAllChannelsTo() 413 channel.setMbc(mbc); in test1_8Channel_setAllChannelsTo() 419 channel.setPostEq(postEq); in test1_8Channel_setAllChannelsTo() 423 channel.setLimiter(limiter); in test1_8Channel_setAllChannelsTo() 425 mDP.setAllChannelsTo(channel); in test1_8Channel_setAllChannelsTo() [all …]
|
D | LocalMediaProjectionService.java | 73 final NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in startForeground() local 75 channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); in startForeground() 79 notificationManager.createNotificationChannel(channel); in startForeground()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | WaveScopeView.java | 175 for(int channel = 0; channel < mNumChannels; channel++) { in onDraw() 176 drawChannel16(canvas, mPCM16Buffer, mNumFrames, mNumChannels, channel, yOffset); in onDraw() 182 for(int channel = 0; channel < mNumChannels; channel++) { in onDraw() 183 … drawChannelFloat(canvas, mPCMFloatBuffer, mNumFrames, mNumChannels, channel, yOffset); in onDraw()
|
/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()
|
D | SensorTestCases.cpp | 176 int32_t channel; in testDirectReport() local 177 channel = mManager->createDirectChannel(*mem); in testDirectReport() 178 ASSERT_GT(channel, 0); in testDirectReport() 186 eventToken = mManager->configureDirectReport(sensor, channel, rateLevel); in testDirectReport() 241 mManager->configureDirectReport(sensor, channel, ASENSOR_DIRECT_RATE_STOP); in testDirectReport() 242 mManager->destroyDirectChannel(channel); in testDirectReport()
|
D | SensorTest.h | 60 void destroyDirectChannel(int channel); 61 int configureDirectReport(TestSensor sensor, int channel, int rateLevel);
|
/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/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/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/ |
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/tests/framework/base/windowmanager/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/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | LocalMediaProjectionService.java | 73 final NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in startForeground() local 75 channel.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE); in startForeground() 79 notificationManager.createNotificationChannel(channel); in startForeground()
|
/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()
|
/cts/tests/sensor/sensorratepermission/DirectReportAPI30/src/android/sensorratepermission/cts/directreportapi30/ |
D | DirectReportAPI30Test.java | 150 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in testSamplingRateMicToggleOffOnOff() local 151 int token = channel.configure(s, SensorDirectChannel.RATE_VERY_FAST); in testSamplingRateMicToggleOffOnOff() 169 channel.configure(s, SensorDirectChannel.RATE_STOP); in testSamplingRateMicToggleOffOnOff() 173 channel.close(); in testSamplingRateMicToggleOffOnOff()
|
/cts/tests/tests/systemui/AudioRecorderTestApp_Base/src/android/systemui/cts/audiorecorder/base/ |
D | BaseAudioRecorderService.java | 108 final NotificationChannel channel = in createChannel() local 115 manager.createNotificationChannel(channel); in createChannel()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString() 62 if (channel == null) continue; in buildErrorString() 64 err += "\n\t\t" + channel; in buildErrorString()
|
/cts/tests/sensor/sensorratepermission/DebuggableAPI31/src/android/sensorratepermission/cts/debuggableapi31/ |
D | DebuggableAPI31Test.java | 108 SensorDirectChannel channel = mSensorManager.createDirectChannel(hardwareBuffer); in testDirectChannel() local 109 channel.configure(s, rateLevel); in testDirectChannel()
|