Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 87) sorted by relevance

1234

/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java403 final ContentProviderOperation op; in visitFile() local
406 op = scanItem(existingId, file.toFile(), attrs, mVolumeName); in visitFile()
410 if (op != null) { in visitFile()
411 mPending.add(op); in visitFile()
517 private static void withGenericValues(ContentProviderOperation.Builder op, in withGenericValues() argument
519 op.withValue(MediaColumns.DATA, file.getAbsolutePath()); in withGenericValues()
520 op.withValue(MediaColumns.SIZE, attrs.size()); in withGenericValues()
521 op.withValue(MediaColumns.TITLE, extractName(file)); in withGenericValues()
522 op.withValue(MediaColumns.DATE_MODIFIED, lastModifiedTime(file, attrs)); in withGenericValues()
523 op.withValue(MediaColumns.DATE_TAKEN, null); in withGenericValues()
[all …]
DPlaylistResolver.java184 final ContentProviderOperation.Builder op = ContentProviderOperation in resolvePlaylistItem() local
186 op.withValue(MediaStore.Audio.Playlists.Members.PLAY_ORDER, itemIndex); in resolvePlaylistItem()
187 op.withValue(MediaStore.Audio.Playlists.Members.AUDIO_ID, cursor.getInt(0)); in resolvePlaylistItem()
188 return op.build(); in resolvePlaylistItem()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissionUsage.java110 (op) -> op.getLastAccessTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessTime()
118 (op) -> op.getLastAccessForegroundTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessForegroundTime()
126 (op) -> op.getLastAccessBackgroundTime(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getLastAccessBackgroundTime()
133 return extractAggregate((HistoricalOp op) in getForegroundAccessCount()
134 -> op.getForegroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getForegroundAccessCount()
141 return extractAggregate((HistoricalOp op) in getBackgroundAccessCount()
142 -> op.getBackgroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED)); in getBackgroundAccessCount()
149 return extractAggregate((HistoricalOp op) -> in getAccessCount()
150 op.getForegroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED) in getAccessCount()
151 + op.getBackgroundAccessCount(AppOpsManager.OP_FLAGS_ALL_TRUSTED) in getAccessCount()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequest.java83 ClientOperation op = null; in executeGet() local
86 op = (ClientOperation) session.get(mHeaderSet); in executeGet()
95 op.setGetFinalFlag(true); in executeGet()
101 op.continueOperation(true, false); in executeGet()
103 readResponseHeaders(op.getReceivedHeader()); in executeGet()
105 InputStream is = op.openInputStream(); in executeGet()
109 op.close(); in executeGet()
111 mResponseCode = op.getResponseCode(); in executeGet()
120 Operation op = null; in executePut() local
125 op = session.put(mHeaderSet); in executePut()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DUserPresetsManager.java91 SaveOperation op = new SaveOperation(); in save() local
92 op.json = preset.getJsonString(ImagePreset.JASON_SAVED); in save()
93 op.name = name; in save()
94 msg.obj = op; in save()
111 UpdateOperation op = new UpdateOperation(); in update() local
112 op.id = representation.getId(); in update()
113 op.name = representation.getName(); in update()
114 msg.obj = op; in update()
132 SaveOperation op = (SaveOperation) msg.obj; in processSave() local
133 mUserPresets.insertStack(op.name, op.json.getBytes()); in processSave()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java312 public int onPut(final Operation op) { in onPut() argument
386 public int onGet(Operation op) { in onGet() argument
396 request = op.getReceivedHeader(); in onGet()
526 return pullVcardListing(appParam, appParamValue, reply, op, name); in onGet()
529 return pullVcardEntry(appParam, appParamValue, op, reply, name, mCurrentPath); in onGet()
532 return pullPhonebook(appParam, appParamValue, reply, op, name); in onGet()
745 private int sendVcardListingXml(AppParamValue appParamValue, Operation op, int needSendBody, in sendVcardListingXml() argument
792 return pushBytes(op, result.toString()); in sendVcardListingXml()
887 private int pushHeader(final Operation op, final HeaderSet reply) { in pushHeader() argument
899 op.sendHeaders(reply); in pushHeader()
[all …]
DBluetoothPbapVcardManager.java483 final int composeAndSendSelectedCallLogVcards(final int type, Operation op, in composeAndSendSelectedCallLogVcards() argument
547 return composeCallLogsAndSendSelectedVCards(op, selection, vcardType21, needSendBody, in composeAndSendSelectedCallLogVcards()
551 final int composeAndSendPhonebookVcards(Operation op, final int startPoint, final int endPoint, in composeAndSendPhonebookVcards() argument
581 return composeContactsAndSendSelectedVCards(op, contactIdCursor, vcardType21, in composeAndSendPhonebookVcards()
585 return composeContactsAndSendVCards(op, contactIdCursor, vcardType21, ownerVCard, in composeAndSendPhonebookVcards()
590 final int composeAndSendPhonebookOneVcard(Operation op, final int offset, in composeAndSendPhonebookOneVcard() argument
619 return composeContactsAndSendVCards(op, contactIdCursor, vcardType21, ownerVCard, in composeAndSendPhonebookOneVcard()
688 private int composeContactsAndSendVCards(Operation op, final Cursor contactIdCursor, in composeContactsAndSendVCards() argument
734 buffer = new HandlerForStringBuffer(op, ownerVCard); in composeContactsAndSendVCards()
743 ((ServerOperation) op).isAborted = true; in composeContactsAndSendVCards()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsState.java240 public void addOp(AppOpEntry entry, AppOpsManager.OpEntry op) { in addOp() argument
241 mOps.put(op.getOp(), op); in addOp() local
242 mOpSwitches.put(AppOpsManager.opToSwitch(op.getOp()), entry); in addOp()
245 public boolean hasOp(int op) { in hasOp() argument
246 return mOps.indexOfKey(op) >= 0; in hasOp()
249 public AppOpEntry getOpSwitch(int op) { in getOpSwitch() argument
250 return mOpSwitches.get(AppOpsManager.opToSwitch(op)); in getOpSwitch()
316 public AppOpEntry(AppOpsManager.PackageOps pkg, AppOpsManager.OpEntry op, AppEntry app, in AppOpEntry() argument
321 mApp.addOp(this, op); in AppOpEntry()
322 mOps.add(op); in AppOpEntry()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsState.java240 public void addOp(AppOpEntry entry, AppOpsManager.OpEntry op) { in addOp() argument
241 mOps.put(op.getOp(), op); in addOp() local
242 mOpSwitches.put(AppOpsManager.opToSwitch(op.getOp()), entry); in addOp()
245 public boolean hasOp(int op) { in hasOp() argument
246 return mOps.indexOfKey(op) >= 0; in hasOp()
249 public AppOpEntry getOpSwitch(int op) { in getOpSwitch() argument
250 return mOpSwitches.get(AppOpsManager.opToSwitch(op)); in getOpSwitch()
316 public AppOpEntry(AppOpsManager.PackageOps pkg, AppOpsManager.OpEntry op, AppEntry app, in AppOpEntry() argument
321 mApp.addOp(this, op); in AppOpEntry()
322 mOps.add(op); in AppOpEntry()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java448 public int onPut(final Operation op) { in onPut() argument
460 request = op.getReceivedHeader(); in onPut()
518 return pushMessage(op, name, appParams, mMessageVersion); in onPut()
644 private int pushMessage(final Operation op, String folderName, BluetoothMapAppParams appParams, in pushMessage() argument
676 bMsgStream = op.openInputStream(); in pushMessage()
733 op.sendHeaders(replyHeaders); in pushMessage()
984 public int onGet(Operation op) { in onGet() argument
993 request = op.getReceivedHeader(); in onGet()
1022 return sendFolderListingRsp(op, appParams); in onGet()
1052 return sendMessageListingRsp(op, appParams, name); in onGet()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderOperation.java50 for (FolderOperation op : ops) { in getFolders()
51 folders.add(op.mFolder); in getFolders()
73 for (FolderOperation op : folderOps) { in isDestructive()
74 if (Objects.equal(op.mFolder, folder) && !op.mAdd) { in isDestructive()
77 if (folder.isTrash() && op.mFolder.isInbox()) { in isDestructive()
DLeaveBehindData.java26 final ToastBarOperation op; field in LeaveBehindData
31 op = undoOp; in LeaveBehindData()
43 arg.writeParcelable(op, 0); in writeToParcel()
49 op = arg.readParcelable(loader); in LeaveBehindData()
DOnePaneController.java469 public void onUndoAvailable(ToastBarOperation op) { in onUndoAvailable() argument
470 if (op != null && mAccount.supportsCapability(UIProvider.AccountCapabilities.UNDO)) { in onUndoAvailable()
479 (op.getDescription(mActivity.getActivityContext())), in onUndoAvailable()
483 op); in onUndoAvailable() local
491 (op.getDescription(mActivity.getActivityContext())), in onUndoAvailable()
495 op); in onUndoAvailable() local
497 mActivity.setPendingToastOperation(op); in onUndoAvailable()
DActionableToastBar.java206 final boolean autohide, final ToastBarOperation op) { in show() argument
214 mOperation = op; in show()
219 if (op != null && op.shouldTakeOnActionClickedPrecedence()) { in show()
220 op.onActionClicked(getContext()); in show()
/packages/apps/Stk/src/com/android/stk/
DStkCmdReceiver.java53 private void handleAction(Context context, Intent intent, int op) { in handleAction() argument
57 args.putInt(StkAppService.OPCODE, op); in handleAction()
60 if (StkAppService.OP_CMD == op) { in handleAction()
63 } else if (StkAppService.OP_CARD_STATUS_CHANGED == op) { in handleAction()
76 } else if (StkAppService.OP_ALPHA_NOTIFY == op) { in handleAction()
81 CatLog.d("StkCmdReceiver", "handleAction, op: " + op + in handleAction()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DContentProviderTask.java105 final ContentProviderOperation op = ContentProviderOperation in run() local
109 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run()
118 final ContentProviderOperation op = ContentProviderOperation in run() local
123 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run()
132 final ContentProviderOperation op = ContentProviderOperation in run() local
136 super.run(resolver, uri.getAuthority(), Lists.newArrayList(op)); in run()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMnsObexServer.java96 public int onGet(final Operation op) { in onGet() argument
104 public int onPut(final Operation op) { in onPut() argument
111 headerset = op.getReceivedHeader(); in onPut()
120 EventReport ev = EventReport.fromStream(op.openDataInputStream()); in onPut()
121 op.close(); in onPut()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java1607 for (ConversationOperation op: ops) { in apply()
1608 Uri underlyingUri = uriFromCachingUri(op.mUri); in apply()
1615 ContentProviderOperation cpo = op.execute(underlyingUri); in apply()
1620 if (op.mRecalibrateRequired) { in apply()
1756 ContentProviderOperation op = null; in execute() local
1766 op = ContentProviderOperation.newUpdate(uri) in execute()
1775 op = ContentProviderOperation.newUpdate(uri).withValues(mValues).build(); in execute()
1779 op = ContentProviderOperation.newInsert(uri) in execute()
1788 op = ContentProviderOperation.newDelete(uri).build(); in execute()
1795 op = ContentProviderOperation.newDelete(uri).build(); in execute()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java59 int op = ops[i]; in getPackagesForOps() local
60 Map<InternalKey, Integer> keyToModeMap = mOpToKeyToMode.rowMap().get(op); in getPackagesForOps()
67 mode = AppOpsManager.opToDefaultMode(op); in getPackagesForOps()
69 OpEntry opEntry = new OpEntry(op, mode); in getPackagesForOps()
/packages/services/BuiltInPrintService/jni/ipphelper/
Dippstatus_capabilities.c135 int op = IPP_GET_PRINTER_ATTRIBUTES; in _get_capabilities() local
154 request = ippNewRequest(op); in _get_capabilities()
162 LOGD("IPP_GET_PRINTER_ATTRIBUTES %s request:", ippOpString(op)); in _get_capabilities()
176 LOGD("%s received, now call parse_printerAttributes:", ippOpString(op)); in _get_capabilities()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java185 public int onPut(Operation op) { in onPut() argument
187 Log.d(TAG, "onPut " + op.toString()); in onPut()
208 request = op.getReceivedHeader(); in onPut()
372 status = receiveFile(mFileInfo, op); in onPut()
428 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument
438 is = op.openInputStream(); in receiveFile()
462 int outputBufferSize = op.getMaxPacketSize(); in receiveFile()
DTestActivity.java527 public int onPut(Operation op) { in onPut() argument
530 java.io.InputStream is = op.openInputStream(); in onPut()
532 updateStatus("Got data bytes " + is.available() + " name " + op.getReceivedHeader() in onPut()
533 .getHeader(HeaderSet.NAME) + " type " + op.getType()); in onPut()
535 File f = new File((String) op.getReceivedHeader().getHeader(HeaderSet.NAME)); in onPut()
586 public int onGet(Operation op) { in onGet() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java210 int op = PackageUpdatedTask.OP_UPDATE; in onPackageChanged() local
211 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageChanged()
220 int op = PackageUpdatedTask.OP_REMOVE; in onPackagesRemoved() local
221 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packages)); in onPackagesRemoved()
226 int op = PackageUpdatedTask.OP_ADD; in onPackageAdded() local
227 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageAdded()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java236 private <V> V queryService(@NonNull ServiceOperation<V> op, V defaultResponse) { in queryService() argument
242 return op.execute(service); in queryService()
250 private void callService(@NonNull ServiceVoidOperation op) { in callService() argument
256 op.execute(service); in callService()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java875 int op; in getOpacity() local
877 op = array[firstIndex].mDrawable.getOpacity(); in getOpacity()
879 op = PixelFormat.TRANSPARENT; in getOpacity()
886 op = Drawable.resolveOpacity(op, dr.getOpacity()); in getOpacity()
890 mOpacity = op; in getOpacity()
892 return op; in getOpacity()

1234