Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/text/method/
DTouch.java90 DragState[] ds; in onTouchEvent() local
94 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
96 for (int i = 0; i < ds.length; i++) { in onTouchEvent()
97 buffer.removeSpan(ds[i]); in onTouchEvent()
106 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
108 for (int i = 0; i < ds.length; i++) { in onTouchEvent()
109 buffer.removeSpan(ds[i]); in onTouchEvent()
112 if (ds.length > 0 && ds[0].mUsed) { in onTouchEvent()
119 ds = buffer.getSpans(0, buffer.length(), DragState.class); in onTouchEvent()
121 if (ds.length > 0) { in onTouchEvent()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp136 static Dumpstate& ds = Dumpstate::GetInstance(); variable
139 if (ds.IsUserConsentDenied()) { \
240 return ds.RunCommand(title, fullCommand, options); in RunCommand()
245 return ds.RunDumpsys(title, dumpsysArgs, options, dumpsysTimeoutMs); in RunDumpsys()
248 return ds.DumpFile(title, path); in DumpFile()
280 const time_t thirty_minutes_ago = ds.now_ - 60 * 30; in GetDumpFds()
355 if (ds.IsZipping() && add_to_zip) { in AddDumps()
356 if (ds.AddZipEntryFromFd(ZIP_ROOT_DIR + name, fd, /* timeout = */ 0ms) != OK) { in AddDumps()
385 if (ds.AddZipEntry(ZIP_ROOT_DIR + path, path)) { in do_mountinfo()
394 if (!ds.IsZipping()) return; in add_mountinfo()
[all …]
DDumpstateService.cpp37 Dumpstate* ds = nullptr; member
51 ds_info->ds->Run(ds_info->calling_uid, ds_info->calling_package); in dumpstate_thread_main()
169 ds_info->ds = ds_; in startBugreport()
/frameworks/base/core/java/android/text/style/
DAbsoluteSizeSpan.java117 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
119 ds.setTextSize(mSize * ds.density); in updateDrawState()
121 ds.setTextSize(mSize); in updateDrawState()
126 public void updateMeasureState(@NonNull TextPaint ds) { in updateMeasureState() argument
128 ds.setTextSize(mSize * ds.density); in updateMeasureState()
130 ds.setTextSize(mSize); in updateMeasureState()
DRelativeSizeSpan.java92 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
93 ds.setTextSize(ds.getTextSize() * mProportion); in updateDrawState()
97 public void updateMeasureState(@NonNull TextPaint ds) { in updateMeasureState() argument
98 ds.setTextSize(ds.getTextSize() * mProportion); in updateMeasureState()
DScaleXSpan.java97 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
98 ds.setTextScaleX(ds.getTextScaleX() * mProportion); in updateDrawState()
102 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
103 ds.setTextScaleX(ds.getTextScaleX() * mProportion); in updateMeasureState()
DTextAppearanceSpan.java446 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
447 updateMeasureState(ds); in updateDrawState()
450 ds.setColor(mTextColor.getColorForState(ds.drawableState, 0)); in updateDrawState()
454 ds.linkColor = mTextColorLink.getColorForState(ds.drawableState, 0); in updateDrawState()
458 ds.setShadowLayer(mShadowRadius, mShadowDx, mShadowDy, mShadowColor); in updateDrawState()
463 public void updateMeasureState(TextPaint ds) { in updateMeasureState() argument
471 Typeface tf = ds.getTypeface(); in updateMeasureState()
495 readyTypeface = ds.setTypeface(Typeface.create(styledTypeface, weight, italic)); in updateMeasureState()
503 ds.setFakeBoldText(true); in updateMeasureState()
507 ds.setTextSkewX(-0.25f); in updateMeasureState()
[all …]
DClickableSpan.java53 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
54 ds.setColor(ds.linkColor); in updateDrawState()
55 ds.setUnderlineText(true); in updateDrawState()
DRasterizerSpan.java38 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
39 ds.setRasterizer(mRasterizer); in updateDrawState()
DMaskFilterSpan.java56 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
57 ds.setMaskFilter(mFilter); in updateDrawState()
DStrikethroughSpan.java77 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
78 ds.setStrikeThruText(true); in updateDrawState()
DUnderlineSpan.java77 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
78 ds.setUnderlineText(true); in updateDrawState()
DLocaleSpan.java117 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
118 apply(ds, mLocales); in updateDrawState()
DStyleSpan.java104 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
105 apply(ds, mStyle); in updateDrawState()
DTypefaceSpan.java146 public void updateDrawState(@NonNull TextPaint ds) { in updateDrawState() argument
147 updateTypeface(ds); in updateDrawState()
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java164 IDumpstate ds = startAndGetDumpstateBinderServiceLocked(); in startBugreportLocked() local
165 if (ds == null) { in startBugreportLocked()
172 IDumpstateListener myListener = new DumpstateListener(listener, ds); in startBugreportLocked()
174 ds.startBugreport(callingUid, callingPackage, in startBugreportLocked()
187 IDumpstate ds = IDumpstate.Stub.asInterface(ServiceManager.getService("dumpstate")); in isDumpstateBinderServiceRunningLocked() local
188 return ds != null; in isDumpstateBinderServiceRunningLocked()
207 IDumpstate ds = null; in startAndGetDumpstateBinderServiceLocked() local
213 ds = IDumpstate.Stub.asInterface(ServiceManager.getService("dumpstate")); in startAndGetDumpstateBinderServiceLocked()
214 if (ds != null) { in startAndGetDumpstateBinderServiceLocked()
230 return ds; in startAndGetDumpstateBinderServiceLocked()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java100 KeyEvent.DispatcherState ds = decor.getKeyDispatcherState(); in onKey() local
101 if (ds != null) { in onKey()
102 ds.startTracking(event, this); in onKey()
112 KeyEvent.DispatcherState ds = decor.getKeyDispatcherState(); in onKey() local
113 if (ds != null && ds.isTracking(event)) { in onKey()
/frameworks/native/libs/ui/
DPublicFormat.cpp81 Dataspace ds = static_cast<Dataspace>(dataSpace); in mapHalFormatDataspaceToPublicFormat() local
97 switch (ds) { in mapHalFormatDataspaceToPublicFormat()
120 switch (ds) { in mapHalFormatDataspaceToPublicFormat()
129 switch (ds) { in mapHalFormatDataspaceToPublicFormat()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DIPv6TetheringCoordinator.java172 final Downstream ds = findDownstream(ipServer); in getInterfaceIPv6LinkProperties() local
173 if (ds == null) return null; in getInterfaceIPv6LinkProperties()
175 if (ds.mode == IpServer.STATE_LOCAL_ONLY) { in getInterfaceIPv6LinkProperties()
177 return getUniqueLocalConfig(mUniqueLocalPrefix, ds.subnetId); in getInterfaceIPv6LinkProperties()
203 for (Downstream ds : mActiveDownstreams) { in findDownstream()
204 if (ds.ipServer == ipServer) return ds; in findDownstream()
/frameworks/base/core/java/android/hardware/display/
DDisplayedContentSamplingAttributes.java35 public DisplayedContentSamplingAttributes(int format, int ds, int componentMask) { in DisplayedContentSamplingAttributes() argument
37 mDataspace = ds; in DisplayedContentSamplingAttributes()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp593 ds.progress_.reset(new Progress()); in SetUp()
594 ds.update_progress_threshold_ = 0; in SetUp()
595 ds.options_.reset(new Dumpstate::DumpOptions()); in SetUp()
603 int status = ds.RunCommand(title, full_command, options); in RunCommand()
613 int status = ds.DumpFile(title, path); in DumpFile()
620 ds.options_->do_progress_updates = true; in SetProgress()
621 ds.update_progress_threshold_ = threshold; in SetProgress()
622 ds.last_updated_progress_ = 0; in SetProgress()
623 ds.progress_.reset(new Progress(initial_max, progress, 1.2)); in SetProgress()
628 EXPECT_EQ(progress, ds.progress_->Get()) << "invalid progress"; in GetProgressMessage()
[all …]
Ddumpstate_smoke_test.cpp145 static Dumpstate& ds; member in android::os::dumpstate::ZippedBugreportGenerationTest
160 ds.listener_ = listener; in SetUpTestCase()
161 ds.listener_name_ = "Smokey"; in SetUpTestCase()
162 ds.report_section_ = true; in SetUpTestCase()
164 ds.ParseCommandlineAndRun(ARRAY_SIZE(argv), argv); in SetUpTestCase()
170 return ds.GetPath(".zip").c_str(); in getZipFilePath()
175 Dumpstate& ZippedBugreportGenerationTest::ds = Dumpstate::GetInstance(); member in android::os::dumpstate::ZippedBugreportGenerationTest
238 EXPECT_STREQ(buf, ZippedBugreportGenerationTest::ds.version_.c_str()); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/text/style/
DUnderlineSpanTest.java39 public void updateDrawState(TextPaint ds) { in updateDrawState() argument
40 ds.setUnderlineText(android.graphics.Color.RED, 1.0f); in updateDrawState()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java1249 final DayStats ds = mDayStats[0]; in stopSyncEvent() local
1259 ds.successCount++; in stopSyncEvent()
1260 ds.successTime += elapsedTime; in stopSyncEvent()
1270 ds.failureCount++; in stopSyncEvent()
1271 ds.failureTime += elapsedTime; in stopSyncEvent()
1443 DayStats[] ds = new DayStats[mDayStats.length]; in getDayStatistics() local
1444 System.arraycopy(mDayStats, 0, ds, 0, ds.length); in getDayStatistics()
1445 return ds; in getDayStatistics()
2143 DayStats ds = new DayStats(day); in readStatisticsLocked() local
2144 ds.successCount = in.readInt(); in readStatisticsLocked()
[all …]
/frameworks/native/cmds/installd/
Dutils.cpp641 DIR *ds = fdopendir(sdfd); in _copy_dir_files() local
642 if (ds == nullptr) { in _copy_dir_files()
647 while ((de = readdir(ds))) { in _copy_dir_files()
688 DIR *ds = nullptr; in copy_dir_files() local
691 ds = opendir(srcname); in copy_dir_files()
692 if (ds == nullptr) { in copy_dir_files()
701 closedir(ds); in copy_dir_files()
705 int sdfd = dirfd(ds); in copy_dir_files()
713 closedir(ds); in copy_dir_files()

12