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
113
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, mClientId);
114
final ContentValues values =
MetadataDbHelper
.getContentValuesByWordListId(db,
116
final int status = values.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
118
if (
MetadataDbHelper
.STATUS_DOWNLOADING == status) {
121
manager.remove(values.getAsLong(
MetadataDbHelper
.PENDINGID_COLUMN));
122
MetadataDbHelper
.markEntryAsAvailable(db, mWordList.mId, mWordList.mVersion);
123
} else if (
MetadataDbHelper
.STATUS_AVAILABLE != status
124
&&
MetadataDbHelper
.STATUS_RETRYING != status) {
181
final int status = mWordListValues.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
182
if (
MetadataDbHelper
.STATUS_DOWNLOADING != status)
[
all
...]
MetadataHandler.java
50
final int localeColumn = results.getColumnIndex(
MetadataDbHelper
.LOCALE_COLUMN);
51
final int typeColumn = results.getColumnIndex(
MetadataDbHelper
.TYPE_COLUMN);
53
results.getColumnIndex(
MetadataDbHelper
.DESCRIPTION_COLUMN);
54
final int idIndex = results.getColumnIndex(
MetadataDbHelper
.WORDLISTID_COLUMN);
55
final int updateIndex = results.getColumnIndex(
MetadataDbHelper
.DATE_COLUMN);
56
final int fileSizeIndex = results.getColumnIndex(
MetadataDbHelper
.FILESIZE_COLUMN);
58
results.getColumnIndex(
MetadataDbHelper
.RAW_CHECKSUM_COLUMN);
59
final int checksumIndex = results.getColumnIndex(
MetadataDbHelper
.CHECKSUM_COLUMN);
60
final int retryCountIndex = results.getColumnIndex(
MetadataDbHelper
.RETRY_COUNT_COLUMN);
62
results.getColumnIndex(
MetadataDbHelper
.LOCAL_FILENAME_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 RAW_CHECKSUM_FIELD_NAME =
MetadataDbHelper
.RAW_CHECKSUM_COLUMN;
41
private static final String CHECKSUM_FIELD_NAME =
MetadataDbHelper
.CHECKSUM_COLUMN;
43
MetadataDbHelper
.REMOTE_FILENAME_COLUMN;
44
private static final String VERSION_FIELD_NAME =
MetadataDbHelper
.VERSION_COLUMN;
45
private static final String FORMATVERSION_FIELD_NAME =
MetadataDbHelper
.FORMATVERSION_COLUMN;
80
MetadataDbHelper
.TYPE_BULK,
86
MetadataDbHelper
.DICTIONARY_RETRY_THRESHOLD /* retryCount */
[
all
...]
WordListMetadata.java
31
public final int mType; // Type, as of
MetadataDbHelper
#TYPE_*
83
final String id = values.getAsString(
MetadataDbHelper
.WORDLISTID_COLUMN);
84
final Integer type = values.getAsInteger(
MetadataDbHelper
.TYPE_COLUMN);
85
final String description = values.getAsString(
MetadataDbHelper
.DESCRIPTION_COLUMN);
86
final Long lastUpdate = values.getAsLong(
MetadataDbHelper
.DATE_COLUMN);
87
final Long fileSize = values.getAsLong(
MetadataDbHelper
.FILESIZE_COLUMN);
88
final String rawChecksum = values.getAsString(
MetadataDbHelper
.RAW_CHECKSUM_COLUMN);
89
final String checksum = values.getAsString(
MetadataDbHelper
.CHECKSUM_COLUMN);
90
final int retryCount = values.getAsInteger(
MetadataDbHelper
.RETRY_COUNT_COLUMN);
91
final String localFilename = values.getAsString(
MetadataDbHelper
.LOCAL_FILENAME_COLUMN)
[
all
...]
WordListPreference.java
108
// Both of these should be one of
MetadataDbHelper
.STATUS_*
119
case
MetadataDbHelper
.STATUS_DELETING:
120
case
MetadataDbHelper
.STATUS_AVAILABLE:
122
case
MetadataDbHelper
.STATUS_DOWNLOADING:
124
case
MetadataDbHelper
.STATUS_INSTALLED:
126
case
MetadataDbHelper
.STATUS_DISABLED:
133
// The table below needs to be kept in sync with
MetadataDbHelper
.STATUS_* since it uses
136
//
MetadataDbHelper
.STATUS_UNKNOWN
138
//
MetadataDbHelper
.STATUS_AVAILABLE
140
//
MetadataDbHelper
.STATUS_DOWNLOADIN
[
all
...]
DictionaryProvider.java
113
static private final String[] columnNames = {
MetadataDbHelper
.WORDLISTID_COLUMN,
114
MetadataDbHelper
.LOCALE_COLUMN,
MetadataDbHelper
.RAW_CHECKSUM_COLUMN };
235
final Cursor c =
MetadataDbHelper
.queryDictionaries(getContext(), clientId);
242
if (!
MetadataDbHelper
.isClientKnown(getContext(), clientId)) return null;
273
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, clientId);
274
return
MetadataDbHelper
.getInstalledOrDeletingWordListContentValuesByWordListId(
307
final int status = wordList.getAsInteger(
MetadataDbHelper
.STATUS_COLUMN);
308
if (
MetadataDbHelper
.STATUS_DELETING == status) {
318
wordList.getAsString(
MetadataDbHelper
.LOCAL_FILENAME_COLUMN)
[
all
...]
UpdateHandler.java
148
MetadataDbHelper
.registerMetadataDownloadId(context, uri, downloadId);
187
final Cursor cursor =
MetadataDbHelper
.queryClientIds(context);
194
MetadataDbHelper
.getMetadataUriAsString(context, clientId);
278
MetadataDbHelper
.getMetadataDownloadIdAndStartDateForURI(context, metadataUri);
307
final String metadataUri =
MetadataDbHelper
.getMetadataUriAsString(context, clientId);
336
MetadataDbHelper
.markEntryAsDownloading(db, id, version, downloadId);
387
MetadataDbHelper
.getDownloadRecordsForDownloadId(context,
399
MetadataDbHelper
.saveLastUpdateTimeOfUri(context, downloadInfo.mUri);
451
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, record.mClientId);
496
MetadataDbHelper
.deleteDownloadingEntry(db, fileId)
[
all
...]
DictionaryListInterfaceState.java
37
public int mStatus =
MetadataDbHelper
.STATUS_UNKNOWN;
51
if (null == state) return
MetadataDbHelper
.STATUS_UNKNOWN;
DictionaryDownloadProgressBar.java
55
final SQLiteDatabase db =
MetadataDbHelper
.getDb(context, clientId);
57
MetadataDbHelper
.getContentValuesOfLatestAvailableWordlistById(db, wordlistId);
64
return wordlistValues.getAsInteger(
MetadataDbHelper
.PENDINGID_COLUMN);
MetadataDbHelper.java
42
public class
MetadataDbHelper
extends SQLiteOpenHelper {
43
private static final String TAG =
MetadataDbHelper
.class.getSimpleName();
164
private static TreeMap<String,
MetadataDbHelper
> sInstanceMap = null;
165
public static synchronized
MetadataDbHelper
getInstance(final Context context,
174
MetadataDbHelper
helper = sInstanceMap.get(clientId);
176
helper = new
MetadataDbHelper
(context, clientId);
181
private
MetadataDbHelper
(final Context context, final String clientId) {
359
SQLiteDatabase defaultDb =
MetadataDbHelper
.getDb(context, null);
360
final Cursor cursor = defaultDb.query(
MetadataDbHelper
.CLIENT_TABLE_NAME,
361
new String[] {
MetadataDbHelper
.CLIENT_METADATA_URI_COLUMN }
[
all
...]
DictionarySettingsFragment.java
113
return
MetadataDbHelper
.getMetadataUriAsString(getActivity(), mClientId);
147
if (!
MetadataDbHelper
.isClientKnown(activity, mClientId)) {
309
final int idIndex = cursor.getColumnIndex(
MetadataDbHelper
.WORDLISTID_COLUMN);
310
final int versionIndex = cursor.getColumnIndex(
MetadataDbHelper
.VERSION_COLUMN);
311
final int localeIndex = cursor.getColumnIndex(
MetadataDbHelper
.LOCALE_COLUMN);
312
final int descriptionIndex = cursor.getColumnIndex(
MetadataDbHelper
.DESCRIPTION_COLUMN);
313
final int statusIndex = cursor.getColumnIndex(
MetadataDbHelper
.STATUS_COLUMN);
314
final int filesizeIndex = cursor.getColumnIndex(
MetadataDbHelper
.FILESIZE_COLUMN);
DictionaryService.java
248
final long lastUpdate =
MetadataDbHelper
.getOldestUpdateTime(context);
Completed in 272 milliseconds