/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/ |
D | SpacingAndPunctuationsTests.java | 120 private static void testingStandardWordSeparator(final SpacingAndPunctuations sp) { in testingStandardWordSeparator() argument 121 assertTrue("Tab", sp.isWordSeparator('\t')); in testingStandardWordSeparator() 122 assertTrue("Newline", sp.isWordSeparator('\n')); in testingStandardWordSeparator() 123 assertTrue("Space", sp.isWordSeparator(' ')); in testingStandardWordSeparator() 124 assertTrue("Exclamation", sp.isWordSeparator('!')); in testingStandardWordSeparator() 125 assertTrue("Quotation", sp.isWordSeparator('"')); in testingStandardWordSeparator() 126 assertFalse("Number", sp.isWordSeparator('#')); in testingStandardWordSeparator() 127 assertFalse("Dollar", sp.isWordSeparator('$')); in testingStandardWordSeparator() 128 assertFalse("Percent", sp.isWordSeparator('%')); in testingStandardWordSeparator() 129 assertTrue("Ampersand", sp.isWordSeparator('&')); in testingStandardWordSeparator() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CapsModeUtilsTests.java | 41 final int mask, final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in onePathForCaps() argument 44 CapsModeUtils.getCapsMode(cs, mask, sp, hasSpaceBefore)); in onePathForCaps() 48 final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in allPathsForCaps() argument 52 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps() 53 onePathForCaps(cs, expectedResult, w | s, sp, hasSpaceBefore); in allPathsForCaps() 54 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps() 55 onePathForCaps(cs, expectedResult, c | w, sp, hasSpaceBefore); in allPathsForCaps() 56 onePathForCaps(cs, expectedResult, c, sp, hasSpaceBefore); in allPathsForCaps() 57 onePathForCaps(cs, expectedResult, w, sp, hasSpaceBefore); in allPathsForCaps() 58 onePathForCaps(cs, expectedResult, s, sp, hasSpaceBefore); in allPathsForCaps() [all …]
|
D | DictionaryInfoUtilsTests.java | 49 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testLooksValidForDictionaryInsertion() local 50 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("aochaueo", sp)); in testLooksValidForDictionaryInsertion() 51 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("", sp)); in testLooksValidForDictionaryInsertion() 52 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("ao-ch'aueo", sp)); in testLooksValidForDictionaryInsertion() 53 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("2908743256", sp)); in testLooksValidForDictionaryInsertion() 54 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("31aochaueo", sp)); in testLooksValidForDictionaryInsertion() 56 sp)); in testLooksValidForDictionaryInsertion() 57 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("!!!", sp)); in testLooksValidForDictionaryInsertion()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 63 sp[i] = (SitePointer) i; in buildTriangulation() 66 spsortx( sp, 0, size-1 ); in buildTriangulation() 84 minx = sp[low]; in build() 85 maxx = sp[high]; in build() 87 spsorty( sp, low, high); in build() 106 a = makeEdge(sp[low], sp[high]); in build() 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 200 sp = (SitePointer *) (sa + n); in allocMemory() 201 ev = (SEdgeVector *) (org = sp + n); in allocMemory() [all …]
|
/packages/services/Car/evs/manager/ |
D | Enumerator.cpp | 64 Return<sp<IEvsCamera>> Enumerator::openCamera(const hidl_string& cameraId) { in openCamera() 71 sp<HalCamera> hwCamera; in openCamera() 89 sp<IEvsCamera> device = mHwEnumerator->openCamera(cameraId); in openCamera() 102 sp<VirtualCamera> clientCamera; in openCamera() 119 Return<void> Enumerator::closeCamera(const ::android::sp<IEvsCamera>& clientCamera) { in closeCamera() 128 sp<VirtualCamera> virtualCamera = reinterpret_cast<VirtualCamera*>(clientCamera.get()); in closeCamera() 131 sp<HalCamera> halCamera = virtualCamera->getHalCamera(); in closeCamera() 150 Return<sp<IEvsDisplay>> Enumerator::openDisplay() { in openDisplay() 163 sp<IEvsDisplay> pActiveDisplay = mHwEnumerator->openDisplay(); in openDisplay() 175 sp<IEvsDisplay> pHalDisplay = new HalDisplay(pActiveDisplay); in openDisplay() [all …]
|
D | Enumerator.h | 42 Return<sp<IEvsCamera>> openCamera(const hidl_string& cameraId) override; 43 Return<void> closeCamera(const ::android::sp<IEvsCamera>& virtualCamera) override; 44 Return<sp<IEvsDisplay>> openDisplay() override; 45 Return<void> closeDisplay(const ::android::sp<IEvsDisplay>& display) override; 54 sp<IEvsEnumerator> mHwEnumerator; // Hardware enumerator 56 std::list<sp<HalCamera>> mCameras; // Camera proxy objects wrapping hw cameras
|
D | HalCamera.cpp | 35 sp<VirtualCamera> HalCamera::makeVirtualCamera() { in makeVirtualCamera() 38 sp<VirtualCamera> client = new VirtualCamera(this); in makeVirtualCamera() 60 void HalCamera::disownVirtualCamera(sp<VirtualCamera> virtualCamera) { in disownVirtualCamera() 89 sp<VirtualCamera> virtCam = client.promote(); in changeFramesInFlight() 145 sp<VirtualCamera> virtCam = client.promote(); in clientStreamEnding() 186 sp<VirtualCamera> virtCam = client.promote(); in deliverFrame()
|
D | HalCamera.h | 48 HalCamera(sp<IEvsCamera> hwCamera) : mHwCamera(hwCamera) {}; in HalCamera() 51 sp<VirtualCamera> makeVirtualCamera(); 52 void disownVirtualCamera(sp<VirtualCamera> virtualCamera); 55 sp<IEvsCamera> getHwCamera() { return mHwCamera; }; in getHwCamera() 67 sp<IEvsCamera> mHwCamera;
|
D | VirtualCamera.h | 48 explicit VirtualCamera(sp<HalCamera> halCamera); 52 sp<HalCamera> getHalCamera() { return mHalCamera; }; in getHalCamera() 62 Return<EvsResult> startVideoStream(const ::android::sp<IEvsCameraStream>& stream) override; 69 sp<HalCamera> mHalCamera; // The low level camera interface that backs this proxy 70 sp<IEvsCameraStream> mStream;
|
/packages/apps/Nfc/nci/jni/ |
D | PeerToPeer.h | 391 android::sp<P2pServer> mServers[sMax]; 392 android::sp<P2pClient> mClients[sMax]; 428 android::sp<P2pServer> findServerLocked(tNFA_HANDLE nfaP2pServerHandle); 440 android::sp<P2pServer> findServerLocked(tJNI_HANDLE jniHandle); 452 android::sp<P2pServer> findServerLocked(const char* serviceName); 503 android::sp<P2pClient> findClient(tNFA_HANDLE nfaConnHandle); 515 android::sp<P2pClient> findClient(tJNI_HANDLE jniHandle); 527 android::sp<P2pClient> findClientCon(tNFA_HANDLE nfaConnHandle); 539 android::sp<NfaConn> findConnection(tNFA_HANDLE nfaConnHandle); 551 android::sp<NfaConn> findConnection(tJNI_HANDLE jniHandle); [all …]
|
D | PeerToPeer.cpp | 125 sp<P2pServer> PeerToPeer::findServerLocked(tNFA_HANDLE nfaP2pServerHandle) { in findServerLocked() 148 sp<P2pServer> PeerToPeer::findServerLocked(tJNI_HANDLE jniHandle) { in findServerLocked() 170 sp<P2pServer> PeerToPeer::findServerLocked(const char* serviceName) { in findServerLocked() 198 sp<P2pServer> pSrv = NULL; in registerServer() 431 sp<P2pServer> pSrv = NULL; in accept() 464 sp<P2pServer> pSrv = NULL; in deregisterServer() 519 sp<P2pClient> client = NULL; in createClient() 663 sp<P2pClient> pClient = NULL; in createDataLinkConn() 718 sp<P2pClient> PeerToPeer::findClient(tNFA_HANDLE nfaConnHandle) { in findClient() 738 sp<P2pClient> PeerToPeer::findClient(tJNI_HANDLE jniHandle) { in findClient() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastReceiver.java | 180 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in setTestingMode() local 181 sp.edit().putBoolean(TESTING_MODE, on).commit(); in setTestingMode() 189 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in isTestingMode() local 190 return sp.getBoolean(TESTING_MODE, false); in isTestingMode() 199 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in setServiceState() local 200 sp.edit().putInt(SERVICE_STATE, ss).commit(); in setServiceState() 207 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in getServiceState() local 208 return sp.getInt(SERVICE_STATE, ServiceState.STATE_IN_SERVICE); in getServiceState() 216 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext); in adjustReminderInterval() local 217 String currentIntervalDefault = sp.getString(CURRENT_INTERVAL_DEFAULT, "0"); in adjustReminderInterval() [all …]
|
/packages/services/Car/evs/app/ |
D | VideoTex.h | 36 friend VideoTex* createVideoTexture(sp<IEvsEnumerator> pEnum, 47 VideoTex(sp<IEvsEnumerator> pEnum, 48 sp<IEvsCamera> pCamera, 49 sp<StreamHandler> pStreamHandler, 52 sp<IEvsEnumerator> mEnumerator; 53 sp<IEvsCamera> mCamera; 54 sp<StreamHandler> mStreamHandler; 62 VideoTex* createVideoTexture(sp<IEvsEnumerator> pEnum,
|
D | EvsStateControl.h | 38 using ::android::sp; 48 EvsStateControl(android::sp <IVehicle> pVnet, 49 android::sp <IEvsEnumerator> pEvs, 50 android::sp <IEvsDisplay> pDisplay, 86 sp<IVehicle> mVehicle; 87 sp<IEvsEnumerator> mEvs; 88 sp<IEvsDisplay> mDisplay;
|
D | VideoTex.cpp | 36 VideoTex::VideoTex(sp<IEvsEnumerator> pEnum, in VideoTex() 37 sp<IEvsCamera> pCamera, in VideoTex() 38 sp<StreamHandler> pStreamHandler, in VideoTex() 87 sp<GraphicBuffer> pGfxBuffer = new GraphicBuffer(mImageBuffer.memHandle, in refresh() 130 VideoTex* createVideoTexture(sp<IEvsEnumerator> pEnum, in createVideoTexture() 134 sp<IEvsCamera> pCamera = pEnum->openCamera(evsCameraId); in createVideoTexture() 141 sp<StreamHandler> pStreamHandler = new StreamHandler(pCamera); in createVideoTexture()
|
D | evs_app.cpp | 42 static bool subscribeToVHal(sp<IVehicle> pVnet, in subscribeToVHal() 43 sp<IVehicleCallback> listener, in subscribeToVHal() 112 sp<EvsVehicleListener> pEvsListener = new EvsVehicleListener(); in main() 116 android::sp<IEvsEnumerator> pEvs = IEvsEnumerator::getService(evsServiceName); in main() 124 android::sp <IEvsDisplay> pDisplay; in main() 132 sp<IVehicle> pVnet; in main()
|
D | RenderPixelCopy.cpp | 23 RenderPixelCopy::RenderPixelCopy(sp<IEvsEnumerator> enumerator, in RenderPixelCopy() 32 sp<IEvsCamera> pCamera = mEnumerator->openCamera(mCameraInfo.cameraId.c_str()); in activate() 39 sp<StreamHandler> pStreamHandler = new StreamHandler(pCamera); in activate() 65 sp<android::GraphicBuffer> tgt = new android::GraphicBuffer( in drawFrame() 85 sp<android::GraphicBuffer> src = new android::GraphicBuffer( in drawFrame()
|
D | WindowSurface.cpp | 29 sp<SurfaceComposerClient> surfaceComposerClient = new SurfaceComposerClient; in WindowSurface() 37 sp<IBinder> mainDpy = SurfaceComposerClient::getInternalDisplayToken(); in WindowSurface() 61 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() 78 sp<ANativeWindow> anw = mSurfaceControl->getSurface(); in getSurface()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | NotificationController.java | 153 SharedPreferences sp = context.getSharedPreferences( in shouldShowNotification() local 156 int timesShown = sp.getInt(NOTIFICATION_SHOWN_COUNT, 0); in shouldShowNotification() 157 int timesDismissed = sp.getInt(NOTIFICATION_DISMISS_COUNT, 0); in shouldShowNotification() 162 long nextTimeToShow = sp.getLong(NOTIFICATION_NEXT_SHOW_TIME, 0); in shouldShowNotification() 255 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationShownCount() local 257 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationShownCount() 258 int shownCount = sp.getInt(NotificationController.NOTIFICATION_SHOWN_COUNT, 0) + 1; in incrementNotificationShownCount() 264 SharedPreferences sp = context.getSharedPreferences(SHARED_PREFERENCES_NAME, in incrementNotificationDismissedCount() local 266 SharedPreferences.Editor editor = sp.edit(); in incrementNotificationDismissedCount() 267 int dismissCount = sp.getInt(NOTIFICATION_DISMISS_COUNT, 0) + 1; in incrementNotificationDismissedCount() [all …]
|
/packages/services/Car/evs/sampleDriver/ |
D | EvsEnumerator.cpp | 210 Return<sp<IEvsCamera>> EvsEnumerator::openCamera(const hidl_string& cameraId) { in openCamera() 220 sp<EvsV4lCamera> pActiveCamera = pRecord->activeInstance.promote(); in openCamera() 237 Return<void> EvsEnumerator::closeCamera(const ::android::sp<IEvsCamera>& pCamera) { in closeCamera() 259 sp<EvsV4lCamera> pActiveCamera = pRecord->activeInstance.promote(); in closeCamera() 277 Return<sp<IEvsDisplay>> EvsEnumerator::openDisplay() { in openDisplay() 285 sp<EvsGlDisplay> pActiveDisplay = sActiveDisplay.promote(); in openDisplay() 300 Return<void> EvsEnumerator::closeDisplay(const ::android::sp<IEvsDisplay>& pDisplay) { in closeDisplay() 304 sp<EvsGlDisplay> pActiveDisplay = sActiveDisplay.promote(); in closeDisplay() 326 sp<IEvsDisplay> pActiveDisplay = sActiveDisplay.promote(); in getDisplayState()
|
D | GlWrapper.h | 34 using ::android::sp; 56 sp<SurfaceComposerClient> mFlinger; 57 sp<SurfaceControl> mFlingerSurfaceControl; 58 sp<Surface> mFlingerSurface;
|
D | EvsEnumerator.h | 42 Return<sp<IEvsCamera>> openCamera(const hidl_string& cameraId) override; 43 Return<void> closeCamera(const ::android::sp<IEvsCamera>& carCamera) override; 44 Return<sp<IEvsDisplay>> openDisplay() override; 45 Return<void> closeDisplay(const ::android::sp<IEvsDisplay>& display) override;
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialog.java | 92 SharedPreferences sp = getSharedPreferences(getContext()); in onClick() local 93 int noThanksCount = sp.getInt(NO_THANKS_COUNT, 0) + 1; in onClick() 94 SharedPreferences.Editor editor = sp.edit(); in onClick() 107 SharedPreferences sp = getSharedPreferences(getContext()); in onCancel() local 108 int dismissCount = sp.getInt(DISMISSED_COUNT, 0) + 1; in onCancel() 109 SharedPreferences.Editor editor = sp.edit(); in onCancel()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities.h | 484 double sp,so,sk,om_sp2,om_so2,om_sk2,cp,co,ck,sp_so,cp_so; in db_IncrementalRotationMatrix() local 487 sp=dx[0]; so=dx[1]; sk=dx[2]; in db_IncrementalRotationMatrix() 488 om_sp2=1.0-sp*sp; in db_IncrementalRotationMatrix() 496 sp_so=sp*so; in db_IncrementalRotationMatrix() 498 R[0]=sp_so*sk+cp*ck; R[1]=co*sk; R[2]=cp_so*sk-sp*ck; in db_IncrementalRotationMatrix() 499 R[3]=sp_so*ck-cp*sk; R[4]=co*ck; R[5]=cp_so*ck+sp*sk; in db_IncrementalRotationMatrix() 500 R[6]=sp*co; R[7]= -so; R[8]=cp*co; in db_IncrementalRotationMatrix()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperUtils.java | 50 SharedPreferences sp = activity.getSharedPreferences(spKey, Context.MODE_MULTI_PROCESS); in saveWallpaperDimensions() local 51 SharedPreferences.Editor editor = sp.edit(); in saveWallpaperDimensions() 68 SharedPreferences sp = activity.getSharedPreferences( in suggestWallpaperDimensionPreK() local 71 int width = sp.getInt(WALLPAPER_WIDTH_KEY, -1); in suggestWallpaperDimensionPreK() 72 int height = sp.getInt(WALLPAPER_HEIGHT_KEY, -1); in suggestWallpaperDimensionPreK()
|