Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 51) sorted by relevance

123

/developers/samples/android/common/src/java/com/example/android/common/midi/
DMidiEventScheduler.java40 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument
42 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend()
50 public int count = 0; field in MidiEventScheduler.MidiEvent
53 private MidiEvent(int count) { in MidiEvent() argument
55 data = new byte[count]; in MidiEvent()
58 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument
60 data = new byte[count]; in MidiEvent()
61 System.arraycopy(msg, offset, data, 0, count); in MidiEvent()
62 this.count = count; in MidiEvent()
68 for (int i = 0; i < count; i++) { in toString()
[all …]
DMidiConstants.java90 int count) { in isAllActiveSensing() argument
93 for (int i = 0; i < count; i++) { in isAllActiveSensing()
DMidiDispatcher.java78 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { in onSend() argument
81 receiver.send(msg, offset, count, timestamp); in onSend()
DMidiFramer.java49 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
53 for (int i = 0; i < count; i++) { in onSend()
/developers/samples/android/common/src/java/com/example/android/common/dummydata/
DCheeses.java173 public static ArrayList<String> randomList(int count) { in randomList() argument
178 count = Math.min(count, CHEESES.length); in randomList()
180 while (items.size() < count) { in randomList()
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicViewModel.java189 final int count = mPdfRenderer.getPageCount(); in showPage() local
190 mPageInfo.postValue(new PageInfo(index, count)); in showPage()
192 mNextEnabled.postValue(index + 1 < count); in showPage()
197 final int count; field in PdfRendererBasicViewModel.PageInfo
199 PageInfo(int index, int count) { in PageInfo() argument
201 this.count = count; in PageInfo()
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/
DEasyTextWatcher.java29 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
34 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
/developers/samples/android/common/src/java/com/example/android/common/midi/synth/
DSynthEngine.java70 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
73 if (!MidiConstants.isAllActiveSensing(data, offset, count)) { in onSend()
74 mEventScheduler.getReceiver().send(data, offset, count, in onSend()
82 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
102 logMidiMessage(data, offset, count); in onSend()
156 public void logMidiMessage(byte[] data, int offset, int count) { in logMidiMessage() argument
158 for (int i = 0; i < count; i++) { in logMidiMessage()
172 mFramer.send(event.data, 0, event.count, event.getTimestamp()); in processMidiEvents()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java152 int count; in delete() local
155 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
161 count = builder.table(FeedContract.Entry.TABLE_NAME) in delete()
173 return count; in delete()
184 int count; in update() local
187 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
193 count = builder.table(FeedContract.Entry.TABLE_NAME) in update()
204 return count; in update()
/developers/samples/android/admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/
DTextWatcherWrapper.java37 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
42 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/
DContactsListAdapter.java106 public void onChanged(int position, int count) { in ContactsListAdapter()
108 notifyItemRangeChanged(position + INDEX_OFFSET, count); in ContactsListAdapter()
123 public void onInserted(int position, int count) { in ContactsListAdapter()
124 notifyItemRangeInserted(position + INDEX_OFFSET, count); in ContactsListAdapter()
128 public void onRemoved(int position, int count) { in ContactsListAdapter()
129 notifyItemRangeRemoved(position + INDEX_OFFSET, count); in ContactsListAdapter()
/developers/samples/android/media/MidiScope/Application/src/main/java/com/example/android/midiscope/
DMidiScope.java53 public void onSend(byte[] data, int offset, int count, in onSend() argument
57 mDeviceFramer.send(data, offset, count, timestamp); in onSend()
DLoggingReceiver.java45 public void onSend(byte[] data, int offset, int count, long timestamp) in onSend() argument
55 sb.append(MidiPrinter.formatBytes(data, offset, count)); in onSend()
DMidiPrinter.java62 public static String formatBytes(byte[] data, int offset, int count) { in formatBytes() argument
64 for (int i = 0; i < count; i++) { in formatBytes()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/
DChatListAdapter.java79 public void onInserted(int position, int count) { in ChatListAdapter()
80 notifyItemRangeInserted(position + INDEX_OFFSET, count); in ChatListAdapter()
84 public void onRemoved(int position, int count) { in ChatListAdapter()
85 notifyItemRangeRemoved(position + INDEX_OFFSET, count); in ChatListAdapter()
95 public void onChanged(int position, int count) { in ChatListAdapter()
100 notifyItemRangeChanged(position + INDEX_OFFSET, count); in ChatListAdapter()
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/
DCardEmulationFragment.java55 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument
60 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java235 final int count = mBalls.length; in updatePositions() local
236 for (int i = 0; i < count; i++) { in updatePositions()
263 final int count = mBalls.length; in update() local
266 for (int i = 0; i < count; i++) { in update()
268 for (int j = i + 1; j < count; j++) { in update()
408 final int count = particleSystem.getParticleCount(); in onDraw() local
409 for (int i = 0; i < count; i++) { in onDraw()
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/model/
DMockMovieService.java30 private static long count = 0; field in MockMovieService
158 movie.setId(count); in buildMovieInfo()
171 count++; in incCount()
/developers/samples/android/ui/graphics/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicFragment.kt46 viewModel.pageInfo.observe(viewLifecycleOwner, Observer { (index, count) -> in <lambda>() method
47 activity?.title = getString(R.string.app_name_with_index, index + 1, count) in <lambda>()
DPdfRendererBasicViewModel.kt145 val count = renderer.pageCount in <lambda>() constant
146 _pageInfo.postValue(index to count) in <lambda>()
148 _nextEnabled.postValue(index + 1 < count) in <lambda>()
/developers/samples/android/ui/graphics/PdfRendererBasic/Application/src/androidTest/java/com/example/android/pdfrendererbasic/
DPdfRendererBasicViewModelTest.java46 assertThat(firstInfo.count).isEqualTo(10); in allPages()
56 assertThat(lastInfo.count).isEqualTo(10); in allPages()
/developers/samples/android/content/webview/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/
DSampleTests.java134 int count = 20; in waitForDialog() local
136 while (0 < count) { in waitForDialog()
143 --count; in waitForDialog()
/developers/samples/android/ui/window/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/
DLogFragment.kt79 override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) {} in onCreateView()
81 override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {} in onCreateView()
/developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/common/logger/
DLogFragment.java80 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in onCreateView()
84 public void onTextChanged(CharSequence s, int start, int before, int count) { in onCreateView()
/developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/common/logger/
DLogFragment.java78 public void beforeTextChanged(CharSequence s, int start, int count, int after) {} in onCreateView()
81 public void onTextChanged(CharSequence s, int start, int before, int count) {} in onCreateView()

123