Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/app/src/android/app/cts/
DNotificationChannelTest.java40 NotificationChannel channel = in testDescribeContents() local
42 assertEquals(expected, channel.describeContents()); in testDescribeContents()
46 NotificationChannel channel = in testConstructor() local
48 assertEquals("1", channel.getId()); in testConstructor()
49 assertEquals("one", channel.getName()); in testConstructor()
50 assertEquals(null, channel.getDescription()); in testConstructor()
51 assertEquals(false, channel.canBypassDnd()); in testConstructor()
52 assertEquals(false, channel.shouldShowLights()); in testConstructor()
53 assertEquals(false, channel.shouldVibrate()); in testConstructor()
54 assertEquals(null, channel.getVibrationPattern()); in testConstructor()
[all …]
DNotificationManagerTest.java647 final NotificationChannel channel = in testCreateChannelGroup() local
649 channel.setGroup(ncg.getId()); in testCreateChannelGroup()
654 mNotificationManager.createNotificationChannel(channel); in testCreateChannelGroup()
662 assertEquals(channel.getId(), ncgs.get(0).getChannels().get(0).getId()); in testCreateChannelGroup()
672 final NotificationChannel channel = in testGetChannelGroup() local
674 channel.setGroup(ncg.getId()); in testGetChannelGroup()
678 mNotificationManager.createNotificationChannel(channel); in testGetChannelGroup()
685 assertEquals(channel.getId(), actual.getChannels().get(0).getId()); in testGetChannelGroup()
692 final NotificationChannel channel = in testGetChannelGroups() local
694 channel.setGroup(ncg2.getId()); in testGetChannelGroups()
[all …]
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java265 Channel channel = null; in testOpenBasicChannelNullAid() local
269 channel = session.openBasicChannel(null, (byte) 0x00); in testOpenBasicChannelNullAid()
271 if (channel != null) channel.close(); in testOpenBasicChannelNullAid()
275 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNullAid()
277 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNullAid()
294 Channel channel = null; in testOpenBasicChannelNonNullAid() local
298 channel = session.openBasicChannel(SELECTABLE_AID, (byte) 0x00); in testOpenBasicChannelNonNullAid()
300 if (channel != null) channel.close(); in testOpenBasicChannelNonNullAid()
304 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNonNullAid()
306 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNonNullAid()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java249 Channel channel = null; in testSelectableAid() local
254 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid()
255 assertNotNull("Null Channel", channel); in testSelectableAid()
256 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
262 if (channel != null) channel.close(); in testSelectableAid()
277 Channel channel = null; in testUnauthorisedAid() local
283 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid()
289 if (channel != null) channel.close(); in testUnauthorisedAid()
304 Channel channel = null; in testTransmitAPDU() local
309 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java250 Channel channel = null; in testSelectableAid() local
255 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid()
256 assertNotNull("Null Channel", channel); in testSelectableAid()
257 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
263 if (channel != null) channel.close(); in testSelectableAid()
278 Channel channel = null; in testUnauthorisedAid() local
284 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid()
290 if (channel != null) channel.close(); in testUnauthorisedAid()
305 Channel channel = null; in testTransmitAPDU() local
310 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/
DAccessControlTest.java252 Channel channel = null; in testSelectableAid() local
257 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid()
258 assertNotNull("Null Channel", channel); in testSelectableAid()
259 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
265 if (channel != null) channel.close(); in testSelectableAid()
280 Channel channel = null; in testUnauthorisedAid() local
286 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid()
292 if (channel != null) channel.close(); in testUnauthorisedAid()
307 Channel channel = null; in testTransmitAPDU() local
312 channel = session.openLogicalChannel(aid, (byte) 0x00); in testTransmitAPDU()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java177 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/
DDynamicsProcessingTest.java145 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 …]
DLocalMediaProjectionService.java73 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/
DWaveScopeView.java175 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/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerShowsHunOnIncomingCallActivity.java66 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/
DSensorTest.cpp43 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()
DSensorTestCases.cpp176 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()
DSensorTest.h60 void destroyDirectChannel(int channel);
61 int configureDirectReport(TestSensor sensor, int channel, int rateLevel);
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java658 int channel = logicalChannel.getChannel(); in testIccTransmitApduLogicalChannel() local
665 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_STATUS, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
680 channel, cla, COMMAND_SELECT, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
697 channel, cla, COMMAND_GET_RESPONSE, p1, p2, p3, data); in testIccTransmitApduLogicalChannel()
706 mTelephonyManager.iccCloseLogicalChannel(channel); in testIccTransmitApduLogicalChannel()
718 int channel = logicalChannel.getChannel(); in testIccTransmitApduLogicalChannelWithInvalidInputs() local
722 int cla = CLA_STATUS | channel; in testIccTransmitApduLogicalChannelWithInvalidInputs()
728 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_STATUS, p1, p2, p3, data); in testIccTransmitApduLogicalChannelWithInvalidInputs()
738 .iccTransmitApduLogicalChannel(channel, cla, COMMAND_SELECT, p1, p2, p3, data); in testIccTransmitApduLogicalChannelWithInvalidInputs()
742 cla = CLA_MANAGE_CHANNEL | channel; in testIccTransmitApduLogicalChannelWithInvalidInputs()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DTestLogService.java112 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/
DLocalMediaProjectionService.java73 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/CameraITS/tests/scene1/
Dtest_reprocess_noise_reduction.py90 for channel in range(3):
91 snrs[channel].append(0)
135 for channel in range(3):
136 pylab.plot(NR_MODES, snrs[channel], "-"+"rgb"[channel]+"o")
Dtest_param_noise_reduction.py76 for channel in range(3):
77 snrs[channel].append(0)
/cts/apps/CameraITS/tools/
Drotation_rig.py61 def set_relay_channel_state(vid, pid, channel, relay_state): argument
72 if channel in VALID_RELAY_CHANNELS and relay_state in VALID_RELAY_COMMANDS:
73 cmd_send(vid, pid, RELAY_SET_CMD + channel + '.' + relay_state + '\r\n')
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java61 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java61 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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java85 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate() local
88 notificationManager.createNotificationChannel(channel); in onCreate()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java89 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate() local
92 notificationManager.createNotificationChannel(channel); in onCreate()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/
Dlocal_poc.h93 uint32_t channel; member
109 uint32_t channel; member
150 uint32_t channel; member

12