Home
last modified time | relevance | path

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

1234

/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java401 final ContentProviderOperation op; in visitFile() local
404 op = scanItem(existingId, file.toFile(), attrs, mVolumeName); in visitFile()
408 if (op != null) { in visitFile()
409 mPending.add(op); in visitFile()
515 private static void withGenericValues(ContentProviderOperation.Builder op, in withGenericValues() argument
517 op.withValue(MediaColumns.DATA, file.getAbsolutePath()); in withGenericValues()
518 op.withValue(MediaColumns.SIZE, attrs.size()); in withGenericValues()
519 op.withValue(MediaColumns.TITLE, extractName(file)); in withGenericValues()
520 op.withValue(MediaColumns.DATE_MODIFIED, lastModifiedTime(file, attrs)); in withGenericValues()
521 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/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/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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java453 public int onPut(final Operation op) { in onPut() argument
465 request = op.getReceivedHeader(); in onPut()
523 return pushMessage(op, name, appParams, mMessageVersion); in onPut()
649 private int pushMessage(final Operation op, String folderName, BluetoothMapAppParams appParams, in pushMessage() argument
681 bMsgStream = op.openInputStream(); in pushMessage()
738 op.sendHeaders(replyHeaders); in pushMessage()
989 public int onGet(Operation op) { in onGet() argument
998 request = op.getReceivedHeader(); in onGet()
1027 return sendFolderListingRsp(op, appParams); in onGet()
1057 return sendMessageListingRsp(op, appParams, name); in onGet()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkCmdReceiver.java55 private void handleAction(Context context, Intent intent, int op) { in handleAction() argument
59 args.putInt(StkAppService.OPCODE, op); in handleAction()
62 if (StkAppService.OP_CMD == op) { in handleAction()
65 } else if (StkAppService.OP_CARD_STATUS_CHANGED == op) { in handleAction()
78 } else if (StkAppService.OP_ALPHA_NOTIFY == op) { in handleAction()
83 CatLog.d(LOG_TAG, "handleAction, op: " + op + in handleAction()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMnsObexServer.java100 public int onGet(final Operation op) { in onGet() argument
108 public int onPut(final Operation op) { in onPut() argument
115 headerset = op.getReceivedHeader(); in onPut()
124 EventReport ev = EventReport.fromStream(op.openDataInputStream()); in onPut()
125 op.close(); in onPut()
/packages/modules/DnsResolver/
Dres_mkquery.cpp100 int res_nmkquery(int op, // opcode of query in res_nmkquery() argument
113 LOG(DEBUG) << __func__ << ": (" << _res_opcodes[op] << ", " << p_class(cl) << ", " in res_nmkquery()
123 hp->opcode = op; in res_nmkquery()
136 switch (op) { in res_nmkquery()
148 if (op == QUERY || data == NULL) break; in res_nmkquery()
/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.c136 int op = IPP_GET_PRINTER_ATTRIBUTES; in _get_capabilities() local
155 request = ippNewRequest(op); in _get_capabilities()
163 LOGD("IPP_GET_PRINTER_ATTRIBUTES %s request:", ippOpString(op)); in _get_capabilities()
177 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()
374 status = receiveFile(mFileInfo, op); in onPut()
425 private int receiveFile(BluetoothOppReceiveFileInfo fileInfo, Operation op) { in receiveFile() argument
434 is = op.openInputStream(); in receiveFile()
463 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.java172 int op = PackageUpdatedTask.OP_UPDATE; in onPackageChanged() local
173 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageChanged()
206 int op = PackageUpdatedTask.OP_REMOVE; in onPackagesRemoved() local
208 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packages)); in onPackagesRemoved()
213 int op = PackageUpdatedTask.OP_ADD; in onPackageAdded() local
214 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageAdded()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DRouteUtils.java93 public static void modifyRoute(final INetd netd, final ModifyOperation op, final int netId, in modifyRoute() argument
100 switch(op) { in modifyRoute()
108 throw new IllegalStateException("Unsupported modify operation:" + op); in modifyRoute()
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java237 private <V> V queryService(@NonNull ServiceOperation<V> op, V defaultResponse) { in queryService() argument
243 return op.execute(service); in queryService()
251 private void callService(@NonNull ServiceVoidOperation op) { in callService() argument
257 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()
/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java811 private <R> void testOperator(Supplier<LiveData<R>> op, R result) { in testOperator() argument
813 LiveData<R> data = op.get(); in testOperator()
832 Function<LiveData<T>, LiveData<R>> op, Pair<LiveData<T>, R>... args) { in testUnaryOperator() argument
833 testOperator(arg -> () -> op.apply(arg), args); in testUnaryOperator()
838 BiFunction<LiveData<A>, LiveData<B>, LiveData<R>> op, in testBinaryOperator() argument
840 testOperator(arg -> () -> op.apply(arg.first, arg.second), args); in testBinaryOperator()
858 BiFunction<LiveData<A>, LiveData<B>, LiveData<?>> op, in checkUninitializedBinary() argument
861 checkUninitialized(op.apply(arg.first, arg.second)); in checkUninitializedBinary()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DCacheDataUpdatedTask.java42 public CacheDataUpdatedTask(int op, UserHandle user, HashSet<String> packages) { in CacheDataUpdatedTask() argument
43 mOp = op; in CacheDataUpdatedTask()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DLauncherActivityRule.java50 public Callable<Boolean> itemExists(final ItemOperator op) { in itemExists() argument
56 return launcher.getWorkspace().getFirstMatch(op) != null; in itemExists()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DCacheDataUpdatedTaskTest.java39 private CacheDataUpdatedTask newTask(int op, String... pkg) { in newTask() argument
40 return new CacheDataUpdatedTask(op, myUser, new HashSet<>(Arrays.asList(pkg))); in newTask()

1234