Home
last modified time | relevance | path

Searched refs:modelId (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java85 public GenericSoundModel getSoundModel(UUID modelId) { in getSoundModel() argument
88 model = mSoundTriggerService.getSoundModel(new ParcelUuid(modelId)); in getSoundModel()
108 public boolean deleteSoundModel(UUID modelId) { in deleteSoundModel() argument
110 mSoundTriggerService.deleteSoundModel(new ParcelUuid(modelId)); in deleteSoundModel()
117 public void deleteSoundModelUsingManager(UUID modelId) { in deleteSoundModelUsingManager() argument
118 mSoundTriggerManager.deleteModel(modelId); in deleteSoundModelUsingManager()
121 public SoundTriggerDetector createSoundTriggerDetector(UUID modelId, in createSoundTriggerDetector() argument
123 return mSoundTriggerManager.createSoundTriggerDetector(modelId, callback, null); in createSoundTriggerDetector()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java138 int startGenericRecognition(UUID modelId, GenericSoundModel soundModel, in startGenericRecognition() argument
141 if (modelId == null || soundModel == null || callback == null || in startGenericRecognition()
148 ModelData modelData = getOrCreateGenericModelDataLocked(modelId); in startGenericRecognition()
336 int stopGenericRecognition(UUID modelId, IRecognitionStatusCallback callback) { in stopGenericRecognition() argument
339 if (callback == null || modelId == null) { in stopGenericRecognition()
341 modelId); in stopGenericRecognition()
345 ModelData modelData = mModelDataMap.get(modelId); in stopGenericRecognition()
347 Slog.w(TAG, "Attempting stopRecognition on invalid model with id:" + modelId); in stopGenericRecognition()
517 int unloadGenericSoundModel(UUID modelId) { in unloadGenericSoundModel() argument
520 if (modelId == null || mModule == null) { in unloadGenericSoundModel()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DModelBackedDocumentsAdapter.java113 String modelId = mModelIds.get(position); in onBindViewHolder() local
114 Cursor cursor = mEnv.getModel().getItem(modelId); in onBindViewHolder()
115 holder.bind(cursor, modelId, mEnv.getDisplayState()); in onBindViewHolder()
121 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder()
126 holder.setSelected(mEnv.isSelected(modelId), false); in onBindViewHolder()
DGridDirectoryHolder.java64 public void bind(Cursor cursor, String modelId, State state) { in bind() argument
67 this.modelId = modelId; in bind()
DModel.java368 public @Nullable Cursor getItem(String modelId) { in getItem() argument
369 Integer pos = mPositions.get(modelId); in getItem()
371 if (DEBUG) Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem()
377 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem()
396 for (String modelId: items.getAll()) { in getDocuments()
397 final Cursor cursor = getItem(modelId); in getDocuments()
400 "Skipping document. Unabled to obtain cursor for modelId: " + modelId); in getDocuments()
DDocumentsAdapter.java91 String modelId = getModelIds().get(position); in isDirectory() local
92 Cursor cursor = model.getItem(modelId); in isDirectory()
DDirectoryFragment.java477 public boolean onBeforeItemStateChange(String modelId, boolean selected) { in onBeforeItemStateChange() argument
479 final Cursor cursor = mModel.getItem(modelId); in onBeforeItemStateChange()
481 Log.w(TAG, "Can't obtain cursor for modelId: " + modelId); in onBeforeItemStateChange()
504 public void onItemStateChanged(String modelId, boolean selected) { in onItemStateChanged() argument
505 final Cursor cursor = mModel.getItem(modelId); in onItemStateChanged()
507 Log.w(TAG, "Model returned null cursor for document: " + modelId in onItemStateChanged()
1312 return ((DocumentHolder) vh).modelId; in getModelId()
1329 return ((DocumentHolder) vh).modelId; in getModelId()
1336 String modelId = getModelId(currentItemView); in getDraggableDocuments() local
1337 if (modelId == null) { in getDraggableDocuments()
[all …]
DGridDocumentHolder.java116 public void bind(Cursor cursor, String modelId, State state) { in bind() argument
119 this.modelId = modelId; in bind()
DListDocumentHolder.java112 public void bind(Cursor cursor, String modelId, State state) { in bind() argument
115 this.modelId = modelId; in bind()
DDocumentHolder.java41 public @Nullable String modelId; field in DocumentHolder
75 public abstract void bind(Cursor cursor, String modelId, State state); in bind() argument
DFocusManager.java479 String modelId = mAdapter.getModelId(i); in buildIndex() local
480 Cursor cursor = mModel.getItem(modelId); in buildIndex()
481 if (modelId != null && cursor != null) { in buildIndex()
DMultiSelectManager.java363 public void toggleSelection(String modelId) { in toggleSelection() argument
364 assert(modelId != null); in toggleSelection()
367 if (mSelection.contains(modelId)) { in toggleSelection()
368 changed = attemptDeselect(modelId); in toggleSelection()
370 changed = attemptSelect(modelId); in toggleSelection()
471 private boolean selectAndNotify(String modelId) { in selectAndNotify() argument
472 boolean changed = mSelection.add(modelId); in selectAndNotify()
474 notifyItemStateChanged(modelId, true); in selectAndNotify()
DSectionBreakDocumentsAdapterWrapper.java242 public void bind(Cursor cursor, String modelId, State state) {
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DMultiSelectManagerTest.java385 public void onItemStateChanged(String modelId, boolean selected) {} in onItemStateChanged() argument
388 public boolean onBeforeItemStateChange(String modelId, boolean selected) { in onBeforeItemStateChange() argument
389 return !ignored.contains(modelId); in onBeforeItemStateChange()
DDocumentHolderTest.java45 public void bind(Cursor cursor, String modelId, State state) {} in setUp()