Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 37) 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.java163 final NotificationChannel channel = in testCreateChannelGroup() local
165 channel.setGroup(ncg.getId()); in testCreateChannelGroup()
170 mNotificationManager.createNotificationChannel(channel); in testCreateChannelGroup()
178 assertEquals(channel.getId(), ncgs.get(0).getChannels().get(0).getId()); in testCreateChannelGroup()
188 final NotificationChannel channel = in testGetChannelGroup() local
190 channel.setGroup(ncg.getId()); in testGetChannelGroup()
194 mNotificationManager.createNotificationChannel(channel); in testGetChannelGroup()
201 assertEquals(channel.getId(), actual.getChannels().get(0).getId()); in testGetChannelGroup()
206 final NotificationChannel channel = in testDeleteChannelGroup() local
208 channel.setGroup(ncg.getId()); in testDeleteChannelGroup()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/
DAccessControlTest.java245 Channel channel = null; in testSelectableAid() local
253 channel = session.openLogicalChannel(aid, (byte)0x00); in testSelectableAid()
254 assertNotNull("Null Channel", channel); in testSelectableAid()
255 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
264 if (channel != null) in testSelectableAid()
265 channel.close(); in testSelectableAid()
273 Channel channel = null; in testUnauthorisedAid() local
282 channel = session.openLogicalChannel(aid, (byte)0x00); in testUnauthorisedAid()
289 if (channel != null) in testUnauthorisedAid()
290 channel.close(); in testUnauthorisedAid()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java243 Channel channel = null; in testSelectableAid() local
251 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid()
252 assertNotNull("Null Channel", channel); in testSelectableAid()
253 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
262 if (channel != null) in testSelectableAid()
263 channel.close(); in testSelectableAid()
271 Channel channel = null; in testUnauthorisedAid() local
280 channel = session.openLogicalChannel(aid, (byte) 0x00); in testUnauthorisedAid()
287 if (channel != null) in testUnauthorisedAid()
288 channel.close(); in testUnauthorisedAid()
[all …]
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java242 Channel channel = null; in testSelectableAid() local
250 channel = session.openLogicalChannel(aid, (byte) 0x00); in testSelectableAid()
251 assertNotNull("Null Channel", channel); in testSelectableAid()
252 byte[] selectResponse = channel.getSelectResponse(); in testSelectableAid()
261 if (channel != null) in testSelectableAid()
262 channel.close(); in testSelectableAid()
270 Channel channel = null; in testUnauthorisedAid() local
279 channel = session.openLogicalChannel(aid, (byte)0x00); in testUnauthorisedAid()
286 if (channel != null) in testUnauthorisedAid()
287 channel.close(); in testUnauthorisedAid()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java147 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testMessageChannel() local
148 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testMessageChannel()
156 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE + i)); in testMessageChannel()
158 channel[0].setWebMessageCallback(new WebMessagePort.WebMessageCallback() { in testMessageChannel()
178 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testClose() local
179 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testClose()
185 channel[0].close(); in testClose()
186 channel[0].postMessage(new WebMessage(WEBVIEW_MESSAGE)); in testClose()
221 final WebMessagePort[] channel = mOnUiThread.createWebMessageChannel(); in testReceiveMessagePort() local
222 WebMessage message = new WebMessage(WEBVIEW_MESSAGE, new WebMessagePort[]{channel[1]}); in testReceiveMessagePort()
[all …]
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java259 Channel channel = session.openBasicChannel(null, (byte)0x00); in testOpenBasicChannelNullAid() local
261 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNullAid()
263 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNullAid()
265 if (channel != null) { in testOpenBasicChannelNullAid()
266 channel.close(); in testOpenBasicChannelNullAid()
285 Channel channel = session.openBasicChannel(SELECTABLE_AID, (byte)0x00); in testOpenBasicChannelNonNullAid() local
287 assertNull("Basic channel on UICC can be opened", channel); in testOpenBasicChannelNonNullAid()
289 assertNotNull("Basic Channel cannot be opened", channel); in testOpenBasicChannelNonNullAid()
291 if (channel != null) { in testOpenBasicChannelNonNullAid()
292 channel.close(); in testOpenBasicChannelNonNullAid()
[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 …]
DDecoderTestAacDrc.java229 for (int channel = 0; channel < numChannels; channel++) { in checkClipping()
232 filter.apply(decSamples, channel, numChannels); in checkClipping()
/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/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/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/apps/CameraITS/tests/scene1/
Dtest_reprocess_noise_reduction.py91 for channel in range(3):
92 snrs[channel].append(0)
136 for channel in range(3):
137 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/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/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/security/securityPatch/CVE-2017-0333/
Dlocal_poc.h93 uint32_t channel; member
109 uint32_t channel; member
150 uint32_t channel; member
/cts/apps/CtsVerifier/include/colorchecker/
Dtestingimage.h40 int getPixelValue(int row, int column, int channel) const;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java85 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, in showBugreportNotification() local
87 mNotificationManager.createNotificationChannel(channel); in showBugreportNotification()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java363 final NotificationChannel channel = in testTypeNotificationStateChangedAccessibilityEvent() local
367 channel.enableVibration(true); in testTypeNotificationStateChangedAccessibilityEvent()
368 channel.enableLights(true); in testTypeNotificationStateChangedAccessibilityEvent()
369 channel.setBypassDnd(true); in testTypeNotificationStateChangedAccessibilityEvent()
370 notificationManager.createNotificationChannel(channel); in testTypeNotificationStateChangedAccessibilityEvent()
372 notificationManager.getNotificationChannel(channel.getId()); in testTypeNotificationStateChangedAccessibilityEvent()
375 new Notification.Builder(getActivity(), channel.getId()) in testTypeNotificationStateChangedAccessibilityEvent()
424 notificationManager.deleteNotificationChannel(channel.getId()); in testTypeNotificationStateChangedAccessibilityEvent()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java201 final int[] channel = diffStreams[i]; in dumpDiffStreams() local
203 Arrays.stream(channel).sorted().forEachOrdered( in dumpDiffStreams()

12