Home
last modified time | relevance | path

Searched refs:clientId (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java183 final String clientId = cursor.getString(0); in update() local
185 MetadataDbHelper.getMetadataUriAsString(context, clientId); in update()
186 PrivateLog.log("Update for clientId " + Utils.s(clientId)); in update()
187 Utils.l("Update for clientId", clientId, " which uses URI ", metadataUri); in update()
278 final String clientId, final DownloadManager manager) { in cancelUpdateWithDownloadManager() argument
281 MetadataDbHelper.getMetadataDownloadIdForClient(context, clientId); in cancelUpdateWithDownloadManager()
285 MetadataDbHelper.getMetadataUriAsString(context, clientId), NOT_AN_ID); in cancelUpdateWithDownloadManager()
303 public static void cancelUpdate(final Context context, final String clientId) { in cancelUpdate() argument
306 if (null != manager) cancelUpdateWithDownloadManager(context, clientId, manager); in cancelUpdate()
484 final String clientId) { in publishUpdateWordListCompleted() argument
[all …]
DMetadataDbHelper.java161 final String clientId = null != clientIdOrNull ? clientIdOrNull : ""; in getInstance() local
163 MetadataDbHelper helper = sInstanceMap.get(clientId); in getInstance()
165 helper = new MetadataDbHelper(context, clientId); in getInstance()
166 sInstanceMap.put(clientId, helper); in getInstance()
170 private MetadataDbHelper(final Context context, final String clientId) { in MetadataDbHelper() argument
172 METADATA_DATABASE_NAME_STEM + (TextUtils.isEmpty(clientId) ? "" : "." + clientId), in MetadataDbHelper()
175 mClientId = clientId; in MetadataDbHelper()
190 public static SQLiteDatabase getDb(final Context context, final String clientId) { in getDb() argument
191 return getInstance(context, clientId).getWritableDatabase(); in getDb()
270 public static boolean isClientKnown(final Context context, final String clientId) { in isClientKnown() argument
[all …]
DActionBatch.java99 public StartDownloadAction(final String clientId, in StartDownloadAction() argument
101 Utils.l("New download action for client ", clientId, " : ", wordList); in StartDownloadAction()
102 mClientId = clientId; in StartDownloadAction()
196 public InstallAfterDownloadAction(final String clientId, in InstallAfterDownloadAction() argument
198 Utils.l("New InstallAfterDownloadAction for client ", clientId, " : ", wordListValues); in InstallAfterDownloadAction()
199 mClientId = clientId; in InstallAfterDownloadAction()
231 public EnableAction(final String clientId, final WordListMetadata wordList) { in EnableAction() argument
232 Utils.l("New EnableAction for client ", clientId, " : ", wordList); in EnableAction()
233 mClientId = clientId; in EnableAction()
266 public DisableAction(final String clientId, final WordListMetadata wordlist) { in DisableAction() argument
[all …]
DDictionaryProvider.java224 final String clientId = getClientId(uri); in query() local
229 final Cursor c = MetadataDbHelper.queryDictionaries(getContext(), clientId); in query()
236 if (!MetadataDbHelper.isClientKnown(getContext(), clientId)) return null; in query()
247 getDictionaryWordListsForLocale(clientId, locale, mayPrompt); in query()
270 private ContentValues getWordlistMetadataForWordlistId(final String clientId, in getWordlistMetadataForWordlistId() argument
274 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in getWordlistMetadataForWordlistId()
302 final String clientId = getClientId(uri); in openAssetFile() local
303 final ContentValues wordList = getWordlistMetadataForWordlistId(clientId, wordlistId); in openAssetFile()
345 private Collection<WordListInfo> getDictionaryWordListsForLocale(final String clientId, in getDictionaryWordListsForLocale() argument
350 clientId); in getDictionaryWordListsForLocale()
[all …]
DDictionaryDownloadProgressBar.java49 public void setIds(final String clientId, final String wordlistId) { in setIds() argument
50 mClientId = clientId; in setIds()
55 final String clientId, final String wordlistId) { in getDownloadManagerPendingIdFromWordlistId() argument
56 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in getDownloadManagerPendingIdFromWordlistId()
DDownloadRecord.java30 public DownloadRecord(final String clientId, final ContentValues attributes) { in DownloadRecord() argument
31 mClientId = clientId; in DownloadRecord()
DMetadataHandler.java91 final String clientId) { in getCurrentMetadata() argument
94 final Cursor results = MetadataDbHelper.queryCurrentMetadata(context, clientId); in getCurrentMetadata()
DWordListPreference.java75 final DictionaryListInterfaceState dictionaryListInterfaceState, final String clientId, in WordListPreference() argument
81 mClientId = clientId; in WordListPreference()
DDictionarySettingsFragment.java255 final String clientId) { in createInstalledDictSettingsCollection() argument
263 .appendPath(clientId) in createInstalledDictSettingsCollection()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java115 private static Uri.Builder getContentUriBuilderForType(final String clientId, in getContentUriBuilderForType() argument
120 final Uri.Builder uriV2Builder = getProviderUriBuilder(clientId); in getContentUriBuilderForType()
136 final String clientId = context.getString(R.string.dictionary_pack_client_id); in getWordListWordListInfos() local
142 final Uri.Builder builder = getContentUriBuilderForType(clientId, client, in getWordListWordListInfos()
154 reinitializeClientRecordInDictionaryContentProvider(context, client, clientId); in getWordListWordListInfos()
224 final String clientId = context.getString(R.string.dictionary_pack_client_id); in cacheWordList() local
227 wordListUriBuilder = getContentUriBuilderForType(clientId, in cacheWordList()
417 final ContentProviderClient client, final String clientId) throws RemoteException { in reinitializeClientRecordInDictionaryContentProvider() argument
422 final Uri metadataContentUri = getProviderUriBuilder(clientId) in reinitializeClientRecordInDictionaryContentProvider()
429 metadataValues.put(INSERT_METADATA_CLIENT_ID_COLUMN, clientId); in reinitializeClientRecordInDictionaryContentProvider()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DCalendarSyncAdapter.java1139 private Cursor getClientIdCursor(String clientId) { in getClientIdCursor() argument
1140 mBindArgument[0] = clientId; in getClientIdCursor()
1274 String clientId = null; in addResponsesParser() local
1283 clientId = getValue(); in addResponsesParser()
1296 if (clientId == null) return; in addResponsesParser()
1302 Cursor c = getClientIdCursor(clientId); in addResponsesParser()
1306 cv.put(Events.SYNC_DATA2, clientId); in addResponsesParser()
1312 userLog("New event " + clientId + " was given serverId: " + serverId); in addResponsesParser()
1485 private void sendEvent(Entity entity, String clientId, Serializer s) in sendEvent() argument
1493 final boolean isException = (clientId == null); in sendEvent()
[all …]
DContactsSyncAdapter.java770 private Cursor getClientIdCursor(String clientId) { in getClientIdCursor() argument
771 mBindArgument[0] = clientId; in getClientIdCursor()
893 String clientId = null; in addResponsesParser() local
901 clientId = getValue(); in addResponsesParser()
912 if (clientId == null || serverId == null) return; in addResponsesParser()
914 Cursor c = getClientIdCursor(clientId); in addResponsesParser()
925 userLog("New contact " + clientId + " was given serverId: " + serverId); in addResponsesParser()
1884 String clientId = "new_" + mMailbox.mId + '_' + System.currentTimeMillis(); in sendLocalChanges() local
1885 userLog("Creating new contact with clientId: ", clientId); in sendLocalChanges()
1886 s.start(Tags.SYNC_ADD).data(Tags.SYNC_CLIENT_ID, clientId); in sendLocalChanges()
[all …]