Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java140 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument
146 sm.mountObb(file.getPath(), null, observer)); in mountObb()
152 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb()
161 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() argument
166 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait()
172 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument
176 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion()
186 private String checkMountedPath(final StorageManager sm, final File file) { in checkMountedPath() argument
187 final String mountPath = sm.getMountedObbPath(file.getPath()); in checkMountedPath()
194 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() argument
[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/rs/
DrsScriptC_LibGL.cpp151 void rsrDrawPath(Context *rsc, Script *sc, Path *sm) { in rsrDrawPath() argument
152 CHECK_OBJ(sm); in rsrDrawPath()
156 sm->render(rsc); in rsrDrawPath()
159 void rsrDrawMesh(Context *rsc, Script *sc, Mesh *sm) { in rsrDrawMesh() argument
160 CHECK_OBJ(sm); in rsrDrawMesh()
164 sm->render(rsc); in rsrDrawMesh()
167 void rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
168 CHECK_OBJ(sm); in rsrDrawMeshPrimitive()
172 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
175 void rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
[all …]
DrsMesh.cpp277 Mesh *sm = new Mesh(rsc, vtxCount, idxCount); in rsi_MeshCreate() local
278 sm->incUserRef(); in rsi_MeshCreate()
281 sm->setVertexBuffer((Allocation*)vtx[i], i); in rsi_MeshCreate()
285 sm->setPrimitive((Allocation*)idx[i], (RsPrimitive)primType[i], i); in rsi_MeshCreate()
288 sm->init(); in rsi_MeshCreate()
290 return sm; in rsi_MeshCreate()
296 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertexBufferCount() local
297 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount()
301 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndexCount() local
302 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount()
[all …]
/frameworks/base/services/java/com/android/server/connectivity/
DTethering.java223 TetherInterfaceSM sm = mIfaces.get(iface); in interfaceStatusChanged()
225 if (sm == null) { in interfaceStatusChanged()
226 sm = new TetherInterfaceSM(iface, mLooper, usb); in interfaceStatusChanged()
227 mIfaces.put(iface, sm); in interfaceStatusChanged()
228 sm.start(); in interfaceStatusChanged()
235 } else if (sm != null) { in interfaceStatusChanged()
236 sm.sendMessage(TetherInterfaceSM.CMD_INTERFACE_DOWN); in interfaceStatusChanged()
295 TetherInterfaceSM sm = mIfaces.get(iface); in interfaceAdded() local
296 if (sm != null) { in interfaceAdded()
300 sm = new TetherInterfaceSM(iface, mLooper, usb); in interfaceAdded()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java771 SyncMessenger sm; in obtain() local
774 sm = new SyncMessenger(); in obtain()
775 sm.mHandlerThread = new HandlerThread("SyncHandler-" + sCount++); in obtain()
776 sm.mHandlerThread.start(); in obtain()
777 sm.mHandler = sm.new SyncHandler(sm.mHandlerThread.getLooper()); in obtain()
778 sm.mMessenger = new Messenger(sm.mHandler); in obtain()
780 sm = sStack.pop(); in obtain()
783 return sm; in obtain()
802 SyncMessenger sm = SyncMessenger.obtain(); in sendMessageSynchronously() local
805 msg.replyTo = sm.mMessenger; in sendMessageSynchronously()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DStateMachineTest.java1497 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("sm"); in testStateMachineUnhandledMessage() local
1498 sm.start(); in testStateMachineUnhandledMessage()
1499 if (sm.isDbg()) Log.d(TAG, "testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage()
1501 synchronized (sm) { in testStateMachineUnhandledMessage()
1504 sm.sendMessage(i); in testStateMachineUnhandledMessage()
1509 sm.wait(); in testStateMachineUnhandledMessage()
1516 assertEquals(sm.getLogRecCount(), 2); in testStateMachineUnhandledMessage()
1517 assertEquals(2, sm.mUnhandledMessageCount); in testStateMachineUnhandledMessage()
1519 if (sm.isDbg()) Log.d(TAG, "testStateMachineUnhandledMessage X"); in testStateMachineUnhandledMessage()
1587 for (StateMachineSharedThread sm : sms) { in testStateMachineSharedThread()
[all …]
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in main() local
34 if (sm == NULL) { in main()
43 services = sm->listServices(); in main()
60 sp<IBinder> service = sm->checkService(services[i]); in main()
68 sp<IBinder> service = sm->checkService(services[i]); in main()
/frameworks/native/include/binder/
DBinderService.h38 sp<IServiceManager> sm(defaultServiceManager());
39 return sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated);
43 sp<IServiceManager> sm(defaultServiceManager());
44 sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated);
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/base/cmds/service/
Dservice.cpp60 sp<IServiceManager> sm = defaultServiceManager(); in main() local
62 if (sm == NULL) { in main()
94 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
104 Vector<String16> services = sm->listServices(); in main()
108 sp<IBinder> service = sm->checkService(name); in main()
118 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
/frameworks/base/cmds/system_server/library/
Dsystem_init.cpp56 sp<IServiceManager> sm = defaultServiceManager(); in system_init() local
57 ALOGI("ServiceManager: %p\n", sm.get()); in system_init()
60 sm->asBinder()->linkToDeath(grim, grim.get(), 0); in system_init()
/frameworks/av/drm/drmserver/
Dmain_drmserver.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in main() local
33 ALOGV("ServiceManager: %p", sm.get()); in main()
/frameworks/av/media/mediaserver/
Dmain_mediaserver.cpp38 sp<IServiceManager> sm = defaultServiceManager(); in main() local
39 ALOGI("ServiceManager: %p", sm.get()); in main()
/frameworks/av/media/libmediaplayerservice/
DActivityManager.cpp35 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile() local
36 sp<IBinder> am = sm->getService(String16("activity")); in openContentProviderFile()
/frameworks/native/services/sensorservice/
DBatteryService.cpp34 const sp<IServiceManager> sm(defaultServiceManager()); in BatteryService() local
35 if (sm != NULL) { in BatteryService()
37 mBatteryStatService = sm->getService(name); in BatteryService()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainRS.java47 Mesh sm = smb.create(); in init() local
50 mScript.set_partMesh(sm); in init()
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountainRS.java47 Mesh sm = smb.create(); in init() local
50 mScript.set_partMesh(sm); in init()
/frameworks/base/native/android/
Dstorage_manager.cpp88 sp<IServiceManager> sm = defaultServiceManager(); in initialize() local
89 if (sm == NULL) { in initialize()
94 mMountService = interface_cast<IMountService>(sm->getService(String16("mount"))); in initialize()
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp40 sp<IServiceManager> sm = defaultServiceManager(); in getMediaPlayerService() local
43 binder = sm->getService(String16("media.player")); in getMediaPlayerService()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java414 public static void setIdentityM(float[] sm, int smOffset) { in setIdentityM() argument
416 sm[smOffset + i] = 0; in setIdentityM()
419 sm[smOffset + i] = 1.0f; in setIdentityM()
433 public static void scaleM(float[] sm, int smOffset, in scaleM() argument
439 sm[ smi] = m[ mi] * x; in scaleM()
440 sm[ 4 + smi] = m[ 4 + mi] * y; in scaleM()
441 sm[ 8 + smi] = m[ 8 + mi] * z; in scaleM()
442 sm[12 + smi] = m[12 + mi]; in scaleM()
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboRS.java49 Mesh sm = smb.create(); in init() local
52 mScript.set_partMesh(sm); in init()
/frameworks/base/graphics/java/android/renderscript/
DMesh.java811 Mesh sm = smb.create(); in create() local
813 sm.getVertexAllocation(0).copy1DRangeFromUnchecked(0, mMaxIndex, mVtxData); in create()
816 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT); in create()
820 sm.getIndexSetAllocation(0).copy1DRangeFromUnchecked(0, mIndexCount, mIndexData); in create()
822 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT); in create()
825 return sm; in create()
/frameworks/base/core/tests/coretests/src/android/os/storage/
DAsecTests.java565 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in unmountMedia() local
566 sm.registerListener(observer); in unmountMedia()
581 sm.unregisterListener(observer); in unmountMedia()
625 StorageManager sm = (StorageManager) mContext.getSystemService(Context.STORAGE_SERVICE); in testUnmountMultiple() local
633 sm.registerListener(observer); in testUnmountMultiple()
650 sm.unregisterListener(observer); in testUnmountMultiple()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp188 sp<ISurfaceComposer> sm(ComposerService::getComposerService()); in closeGlobalTransactionImpl() local
213 sm->setTransactionState(transaction, displayTransaction, flags); in closeGlobalTransactionImpl()
404 sp<ISurfaceComposer> sm(ComposerService::getComposerService()); in onFirstRef() local
405 if (sm != 0) { in onFirstRef()
406 sp<ISurfaceComposerClient> conn = sm->createConnection(); in onFirstRef()
429 sp<ISurfaceComposer> sm(ComposerService::getComposerService()); in linkToComposerDeath() local
430 return sm->asBinder()->linkToDeath(recipient, cookie, flags); in linkToComposerDeath()

12