Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java192 final String clientId = cursor.getString(0); in tryUpdate() local
194 MetadataDbHelper.getMetadataUriAsString(context, clientId); in tryUpdate()
195 PrivateLog.log("Update for clientId " + DebugLogUtils.s(clientId)); in tryUpdate()
196 DebugLogUtils.l("Update for clientId", clientId, " which uses URI ", metadataUri); in tryUpdate()
305 public static void cancelUpdate(final Context context, final String clientId) { in cancelUpdate() argument
307 final String metadataUri = MetadataDbHelper.getMetadataUriAsString(context, clientId); in cancelUpdate()
488 final String clientId) { in publishUpdateWordListCompleted() argument
492 actions.add(new ActionBatch.InstallAfterDownloadAction(clientId, in publishUpdateWordListCompleted()
590 final String clientId) throws IOException, BadFormatException { in handleMetadata() argument
604 final ActionBatch actions = computeUpgradeTo(context, clientId, newMetadata); in handleMetadata()
[all …]
DMetadataDbHelper.java172 final String clientId = null != clientIdOrNull ? clientIdOrNull : ""; in getInstance() local
174 MetadataDbHelper helper = sInstanceMap.get(clientId); in getInstance()
176 helper = new MetadataDbHelper(context, clientId); in getInstance()
177 sInstanceMap.put(clientId, helper); in getInstance()
181 private MetadataDbHelper(final Context context, final String clientId) { in MetadataDbHelper() argument
183 METADATA_DATABASE_NAME_STEM + (TextUtils.isEmpty(clientId) ? "" : "." + clientId), in MetadataDbHelper()
186 mClientId = clientId; in MetadataDbHelper()
201 public static SQLiteDatabase getDb(final Context context, final String clientId) { in getDb() argument
202 return getInstance(context, clientId).getWritableDatabase(); in getDb()
340 public static boolean isClientKnown(final Context context, final String clientId) { in isClientKnown() argument
[all …]
DActionBatch.java100 public StartDownloadAction(final String clientId, final WordListMetadata wordList) { in StartDownloadAction() argument
101 DebugLogUtils.l("New download action for client ", clientId, " : ", wordList); in StartDownloadAction()
102 mClientId = clientId; in StartDownloadAction()
167 public InstallAfterDownloadAction(final String clientId, in InstallAfterDownloadAction() argument
169 DebugLogUtils.l("New InstallAfterDownloadAction for client ", clientId, " : ", in InstallAfterDownloadAction()
171 mClientId = clientId; in InstallAfterDownloadAction()
211 public EnableAction(final String clientId, final WordListMetadata wordList) { in EnableAction() argument
212 DebugLogUtils.l("New EnableAction for client ", clientId, " : ", wordList); in EnableAction()
213 mClientId = clientId; in EnableAction()
246 public DisableAction(final String clientId, final WordListMetadata wordlist) { in DisableAction() argument
[all …]
DDictionaryProvider.java230 final String clientId = getClientId(uri); in query() local
235 final Cursor c = MetadataDbHelper.queryDictionaries(getContext(), clientId); in query()
242 if (!MetadataDbHelper.isClientKnown(getContext(), clientId)) return null; in query()
247 getDictionaryWordListsForLocale(clientId, locale); in query()
269 private ContentValues getWordlistMetadataForWordlistId(final String clientId, in getWordlistMetadataForWordlistId() argument
273 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); in getWordlistMetadataForWordlistId()
301 final String clientId = getClientId(uri); in openAssetFile() local
302 final ContentValues wordList = getWordlistMetadataForWordlistId(clientId, wordlistId); in openAssetFile()
342 private Collection<WordListInfo> getDictionaryWordListsForLocale(final String clientId, in getDictionaryWordListsForLocale() argument
347 clientId); in getDictionaryWordListsForLocale()
[all …]
DMetadataHandler.java94 final String clientId) { in getCurrentMetadata() argument
97 final Cursor results = MetadataDbHelper.queryCurrentMetadata(context, clientId); in getCurrentMetadata()
118 final String clientId, final String wordListId, final int version) { in getCurrentMetadataForWordList() argument
120 MetadataDbHelper.getDb(context, clientId), wordListId, version); in getCurrentMetadataForWordList()
126 clientId, wordListId, version)); in getCurrentMetadataForWordList()
DDictionaryDownloadProgressBar.java48 public void setIds(final String clientId, final String wordlistId) { in setIds() argument
49 mClientId = clientId; in setIds()
54 final String clientId, final String wordlistId) { in getDownloadManagerPendingIdFromWordlistId() argument
55 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()
DWordListPreference.java70 final DictionaryListInterfaceState dictionaryListInterfaceState, final String clientId, in WordListPreference() argument
75 mClientId = clientId; in WordListPreference()
DDictionarySettingsFragment.java279 final String clientId) { in createInstalledDictSettingsCollection() argument
287 .appendPath(clientId) in createInstalledDictSettingsCollection()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java167 public DhcpLease getOffer(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in getOffer() argument
176 final DhcpLease currentLease = findByClient(clientId, hwAddr); in getOffer()
183 newLease = new DhcpLease(clientId, hwAddr, reqAddr, expTime, hostname); in getOffer()
186 newLease = makeNewOffer(clientId, hwAddr, expTime, hostname); in getOffer()
209 private DhcpLease findByClient(@Nullable byte[] clientId, @NonNull MacAddress hwAddr) { in findByClient() argument
211 if (lease.matchesClient(clientId, hwAddr)) { in findByClient()
237 public DhcpLease requestLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in requestLease() argument
244 final DhcpLease assignedLease = findByClient(clientId, hwAddr); in requestLease()
268 checkClientAndMakeLease(clientId, hwAddr, leaseAddr, hostname, currentTime); in requestLease()
285 private DhcpLease checkClientAndMakeLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in checkClientAndMakeLease() argument
[all …]
DDhcpLease.java52 public DhcpLease(@Nullable byte[] clientId, @NonNull MacAddress hwAddr, in DhcpLease() argument
54 mClientId = (clientId == null ? null : Arrays.copyOf(clientId, clientId.length)); in DhcpLease()
110 public boolean matchesClient(@Nullable byte[] clientId, @NonNull MacAddress hwAddr) { in matchesClient() argument
112 return Arrays.equals(mClientId, clientId); in matchesClient()
114 return clientId == null && mHwAddr.equals(hwAddr); in matchesClient()
DDhcpPacket.java395 final byte[] clientId; in getClientId()
397 clientId = Arrays.copyOf(mClientId, mClientId.length); in getClientId()
399 clientId = new byte[mClientMac.length + 1]; in getClientId()
400 clientId[0] = CLIENT_ID_ETHER; in getClientId()
401 System.arraycopy(mClientMac, 0, clientId, 1, mClientMac.length); in getClientId()
403 return clientId; in getClientId()
853 byte[] clientId = null; in decodeFullPacket()
1202 newPacket.mClientId = clientId; in decodeFullPacket()
DDhcpServer.java427 final byte[] clientId = packet.getExplicitClientIdOrNull(); in processRelease()
430 mLeaseRepo.releaseLease(clientId, macAddr, packet.mClientIp); in processRelease()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionaryFileDumper.java129 private static Uri.Builder getContentUriBuilderForType(final String clientId, in getContentUriBuilderForType() argument
134 final Uri.Builder uriV2Builder = getProviderUriBuilder(clientId); in getContentUriBuilderForType()
150 final String clientId = context.getString(R.string.dictionary_pack_client_id); in getWordListWordListInfos() local
156 final Uri.Builder builder = getContentUriBuilderForType(clientId, client, in getWordListWordListInfos()
168 reinitializeClientRecordInDictionaryContentProvider(context, client, clientId); in getWordListWordListInfos()
241 final String clientId = context.getString(R.string.dictionary_pack_client_id); in installWordListToStaging() local
244 wordListUriBuilder = getContentUriBuilderForType(clientId, in installWordListToStaging()
367 reportBrokenFileToDictionaryProvider(providerClient, clientId, wordlistId); in installWordListToStaging()
371 final ContentProviderClient providerClient, final String clientId, in reportBrokenFileToDictionaryProvider() argument
374 final Uri.Builder wordListUriBuilder = getContentUriBuilderForType(clientId, in reportBrokenFileToDictionaryProvider()
[all …]
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreService.java192 public void storeBlob(@Nullable final String l2Key, @Nullable final String clientId, in storeBlob() argument
199 null /* NetworkAttributes */, clientId, name, data); in storeBlob()
217 @Nullable final String clientId, in storeNetworkAttributesAndBlobSync() argument
221 if (null != data && (null == clientId || null == name)) return ERROR_ILLEGAL_ARGUMENT; in storeNetworkAttributesAndBlobSync()
232 return IpMemoryStoreDatabase.storeBlob(mDb, l2Key, clientId, name, data); in storeNetworkAttributesAndBlobSync()
237 + "} ; clientId {" + (null == clientId ? "null" : clientId) in storeNetworkAttributesAndBlobSync()
379 public void retrieveBlob(@NonNull final String l2Key, @NonNull final String clientId, in retrieveBlob() argument
395 b.data = IpMemoryStoreDatabase.retrieveBlob(mDb, l2Key, clientId, name); in retrieveBlob()
DIpMemoryStoreDatabase.java279 @NonNull final String clientId, @NonNull final String name, in toContentValues() argument
283 values.put(PrivateDataContract.COLNAME_CLIENT, clientId); in toContentValues()
384 @NonNull final String clientId, @NonNull final String name, in storeBlob() argument
387 toContentValues(key, clientId, name, data), SQLiteDatabase.CONFLICT_REPLACE); in storeBlob()
416 @NonNull final String clientId, @NonNull final String name) { in retrieveBlob() argument
422 new String[] { key, clientId, name }, // selectionArgs in retrieveBlob()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioFocus.java546 for (String clientId : mapToQuery.keySet()) { in getAudioFocusListForUid()
547 AudioFocusInfo afi = mapToQuery.get(clientId).mAfi; in getAudioFocusListForUid()
592 for (String clientId : mFocusHolders.keySet()) { in dump()
593 writer.printf("%s\t\t%s\n", indent, clientId); in dump()
597 for (String clientId : mFocusLosers.keySet()) { in dump()
598 writer.printf("%s\t\t%s\n", indent, clientId); in dump()
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java365 int clientId = message.get(VmsStartSessionMessageIntegerValuesIndex.CLIENT_ID); in handleStartSessionEvent() local
369 + clientId); in handleStartSessionEvent()
391 createStartSessionMessage(mCoreId, clientId)); in handleStartSessionEvent()
679 private static VehiclePropValue createStartSessionMessage(int coreId, int clientId) { in createStartSessionMessage() argument
688 message.add(clientId); in createStartSessionMessage()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSettingsUtils.java129 b.appendQueryParameter("client_id", provider.clientId); in createOAuthRegistrationRequest()
169 provider.clientId = getXmlAttribute(context, xml, "client_id"); in getAllOAuthProviders()
220 provider.clientId = getXmlAttribute(context, xml, "client_id"); in findOAuthProvider()
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DOAuthAuthenticator.java95 nvp.add(new BasicNameValuePair(OAUTH_REQUEST_CLIENT_ID, provider.clientId)); in requestAccess()
124 nvp.add(new BasicNameValuePair(OAUTH_REQUEST_CLIENT_ID, provider.clientId)); in requestRefresh()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java217 final byte[] clientId = new byte[] { 1, 2 }; in testGetOffer_ClientIdHasExistingLease()
218 mRepo.requestLease(clientId, TEST_MAC_1, IPV4_ADDR_ANY /* clientAddr */, in testGetOffer_ClientIdHasExistingLease()
223 DhcpLease offer = mRepo.getOffer(clientId, TEST_MAC_2, in testGetOffer_ClientIdHasExistingLease()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DVendorPolicyLoader.java206 public String clientId; field in VendorPolicyLoader.OAuthProvider
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java1273 private native void gattClientScanFilterAddNative(int clientId, in gattClientScanFilterAddNative() argument