Searched refs:ids (Results 1 - 25 of 43) sorted by relevance

12

/packages/apps/OMA-DM/engine/dmlib/linux_java/samples/unittest/src/
H A Ddmt_stress.cc145 pthread_t ids[ c_nThreads ]; local
149 int nRes = pthread_create( &ids[i], 0, ThreadProc, (void*)i );
159 pthread_join( ids[i], NULL );
171 pid_t ids[ c_nProcesses ] ;
175 ids[g_nProcess] = fork();
177 if ( ids[g_nProcess] == -1 ){
182 if ( !ids[g_nProcess] ){
192 waitpid( ids[i], &nStat, 0 );
/packages/apps/Browser/src/com/android/browser/
H A DOpenDownloadReceiver.java48 long ids[] = intent.getLongArrayExtra(
50 if (ids == null || ids.length == 0) {
54 final long id = ids[0];
H A DTabControl.java286 * position sorted array of tab ids
296 long[] ids = new long[numTabs];
301 ids[i++] = tab.getId();
309 "Error saving state, duplicate tab ids!");
313 ids[i++] = -1;
319 outState.putLongArray(POSITIONS, ids);
336 final long[] ids = (inState == null) ? null : inState.getLongArray(POSITIONS);
337 if (ids == null) {
346 for (long id : ids) {
383 long[] ids
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDownloadManagerWrapper.java52 public void remove(final long... ids) { argument
55 mDownloadManager.remove(ids);
63 Log.e(TAG, "Can't remove files with ID " + ids + " from download manager", e);
/packages/apps/Camera2/src/com/android/camera/
H A DMultiToggleImageButton.java42 * image ids (e.g. imageIds="@array/camera_flashmode_icons").
281 * Override the image ids of this button.
284 TypedArray ids = null;
286 ids = getResources().obtainTypedArray(resId);
287 mImageIds = new int[ids.length()];
288 for (int i = 0; i < ids.length(); i++) {
289 mImageIds[i] = ids.getResourceId(i, 0);
292 if (ids != null) {
293 ids.recycle();
302 TypedArray ids
[all...]
/packages/apps/Browser/src/com/android/browser/widget/
H A DBookmarkThumbnailWidgetProvider.java53 public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) { argument
54 performUpdate(context, mngr, ids);
77 int[] ids = wm.getAppWidgetIds(getComponentName(context));
78 BookmarkThumbnailWidgetService.removeOrphanedStates(context, ids);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadReceiver.java131 final long[] ids = intent.getLongArrayExtra(
133 sendNotificationClickedIntent(context, ids);
192 private void sendNotificationClickedIntent(Context context, long[] ids) { argument
198 Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, ids[0]);
206 Log.w(TAG, "Missing details for download " + ids[0]);
222 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids);
232 appIntent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS, ids);
234 if (ids.length == 1) {
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsDatabaseHelperTest.java71 final Set<Long> ids = Sets.newHashSet();
72 ids.add(a1id);
73 ids.add(a2id);
74 ids.add(a3id);
75 ids.add(a4id);
76 ids.add(a5id);
77 assertEquals(5, ids.size());
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalAlbum.java163 GalleryApp application, boolean isImage, ArrayList<Integer> ids) {
165 MediaItem[] result = new MediaItem[ids.size()];
166 if (ids.isEmpty()) return result;
167 int idLow = ids.get(0);
168 int idHigh = ids.get(ids.size() - 1);
194 int n = ids.size();
200 // Match id with the one on the ids list.
201 if (ids.get(i) > id) {
205 while (ids
162 getMediaItemById( GalleryApp application, boolean isImage, ArrayList<Integer> ids) argument
[all...]
H A DSecureAlbum.java134 ArrayList<Integer> ids = new ArrayList<Integer>();
135 if (minId == Integer.MAX_VALUE || maxId == Integer.MIN_VALUE) return ids;
140 if (cursor == null) return ids;
143 ids.add(cursor.getInt(0));
148 return ids;
168 // Query existing ids.
H A DLocalSource.java221 ArrayList<Integer> ids = new ArrayList<Integer>();
223 ids.add(startId);
232 ids.add(curId);
236 mApplication, isImage, ids);
/packages/apps/Camera/src/com/android/camera/
H A DIconListPreference.java86 int ids[] = new int[n];
88 ids[i] = array.getResourceId(i, 0);
91 return ids;
/packages/apps/LegacyCamera/src/com/android/camera/
H A DIconListPreference.java79 int ids[] = new int[n];
81 ids[i] = array.getResourceId(i, 0);
84 return ids;
/packages/apps/Dialer/tests/src/com/android/dialer/
H A DPhoneCallDetailsHelperTest.java283 private void assertCallTypeIconsEquals(int... ids) { argument
284 assertEquals(ids.length, mViews.callTypeIcons.getCount());
285 for (int index = 0; index < ids.length; ++index) {
286 int id = ids[index];
297 private void assertCallTypeIconsEqualsPlusOverflow(String overflowText, int... ids) { argument
298 assertEquals(ids.length, mViews.callTypeIcons.getCount());
299 for (int index = 0; index < ids.length; ++index) {
300 int id = ids[index];
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfileData.java75 int[] ids = new int[stack.length];
77 ids[i] = nameToId(stack[i]);
86 int id = ids[i];
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DMenuExecutor.java215 ArrayList<Path> ids = mSelectionManager.getSelected(true);
216 Utils.assertTrue(ids.size() == 1);
217 return ids.get(0);
335 ArrayList<Path> ids = mSelectionManager.getSelected(false);
340 mDialog = createProgressDialog(activity, title, ids.size());
345 MediaOperation operation = new MediaOperation(action, ids, listener);
351 ArrayList<Path> ids = new ArrayList<Path>(1);
352 ids.add(targetPath);
354 MediaOperation operation = new MediaOperation(action, ids, null);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DSettingsActivity.java278 * Returns an array of ids/time zones. This returns a double indexed array
279 * of ids and time zones for Calendar. It is an inefficient method and
283 * @return double array of tz ids and tz names
287 String[] ids = resources.getStringArray(R.array.timezone_values);
289 int minLength = ids.length;
290 if (ids.length != labels.length) {
292 LogUtils.e("Timezone ids and labels have different length!");
296 timezones.add(new TimeZoneRow(ids[i], labels[i]));
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertService.java491 StringBuilder ids = new StringBuilder();
494 ids.append(info.eventId);
495 ids.append(",");
500 ids.append(info.eventId);
501 ids.append(",");
504 if (ids.length() > 0 && ids.charAt(ids.length() - 1) == ',') {
505 ids.setLength(ids
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorColorBorderTabletUI.java62 private int[] ids = { field in class:EditorColorBorderTabletUI
168 mColorButton = new Button[ids.length];
169 for (int i = 0; i < ids.length; i++) {
170 mColorButton[i] = (Button) lp.findViewById(ids[i]);
248 for (int i = 0; i < ids.length; i++) {
H A DEditorDrawTabletUI.java66 private int[] ids = { field in class:EditorDrawTabletUI
173 mColorButton = new Button[ids.length];
174 for (int i = 0; i < ids.length; i++) {
175 mColorButton[i] = (Button) lp.findViewById(ids[i]);
270 for (int i = 0; i < ids.length; i++) {
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java747 IntArray ids = mUnboundTextures;
748 if (ids.size() > 0) {
749 mGLId.glDeleteTextures(mGL, ids.size(), ids.getInternalArray(), 0);
750 ids.clear();
753 ids = mDeleteBuffers;
754 if (ids.size() > 0) {
755 mGLId.glDeleteBuffers(mGL, ids.size(), ids.getInternalArray(), 0);
756 ids
[all...]
H A DGLES20Canvas.java806 IntArray ids = mUnboundTextures;
808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0);
809 ids.clear();
812 ids = mDeleteBuffers;
813 if (ids.size() > 0) {
814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0);
815 ids.clear();
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java806 IntArray ids = mUnboundTextures;
808 mGLId.glDeleteTextures(null, ids.size(), ids.getInternalArray(), 0);
809 ids.clear();
812 ids = mDeleteBuffers;
813 if (ids.size() > 0) {
814 mGLId.glDeleteBuffers(null, ids.size(), ids.getInternalArray(), 0);
815 ids.clear();
/packages/apps/Mms/src/com/android/mms/data/
H A DRecipientIdCache.java105 String[] ids = spaceSepIds.split(" ");
106 for (String id : ids) {
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationSelectionSet.java203 private void removeAll(Collection<Long> ids) { argument
209 for (Long id : ids) {
343 // At this point batchConversationToCheck contains the conversation ids for the
347 // This set contains the conversation ids that are in the conversation cursor

Completed in 801 milliseconds

12