Searched refs:id (Results 76 - 100 of 1741) sorted by relevance

1234567891011>>

/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DCarUiResourceLoader.java50 int id = res.getIdentifier(drawableName, DRAWABLE, CAR_UI_PACKAGE);
51 if (id == 0) {
56 return res.getDrawable(id, null);
58 return res.getDrawableForDensity(id, metrics.densityDpi, null);
72 int id = res.getIdentifier(boolName, BOOL, CAR_UI_PACKAGE);
73 if (id == 0) {
77 return res.getBoolean(id);
90 int id = res.getIdentifier(dimenName, DIMEN, CAR_UI_PACKAGE);
91 if (id == 0) {
95 return res.getDimension(id);
[all...]
H A DCarListItemViewHolder.java41 icon = (ImageView) v.findViewById(R.id.icon);
42 iconContainer = (FrameLayout) v.findViewById(R.id.icon_container);
43 title = (TextView) v.findViewById(R.id.title);
44 text = (TextView) v.findViewById(R.id.text);
45 remoteViewsContainer = (FrameLayout) v.findViewById(R.id.remoteviews);
46 ViewStub rightStub = (ViewStub) v.findViewById(R.id.right_item);
49 rightStub.setInflatedId(R.id.right_item);
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
H A DDefaultCarrierConfigService.java49 * files in our assets folder. First we look for a file named after the MCC+MNC of {@code id}
54 public PersistableBundle onLoadConfig(CarrierIdentifier id) { argument
57 if (id == null) {
71 String fileName = "carrier_config_" + id.getMcc() + id.getMnc() + ".xml";
73 config = readConfigFromXml(parser, id);
84 PersistableBundle vendorConfig = readConfigFromXml(vendorInput, id);
98 * parses it into a bundle if its filters match {@code id}. The format of XML bundles is defined
116 * @param id the details of the SIM operator used to filter parts of the document
119 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id) argument
165 checkFilters(XmlPullParser parser, CarrierIdentifier id) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DPhotoAppWidgetProvider.java40 static RemoteViews buildWidget(Context context, int id, Entry entry) { argument
45 return buildStackWidget(context, id, entry);
47 return buildFrameWidget(context, id, entry);
63 for (int id : appWidgetIds) {
64 Entry entry = helper.getEntry(id);
66 RemoteViews views = buildWidget(context, id, entry);
67 appWidgetManager.updateAppWidget(id, views);
69 Log.e(TAG, "cannot load widget: " + id);
92 views.setRemoteAdapter(widgetId, R.id.appwidget_stack_view, intent);
94 views.setEmptyView(R.id
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfileData.java38 public int id; // this is the name of this node, mapped from mNameToId field in class:ProfileData.Node
42 public Node(Node parent, int id) { argument
44 this.id = id;
55 mRoot = new Node(null, -1); // The id of the root node is unused.
66 Integer id = mNameToId.get(name);
67 if (id == null) {
68 id = ++mNextId; // The tool doesn't want id=0, so we start from 1.
69 mNameToId.put(name, id);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
H A DDragAndDropAccessibilityDelegate.java63 // Map cell to id
64 int id = sTempArray[0] + sTempArray[1] * mView.getCountX();
65 return intersectsValidDropTarget(id);
69 * @return the view id of the top left corner of a valid drop region or
72 protected abstract int intersectsValidDropTarget(int id); argument
104 protected void onPopulateEventForVirtualView(int id, AccessibilityEvent event) { argument
105 if (id == INVALID_ID) {
106 throw new IllegalArgumentException("Invalid virtual view id");
112 protected void onPopulateNodeForVirtualView(int id, AccessibilityNodeInfoCompat node) { argument
113 if (id
125 getLocationDescriptionForIconDrop(int id) argument
127 getConfirmationForIconDrop(int id) argument
129 getItemBounds(int id) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DToastBarOperation.java43 * @param menuId res id identifying the menu item tapped; used to determine what action was
125 if (mAction == R.id.delete) {
127 } else if (mAction == R.id.remove_folder) {
129 } else if (mAction == R.id.change_folders) {
131 } else if (mAction == R.id.move_folder) {
133 } else if (mAction == R.id.archive) {
135 } else if (mAction == R.id.report_spam) {
137 } else if (mAction == R.id.mark_not_spam) {
139 } else if (mAction == R.id.mark_not_important) {
141 } else if (mAction == R.id
[all...]
/packages/apps/Dialer/src/com/android/dialer/interactions/
H A DUndemoteOutgoingCallReceiver.java59 final long id = getContactIdFromPhoneNumber(context, number);
60 if (id != NO_CONTACT_FOUND) {
61 undemoteContactWithId(context, id);
68 private void undemoteContactWithId(Context context, long id) { argument
74 PinnedPositions.undemote(context.getContentResolver(), id);
100 final long id = cursor.getLong(0);
101 return id;
/packages/apps/Dialer/src/com/android/dialer/list/
H A DBlockedListSearchAdapter.java52 public void setViewBlocked(ContactListItemView view, Integer id) { argument
53 view.setTag(R.id.block_id, id);
61 view.setTag(R.id.block_id, null);
81 public void onCheckComplete(Integer id) {
82 if (id != null) {
83 setViewBlocked(view, id);
/packages/apps/Dialer/tests/src/com/android/dialer/database/
H A DDatabaseTestUtils.java56 MatrixCursor nameCursor, String number, int id, String displayName) {
57 return constructNewContact(contactCursor, nameCursor, id, number, id, String.valueOf(id),
62 MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey,
75 contactCursor.addRow(new Object[]{id, "", "", number, contactId, lookupKey, displayName,
80 return new ContactNumber(contactId, id, displayName, number, lookupKey, 0, 0);
55 constructNewContactWithDummyIds(MatrixCursor contactCursor, MatrixCursor nameCursor, String number, int id, String displayName) argument
61 constructNewContact(MatrixCursor contactCursor, MatrixCursor nameCursor, int id, String number, int contactId, String lookupKey, String displayName, int photoId, int lastTimeUsed, int timesUsed, int starred, int isSuperPrimary, int inVisibleGroup, int isPrimary, int carrierPresence) argument
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/
H A DDvrDataManagerImplTest.java36 long id = 1;
40 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 10L, 20L));
44 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 20L, 30L));
49 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 30L, 40L));
56 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 10L, 20L));
58 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 10L, 20L));
60 .createTestRecordingWithIdAndPeriod(id++, CHANNEL_ID, 10L, 20L));
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadJobService.java58 final int id = params.getJobId();
61 final DownloadInfo info = DownloadInfo.queryDownloadInfo(this, id);
63 Log.w(TAG, "Odd, no details found for download " + id);
70 mActiveThreads.put(id, thread);
79 final int id = params.getJobId();
83 thread = mActiveThreads.removeReturnOld(id);
90 Helpers.scheduleJob(this, DownloadInfo.queryDownloadInfo(this, id));
H A DOpenHelper.java44 public static boolean startViewIntent(Context context, long id, int intentFlags) { argument
45 final Intent intent = OpenHelper.buildViewIntent(context, id);
47 Log.w(TAG, "No intent built for " + id);
65 private static Intent buildViewIntent(Context context, long id) { argument
71 final Cursor cursor = downManager.query(new DownloadManager.Query().setFilterById(id));
82 Constants.STORAGE_AUTHORITY, String.valueOf(id));
93 intent.putExtra(Intent.EXTRA_REFERRER, getRefererUri(context, id));
94 intent.putExtra(Intent.EXTRA_ORIGINATING_UID, getOriginatingUid(context, id));
103 private static Uri getRefererUri(Context context, long id) { argument
105 ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id),
122 getOriginatingUid(Context context, long id) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoStore.java126 putEntry(entry.id, entry);
208 long id = mDb.insert(Tables.PHOTO_FILES, null, values);
209 if (id != 0) {
211 File target = getFileForPhotoFileId(id);
214 putEntry(entry.id, entry);
215 return id;
240 public void remove(long id) { argument
241 cleanupFile(getFileForPhotoFileId(id));
242 removeEntry(id);
248 private File getFileForPhotoFileId(long id) { argument
257 putEntry(long id, Entry entry) argument
271 removeEntry(long id) argument
283 public final long id; field in class:PhotoStore.Entry
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnSentence.java40 this.id = 0;
51 this.id = headClause.id;
66 this.id = headClause.id;
83 this.id = clause.id;
101 this.id = prev.id;
122 this.id
[all...]
/packages/services/Telephony/tests/src/com/android/phone/tests/
H A DCallDialTest.java58 mLabel = (TextView) findViewById(R.id.label1);
60 mNumber = (EditText) findViewById(R.id.number);
63 ((Button) findViewById(R.id.callButton)).setOnClickListener(this);
64 ((Button) findViewById(R.id.dialButton)).setOnClickListener(this);
65 ((Button) findViewById(R.id.itelephonyCallButton)).setOnClickListener(this);
66 ((Button) findViewById(R.id.itelephonyDialButton)).setOnClickListener(this);
84 int id = view.getId();
85 log("onClick(View " + view + ", id " + id + ")...");
87 switch (id) {
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaSource.java62 public PathId(Path path, int id) { argument
64 this.id = id;
67 public int id; field in class:MediaSource.PathId
71 // and invoke consumer.consume() for each MediaItem with the given id.
92 consumer.consume(pid.id, (MediaItem) obj);
H A DSnailSource.java38 // The only path we accept is "/snail/set/id" and "/snail/item/id"
49 int id = mMatcher.getIntVar(0);
56 // Registers a new SnailAlbum containing a SnailItem and returns the id of
58 // with the id by getSetPath and getItemPath().
63 public static Path getSetPath(int id) { argument
64 return Path.fromString("/snail/set").getChild(id);
67 public static Path getItemPath(int id) { argument
68 return Path.fromString("/snail/item").getChild(id);
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMediaCacheManager.java26 * Manages a set of media caches by id.
49 public synchronized MediaCache<?> getOrCreateMediaCacheById(final int id) { argument
50 MediaCache<?> cache = mCaches.get(id);
52 cache = createMediaCacheById(id);
54 mCaches.put(id, cache);
68 protected abstract MediaCache<?> createMediaCacheById(final int id); argument
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DPlainTextEditText.java39 public boolean onTextContextMenuItem(final int id) { argument
40 if (id == android.R.id.paste) {
48 final boolean result = super.onTextContextMenuItem(id);
82 return super.onTextContextMenuItem(id);
/packages/apps/TV/src/com/android/tv/util/
H A DTvTrackInfoUtils.java30 * channelCount} and {@code id} in that precedence.
32 * @param id The track id to match.
38 public static Comparator<TvTrackInfo> createComparator(final String id, final String language, argument
61 boolean rhsIdMatch = rhs.getId().equals(id);
62 boolean lhsIdMatch = lhs.getId().equals(id);
89 * @param id The track id to match.
94 public static TvTrackInfo getBestTrackInfo(List<TvTrackInfo> tracks, String id, String language, argument
99 Comparator<TvTrackInfo> comparator = createComparator(id, languag
[all...]
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DBlockedNumberBackupAgent.java112 if (state.ids.contains(blockedNumber.id)) {
114 deletedBlockedNumbers.remove(blockedNumber.id);
119 state.ids.add(blockedNumber.id);
123 for (int id : deletedBlockedNumbers) {
124 logV("Removing blocked number from backup: " + id);
125 removeFromBackup(backupDataOutput, id);
126 state.ids.remove(id);
139 output.writeEntityHeader(Integer.toString(blockedNumber.id), outputStream.size());
163 private void removeFromBackup(BackupDataOutput output, int id) throws IOException { argument
164 output.writeEntityHeader(Integer.toString(id),
258 final int id; field in class:BlockedNumberBackupAgent.BackedUpBlockedNumber
262 BackedUpBlockedNumber(int id, String originalNumber, String e164Number) argument
[all...]
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DTrampolineActivity.java48 private static final String KEY_ID = "id";
56 final long id = ContentUris.parseId(getIntent().getData());
65 final Cursor cursor = dm.query(new Query().setFilterById(id));
81 Log.d(Constants.TAG, "Found " + id + " with status " + status + ", reason " + reason);
85 sendRunningDownloadClickedBroadcast(id);
91 PausedDialogFragment.show(getFragmentManager(), id, size);
93 sendRunningDownloadClickedBroadcast(id);
99 if (!OpenHelper.startViewIntent(this, id, 0)) {
107 FailedDialogFragment.show(getFragmentManager(), id, reason);
112 private void sendRunningDownloadClickedBroadcast(long id) { argument
120 show(FragmentManager fm, long id, long size) argument
182 show(FragmentManager fm, long id, int reason) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/provider/
H A DContentCache.java44 * Usage examples; id is a String representation of a row id (_id), as it might be retrieved from
51 * Cursor cursor = cache.getCursor(id, projection);
54 * 1. Get a CacheToken: CacheToken token = cache.getToken(id);
56 * 3. Put the cursor in the cache: cache.putCursor(cursor, id, token);
60 * 1. Lock the row in the cache: cache.lock(id);
65 * 4. Unlock the row in the cache: cache.unlock(id);
68 * 1. Lock the row in the cache: cache.lock(id);
70 * 3. Unlock the row in the cache, passing in the new values: cache.unlock(id, values);
99 // A set of locked content id'
187 invalidateTokens(String id) argument
228 add(String id) argument
247 CacheToken(String id) argument
293 CachedCursor(Cursor cursor, ContentCache cache, String id) argument
445 getCacheToken(String id) argument
459 get(String id) argument
475 putCursor(Cursor c, String id, String[] projection, CacheToken token) argument
482 putCursorImpl(Cursor c, String id, String[] projection, CacheToken token) argument
516 getCachedCursor(String id, String[] projection) argument
528 getCachedCursorImpl(String id) argument
538 getMatrixCursor(String id, String[] projection) argument
542 getMatrixCursor(String id, String[] projection, ContentValues values) argument
593 lock(String id) argument
608 unlock(String id) argument
619 unlock(String id, ContentValues values) argument
632 unlockImpl(String id, ContentValues values, boolean wasLocked) argument
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DDebugFragment.java57 final CheckBox enableDebugLoggingView = UiUtilities.getView(view, R.id.debug_logging);
60 final CheckBox enableExchangeLoggingView = UiUtilities.getView(view, R.id.exchange_logging);
61 final CheckBox enableFileLoggingView = UiUtilities.getView(view, R.id.file_logging);
76 UiUtilities.getView(view, R.id.clear_webview_cache).setOnClickListener(this);
77 UiUtilities.getView(view, R.id.clear_migration_state).setOnClickListener(this);
80 UiUtilities.getView(view, R.id.debug_enable_strict_mode);
90 case R.id.debug_logging:
94 case R.id.exchange_logging:
98 case R.id.file_logging:
102 case R.id
[all...]

Completed in 637 milliseconds

1234567891011>>