Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 91) sorted by relevance

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java128 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument
134 sm.mountObb(file.getPath(), null, observer)); in mountObb()
140 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb()
149 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() argument
154 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait()
160 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument
164 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion()
174 private String checkMountedPath(final StorageManager sm, final File file) { in checkMountedPath() argument
175 final String mountPath = sm.getMountedObbPath(file.getPath()); in checkMountedPath()
182 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() argument
[all …]
/frameworks/rs/
DrsApiMesh.cpp23 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertexBufferCount() local
24 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount()
28 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndexCount() local
29 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount()
33 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertices() local
34 rsAssert(vtxDataCount == sm->mHal.state.vertexBuffersCount); in rsaMeshGetVertices()
37 vtxData[ct] = sm->mHal.state.vertexBuffers[ct]; in rsaMeshGetVertices()
38 sm->mHal.state.vertexBuffers[ct]->incUserRef(); in rsaMeshGetVertices()
43 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndices() local
44 rsAssert(idxDataCount == sm->mHal.state.primitivesCount); in rsaMeshGetIndices()
[all …]
DrsScriptC_LibGL.cpp147 void rsrDrawPath(Context *rsc, Path *sm) { in rsrDrawPath() argument
151 void rsrDrawMesh(Context *rsc, Mesh *sm) { in rsrDrawMesh() argument
152 CHECK_OBJ(sm); in rsrDrawMesh()
156 sm->render(rsc); in rsrDrawMesh()
159 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
160 CHECK_OBJ(sm); in rsrDrawMeshPrimitive()
164 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
167 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
169 CHECK_OBJ(sm); in rsrDrawMeshPrimitiveRange()
173 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DListContextMenu.java103 …SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_… in onCreateOptionsMenu() local
104 item = sm.getItem(); in onCreateOptionsMenu()
106 sm.add(1, 0, 0, "Subitem 1"); in onCreateOptionsMenu()
107 sm.add(1, 0, 0, "Subitem 2"); in onCreateOptionsMenu()
108 sm.add(1, 0, 0, "Subitem 3"); in onCreateOptionsMenu()
109 sm.setGroupCheckable(1, true, true); in onCreateOptionsMenu()
117 sm = menu.addSubMenu(0, 0, 0, "Item 10 SM"); in onCreateOptionsMenu()
118 sm.add(0, 0, 0, "Subitem 1"); in onCreateOptionsMenu()
119 sm.add(0, 0, 0, "Subitem 2"); in onCreateOptionsMenu()
120 sm.add(0, 0, 0, "Subitem 3"); in onCreateOptionsMenu()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DAsecTests.java53 IStorageManager sm = getSm(); in cleanupContainers() local
54 String[] containers = sm.getSecureContainerList(); in cleanupContainers()
60 sm.destroySecureContainer(containers[i], true); in cleanupContainers()
66 IStorageManager sm = getSm(); in containerExists() local
67 String[] containers = sm.getSecureContainerList(); in containerExists()
83 IStorageManager sm = getSm(); in createContainer() local
84 return sm.createSecureContainer(fullId, size, filesystem, key, android.os.Process.myUid(), in createContainer()
92 IStorageManager sm = getSm(); in mountContainer() local
93 return sm.mountSecureContainer(fullId, key, android.os.Process.myUid(), true); in mountContainer()
101 IStorageManager sm = getSm(); in renameContainer() local
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStateMachineTest.java65 private void dumpLogRecs(StateMachine sm) { in dumpLogRecs() argument
66 int size = sm.getLogRecSize(); in dumpLogRecs()
67 tlog("size=" + size + " count=" + sm.getLogRecCount()); in dumpLogRecs()
69 LogRec lr = sm.getLogRec(i); in dumpLogRecs()
1518 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local
1519 sm.start(); in testStateMachineUnhandledMessage()
1520 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage()
1522 synchronized (sm) { in testStateMachineUnhandledMessage()
1525 sm.sendMessage(i); in testStateMachineUnhandledMessage()
1530 sm.wait(); in testStateMachineUnhandledMessage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java783 SyncMessenger sm; in obtain() local
786 sm = new SyncMessenger(); in obtain()
787 sm.mHandlerThread = new HandlerThread("SyncHandler-" + sCount++); in obtain()
788 sm.mHandlerThread.start(); in obtain()
789 sm.mHandler = sm.new SyncHandler(sm.mHandlerThread.getLooper()); in obtain()
790 sm.mMessenger = new Messenger(sm.mHandler); in obtain()
792 sm = sStack.pop(); in obtain()
795 return sm; in obtain()
814 SyncMessenger sm = SyncMessenger.obtain(); in sendMessageSynchronously() local
817 msg.replyTo = sm.mMessenger; in sendMessageSynchronously()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DIPv6TetheringCoordinator.java138 for (TetherInterfaceStateMachine sm : mNotifyList) { in stopIPv6TetheringOnAllInterfaces()
139 stopIPv6TetheringOn(sm); in stopIPv6TetheringOnAllInterfaces()
161 for (TetherInterfaceStateMachine sm : mNotifyList) { in updateIPv6TetheringInterfaces()
162 final LinkProperties lp = getInterfaceIPv6LinkProperties(sm); in updateIPv6TetheringInterfaces()
163 sm.sendMessage(TetherInterfaceStateMachine.CMD_IPV6_TETHER_UPDATE, 0, 0, lp); in updateIPv6TetheringInterfaces()
168 private LinkProperties getInterfaceIPv6LinkProperties(TetherInterfaceStateMachine sm) { in getInterfaceIPv6LinkProperties() argument
169 if (sm.interfaceType() == ConnectivityManager.TETHERING_BLUETOOTH) { in getInterfaceIPv6LinkProperties()
174 final Downstream ds = findDownstream(sm); in getInterfaceIPv6LinkProperties()
193 if (currentActive != null && currentActive.tism == sm) { in getInterfaceIPv6LinkProperties()
373 private static void stopIPv6TetheringOn(TetherInterfaceStateMachine sm) { in stopIPv6TetheringOn() argument
[all …]
/frameworks/native/cmds/dumpsys/
Dmain.cpp33 sp<IServiceManager> sm = defaultServiceManager(); in main() local
35 if (sm == nullptr) { in main()
41 Dumpsys dumpsys(sm.get()); in main()
Ddumpsys.h26 Dumpsys(android::IServiceManager* sm) : sm_(sm) { in Dumpsys() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DPrivateStorageInfo.java41 public static PrivateStorageInfo getPrivateStorageInfo(StorageVolumeProvider sm) { in getPrivateStorageInfo() argument
47 for (VolumeInfo info : sm.getVolumes()) { in getPrivateStorageInfo()
50 privateTotalBytes += sm.getTotalBytes(stats, info); in getPrivateStorageInfo()
51 privateFreeBytes += sm.getFreeBytes(stats, info); in getPrivateStorageInfo()
/frameworks/base/cmds/sm/
DAndroid.mk7 LOCAL_MODULE := sm
11 LOCAL_MODULE := sm
12 LOCAL_SRC_FILES := sm
Dsm1 # Script to start "sm" on the device, which has a very rudimentary
5 export CLASSPATH=$base/framework/sm.jar
6 exec app_process $base/bin com.android.commands.sm.Sm "$@"
/frameworks/av/media/audioserver/
Dmain_audioserver.cpp106 sp<IServiceManager> sm = defaultServiceManager(); in main() local
107 sp<IBinder> binder = sm->getService(String16("media.log")); in main()
131 sp<IServiceManager> sm = defaultServiceManager(); in main() local
132 ALOGI("ServiceManager: %p", sm.get()); in main()
/frameworks/native/cmds/cmd/
Dcmd.cpp135 sp<IServiceManager> sm = defaultServiceManager(); in main() local
137 if (sm == NULL) { in main()
149 Vector<String16> services = sm->listServices(); in main()
154 sp<IBinder> service = sm->checkService(services[i]); in main()
167 sp<IBinder> service = sm->checkService(cmd); in main()
/frameworks/native/libs/binder/include/binder/
DIServiceManager.h71 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local
72 if (sm != NULL) { in getService()
73 *outService = interface_cast<INTERFACE>(sm->getService(name)); in getService()
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadClient.cpp24 sp<IServiceManager> sm = defaultServiceManager(); in Attach() local
25 if (sm == nullptr) { in Attach()
31 sm->getService(IVirtualTouchpadService::SERVICE_NAME())); in Attach()
/frameworks/native/cmds/service/
Dservice.cpp94 sp<IServiceManager> sm = defaultServiceManager(); in main() local
96 if (sm == NULL) { in main()
107 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
117 Vector<String16> services = sm->listServices(); in main()
121 sp<IBinder> service = sm->checkService(name); in main()
131 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java106 final ProcessorSm sm = new ProcessorSm(mMetadataRepo.getRootNode()); in getEmojiMetadata() local
112 final int action = sm.check(codePoint); in getEmojiMetadata()
119 if (sm.isInFlushableState()) { in getEmojiMetadata()
120 return sm.getCurrentMetadata(); in getEmojiMetadata()
198 final ProcessorSm sm = new ProcessorSm(mMetadataRepo.getRootNode()); in process() local
204 final int action = sm.check(codePoint); in process()
222 sm.getFlushMetadata())) { in process()
226 addEmoji(spannable, sm.getFlushMetadata(), start, currentOffset); in process()
238 if (sm.isInFlushableState() && addedCount < maxEmojiCount) { in process()
240 sm.getCurrentMetadata())) { in process()
[all …]
/frameworks/native/libs/binder/
DProcessInfoService.cpp95 const sp<IServiceManager> sm(defaultServiceManager()); in updateBinderLocked() local
96 if (sm != NULL) { in updateBinderLocked()
98 mProcessInfoService = interface_cast<IProcessInfoService>(sm->checkService(name)); in updateBinderLocked()
/frameworks/native/services/surfaceflinger/
Dmain_surfaceflinger.cpp107 sp<IServiceManager> sm(defaultServiceManager()); in main() local
108 sm->addService(String16(SurfaceFlinger::getServiceName()), flinger, false); in main()
112 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
/frameworks/av/drm/drmserver/
Dmain_drmserver.cpp34 sp<IServiceManager> sm = defaultServiceManager(); in main() local
35 ALOGV("ServiceManager: %p", sm.get()); in main()
/frameworks/av/services/mediadrm/
Dmain_mediadrmserver.cpp39 sp<IServiceManager> sm = defaultServiceManager(); in main() local
40 ALOGI("ServiceManager: %p", sm.get()); in main()
/frameworks/av/media/libmediaplayerservice/
DActivityManager.cpp31 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile() local
32 sp<IBinder> binder = sm->getService(String16("activity")); in openContentProviderFile()
/frameworks/av/camera/cameraserver/
Dmain_cameraserver.cpp33 sp<IServiceManager> sm = defaultServiceManager(); in main() local
34 ALOGI("ServiceManager: %p", sm.get()); in main()

1234