OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MetadataDbHelper
(Results
1 - 12
of
12
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
ActionBatch.java
116
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, mClientId);
117
final ContentValues values =
MetadataDbHelper
.getContentValuesByWordListId(db,
119
final int status = values.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
122
if (
MetadataDbHelper
.STATUS_DOWNLOADING == status) {
128
manager.remove(values.getAsLong(
MetadataDbHelper
.PENDINGID_COLUMN));
130
MetadataDbHelper
.markEntryAsAvailable(db, mWordList.mId, mWordList.mVersion);
131
} else if (
MetadataDbHelper
.STATUS_AVAILABLE != status) {
212
final int status = mWordListValues.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
213
if (
MetadataDbHelper
.STATUS_DOWNLOADING != status) {
214
final String id = mWordListValues.getAsString(
MetadataDbHelper
.WORDLISTID_COLUMN)
[
all
...]
MetadataHandler.java
49
final int localeColumn = results.getColumnIndex(
MetadataDbHelper
.LOCALE_COLUMN);
50
final int typeColumn = results.getColumnIndex(
MetadataDbHelper
.TYPE_COLUMN);
52
results.getColumnIndex(
MetadataDbHelper
.DESCRIPTION_COLUMN);
53
final int idIndex = results.getColumnIndex(
MetadataDbHelper
.WORDLISTID_COLUMN);
54
final int updateIndex = results.getColumnIndex(
MetadataDbHelper
.DATE_COLUMN);
55
final int fileSizeIndex = results.getColumnIndex(
MetadataDbHelper
.FILESIZE_COLUMN);
56
final int checksumIndex = results.getColumnIndex(
MetadataDbHelper
.CHECKSUM_COLUMN);
58
results.getColumnIndex(
MetadataDbHelper
.LOCAL_FILENAME_COLUMN);
60
results.getColumnIndex(
MetadataDbHelper
.REMOTE_FILENAME_COLUMN);
61
final int versionIndex = results.getColumnIndex(
MetadataDbHelper
.VERSION_COLUMN)
[
all
...]
WordListMetadata.java
29
public final int mType; // Type, as of
MetadataDbHelper
#TYPE_*
75
final String id = values.getAsString(
MetadataDbHelper
.WORDLISTID_COLUMN);
76
final Integer type = values.getAsInteger(
MetadataDbHelper
.TYPE_COLUMN);
77
final String description = values.getAsString(
MetadataDbHelper
.DESCRIPTION_COLUMN);
78
final Long lastUpdate = values.getAsLong(
MetadataDbHelper
.DATE_COLUMN);
79
final Long fileSize = values.getAsLong(
MetadataDbHelper
.FILESIZE_COLUMN);
80
final String checksum = values.getAsString(
MetadataDbHelper
.CHECKSUM_COLUMN);
81
final String localFilename = values.getAsString(
MetadataDbHelper
.LOCAL_FILENAME_COLUMN);
82
final String remoteFilename = values.getAsString(
MetadataDbHelper
.REMOTE_FILENAME_COLUMN);
83
final Integer version = values.getAsInteger(
MetadataDbHelper
.VERSION_COLUMN)
[
all
...]
MetadataParser.java
35
private static final String ID_FIELD_NAME =
MetadataDbHelper
.WORDLISTID_COLUMN;
37
private static final String DESCRIPTION_FIELD_NAME =
MetadataDbHelper
.DESCRIPTION_COLUMN;
39
private static final String FILESIZE_FIELD_NAME =
MetadataDbHelper
.FILESIZE_COLUMN;
40
private static final String CHECKSUM_FIELD_NAME =
MetadataDbHelper
.CHECKSUM_COLUMN;
42
MetadataDbHelper
.REMOTE_FILENAME_COLUMN;
43
private static final String VERSION_FIELD_NAME =
MetadataDbHelper
.VERSION_COLUMN;
44
private static final String FORMATVERSION_FIELD_NAME =
MetadataDbHelper
.FORMATVERSION_COLUMN;
79
MetadataDbHelper
.TYPE_BULK,
WordListPreference.java
110
// Both of these should be one of
MetadataDbHelper
.STATUS_*
120
case
MetadataDbHelper
.STATUS_DELETING:
121
case
MetadataDbHelper
.STATUS_AVAILABLE:
123
case
MetadataDbHelper
.STATUS_DOWNLOADING:
125
case
MetadataDbHelper
.STATUS_INSTALLED:
127
case
MetadataDbHelper
.STATUS_DISABLED:
134
// The table below needs to be kept in sync with
MetadataDbHelper
.STATUS_* since it uses
137
//
MetadataDbHelper
.STATUS_UNKNOWN
139
//
MetadataDbHelper
.STATUS_AVAILABLE
141
//
MetadataDbHelper
.STATUS_DOWNLOADIN
[
all
...]
DictionaryProvider.java
229
final Cursor c =
MetadataDbHelper
.queryDictionaries(getContext(), clientId);
236
if (!
MetadataDbHelper
.isClientKnown(getContext(), clientId)) return null;
274
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, clientId);
275
return
MetadataDbHelper
.getInstalledOrDeletingWordListContentValuesByWordListId(
308
final int status = wordList.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
309
if (
MetadataDbHelper
.STATUS_DELETING == status) {
319
wordList.getAsString(
MetadataDbHelper
.LOCAL_FILENAME_COLUMN);
349
MetadataDbHelper
.queryInstalledOrDeletingOrAvailableDictionaryMetadata(context,
355
final int idIndex = results.getColumnIndex(
MetadataDbHelper
.WORDLISTID_COLUMN);
356
final int localeIndex = results.getColumnIndex(
MetadataDbHelper
.LOCALE_COLUMN)
[
all
...]
UpdateHandler.java
141
MetadataDbHelper
.registerMetadataDownloadId(context, uri, downloadId);
181
final Cursor cursor =
MetadataDbHelper
.queryClientIds(context);
188
MetadataDbHelper
.getMetadataUriAsString(context, clientId);
287
MetadataDbHelper
.getMetadataDownloadIdForURI(context, metadataUri);
311
final String metadataUri =
MetadataDbHelper
.getMetadataUriAsString(context, clientId);
340
MetadataDbHelper
.markEntryAsDownloading(db, id, version, downloadId);
391
MetadataDbHelper
.getDownloadRecordsForDownloadId(context,
403
MetadataDbHelper
.saveLastUpdateTimeOfUri(context, downloadInfo.mUri);
453
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, record.mClientId);
498
MetadataDbHelper
.deleteDownloadingEntry(db, fileId)
[
all
...]
DictionaryListInterfaceState.java
39
public int mStatus =
MetadataDbHelper
.STATUS_UNKNOWN;
53
if (null == state) return
MetadataDbHelper
.STATUS_UNKNOWN;
DictionaryDownloadProgressBar.java
56
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, clientId);
58
MetadataDbHelper
.getContentValuesOfLatestAvailableWordlistById(db, wordlistId);
65
return wordlistValues.getAsInteger(
MetadataDbHelper
.PENDINGID_COLUMN);
DictionarySettingsFragment.java
109
MetadataDbHelper
.getMetadataUriAsString(getActivity(), mClientId);
126
if (!
MetadataDbHelper
.isClientKnown(activity, mClientId)) {
216
MetadataDbHelper
.getLastUpdateDateForClient(getActivity(), mClientId);
295
final int idIndex = cursor.getColumnIndex(
MetadataDbHelper
.WORDLISTID_COLUMN);
296
final int versionIndex = cursor.getColumnIndex(
MetadataDbHelper
.VERSION_COLUMN);
297
final int localeIndex = cursor.getColumnIndex(
MetadataDbHelper
.LOCALE_COLUMN);
298
final int descriptionIndex = cursor.getColumnIndex(
MetadataDbHelper
.DESCRIPTION_COLUMN);
299
final int statusIndex = cursor.getColumnIndex(
MetadataDbHelper
.STATUS_COLUMN);
300
final int filesizeIndex = cursor.getColumnIndex(
MetadataDbHelper
.FILESIZE_COLUMN);
MetadataDbHelper.java
39
public class
MetadataDbHelper
extends SQLiteOpenHelper {
40
private static final String TAG =
MetadataDbHelper
.class.getSimpleName();
152
private static TreeMap<String,
MetadataDbHelper
> sInstanceMap = null;
153
public static synchronized
MetadataDbHelper
getInstance(final Context context,
161
if (null == sInstanceMap) sInstanceMap = new TreeMap<String,
MetadataDbHelper
>();
162
MetadataDbHelper
helper = sInstanceMap.get(clientId);
164
helper = new
MetadataDbHelper
(context, clientId);
169
private
MetadataDbHelper
(final Context context, final String clientId) {
287
SQLiteDatabase defaultDb =
MetadataDbHelper
.getDb(context, null);
288
final Cursor cursor = defaultDb.query(
MetadataDbHelper
.CLIENT_TABLE_NAME
[
all
...]
DictionaryService.java
218
final long lastUpdate =
MetadataDbHelper
.getOldestUpdateTime(context);
Completed in 580 milliseconds