Skip to content

Commit f89d326

Browse files
committed
Also hide overridden Android SDK methods
There's not much value of having methods like XResources.getDrawable() in the Javadoc. Let's concentrate on the added methods instead, which are more visible now.
1 parent 2887073 commit f89d326

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎app/src/main/java/android/content/res/XResources.java‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ private Object getReplacement(int id) {
417417
}
418418
}
419419

420+
/** @hide */
420421
@Override
421422
public XmlResourceParser getAnimation(int id) throws NotFoundException {
422423
Object replacement = getReplacement(id);
@@ -439,6 +440,7 @@ public XmlResourceParser getAnimation(int id) throws NotFoundException {
439440
return super.getAnimation(id);
440441
}
441442

443+
/** @hide */
442444
@Override
443445
public boolean getBoolean(int id) throws NotFoundException {
444446
Object replacement = getReplacement(id);
@@ -452,6 +454,7 @@ public boolean getBoolean(int id) throws NotFoundException {
452454
return super.getBoolean(id);
453455
}
454456

457+
/** @hide */
455458
@Override
456459
public int getColor(int id) throws NotFoundException {
457460
Object replacement = getReplacement(id);
@@ -465,6 +468,7 @@ public int getColor(int id) throws NotFoundException {
465468
return super.getColor(id);
466469
}
467470

471+
/** @hide */
468472
@Override
469473
public ColorStateList getColorStateList(int id) throws NotFoundException {
470474
Object replacement = getReplacement(id);
@@ -488,6 +492,7 @@ public ColorStateList getColorStateList(int id) throws NotFoundException {
488492
return super.getColorStateList(id);
489493
}
490494

495+
/** @hide */
491496
@Override
492497
public float getDimension(int id) throws NotFoundException {
493498
Object replacement = getReplacement(id);
@@ -501,6 +506,7 @@ public float getDimension(int id) throws NotFoundException {
501506
return super.getDimension(id);
502507
}
503508

509+
/** @hide */
504510
@Override
505511
public int getDimensionPixelOffset(int id) throws NotFoundException {
506512
Object replacement = getReplacement(id);
@@ -514,6 +520,7 @@ public int getDimensionPixelOffset(int id) throws NotFoundException {
514520
return super.getDimensionPixelOffset(id);
515521
}
516522

523+
/** @hide */
517524
@Override
518525
public int getDimensionPixelSize(int id) throws NotFoundException {
519526
Object replacement = getReplacement(id);
@@ -527,6 +534,7 @@ public int getDimensionPixelSize(int id) throws NotFoundException {
527534
return super.getDimensionPixelSize(id);
528535
}
529536

537+
/** @hide */
530538
@Override
531539
public Drawable getDrawable(int id) throws NotFoundException {
532540
try {
@@ -552,6 +560,7 @@ public Drawable getDrawable(int id) throws NotFoundException {
552560
}
553561
}
554562

563+
/** @hide */
555564
@Override
556565
public Drawable getDrawable(int id, Theme theme) throws NotFoundException {
557566
try {
@@ -577,6 +586,7 @@ public Drawable getDrawable(int id, Theme theme) throws NotFoundException {
577586
}
578587
}
579588

589+
/** @hide */
580590
@Override
581591
public Drawable getDrawable(int id, Theme theme, boolean supportComposedIcons) throws NotFoundException {
582592
try {
@@ -602,6 +612,7 @@ public Drawable getDrawable(int id, Theme theme, boolean supportComposedIcons) t
602612
}
603613
}
604614

615+
/** @hide */
605616
@Override
606617
public Drawable getDrawableForDensity(int id, int density) throws NotFoundException {
607618
try {
@@ -627,6 +638,7 @@ public Drawable getDrawableForDensity(int id, int density) throws NotFoundExcept
627638
}
628639
}
629640

641+
/** @hide */
630642
@Override
631643
public Drawable getDrawableForDensity(int id, int density, Theme theme) throws NotFoundException {
632644
try {
@@ -652,6 +664,7 @@ public Drawable getDrawableForDensity(int id, int density, Theme theme) throws N
652664
}
653665
}
654666

667+
/** @hide */
655668
@Override
656669
public Drawable getDrawableForDensity(int id, int density, Theme theme, boolean supportComposedIcons) throws NotFoundException {
657670
try {
@@ -677,6 +690,7 @@ public Drawable getDrawableForDensity(int id, int density, Theme theme, boolean
677690
}
678691
}
679692

693+
/** @hide */
680694
@Override
681695
public float getFraction(int id, int base, int pbase) {
682696
Object replacement = getReplacement(id);
@@ -688,6 +702,7 @@ public float getFraction(int id, int base, int pbase) {
688702
return super.getFraction(id, base, pbase);
689703
}
690704

705+
/** @hide */
691706
@Override
692707
public int getInteger(int id) throws NotFoundException {
693708
Object replacement = getReplacement(id);
@@ -701,6 +716,7 @@ public int getInteger(int id) throws NotFoundException {
701716
return super.getInteger(id);
702717
}
703718

719+
/** @hide */
704720
@Override
705721
public int[] getIntArray(int id) throws NotFoundException {
706722
Object replacement = getReplacement(id);
@@ -714,6 +730,7 @@ public int[] getIntArray(int id) throws NotFoundException {
714730
return super.getIntArray(id);
715731
}
716732

733+
/** @hide */
717734
@Override
718735
public XmlResourceParser getLayout(int id) throws NotFoundException {
719736
XmlResourceParser result;
@@ -784,6 +801,7 @@ public XmlResourceParser getLayout(int id) throws NotFoundException {
784801
return result;
785802
}
786803

804+
/** @hide */
787805
@Override
788806
public Movie getMovie(int id) throws NotFoundException {
789807
Object replacement = getReplacement(id);
@@ -795,6 +813,7 @@ public Movie getMovie(int id) throws NotFoundException {
795813
return super.getMovie(id);
796814
}
797815

816+
/** @hide */
798817
@Override
799818
public CharSequence getQuantityText(int id, int quantity) throws NotFoundException {
800819
Object replacement = getReplacement(id);
@@ -809,6 +828,7 @@ public CharSequence getQuantityText(int id, int quantity) throws NotFoundExcepti
809828
// public String getQuantityString(int id, int quantity);
810829
// public String getQuantityString(int id, int quantity, Object... formatArgs);
811830

831+
/** @hide */
812832
@Override
813833
public String[] getStringArray(int id) throws NotFoundException {
814834
Object replacement = getReplacement(id);
@@ -822,6 +842,7 @@ public String[] getStringArray(int id) throws NotFoundException {
822842
return super.getStringArray(id);
823843
}
824844

845+
/** @hide */
825846
@Override
826847
public CharSequence getText(int id) throws NotFoundException {
827848
Object replacement = getReplacement(id);
@@ -838,6 +859,7 @@ public CharSequence getText(int id) throws NotFoundException {
838859
// public String getString(int id);
839860
// public String getString(int id, Object... formatArgs);
840861

862+
/** @hide */
841863
@Override
842864
public CharSequence getText(int id, CharSequence def) {
843865
Object replacement = getReplacement(id);
@@ -851,6 +873,7 @@ public CharSequence getText(int id, CharSequence def) {
851873
return super.getText(id, def);
852874
}
853875

876+
/** @hide */
854877
@Override
855878
public CharSequence[] getTextArray(int id) throws NotFoundException {
856879
Object replacement = getReplacement(id);
@@ -864,6 +887,7 @@ public CharSequence[] getTextArray(int id) throws NotFoundException {
864887
return super.getTextArray(id);
865888
}
866889

890+
/** @hide */
867891
@Override
868892
public XmlResourceParser getXml(int id) throws NotFoundException {
869893
Object replacement = getReplacement(id);

‎app/src/main/java/de/robv/android/xposed/XSharedPreferences.java‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ private void awaitLoadedLocked() {
192192
}
193193
}
194194

195+
/** @hide */
195196
@Override
196197
public Map<String, ?> getAll() {
197198
synchronized (this) {
@@ -200,6 +201,7 @@ private void awaitLoadedLocked() {
200201
}
201202
}
202203

204+
/** @hide */
203205
@Override
204206
public String getString(String key, String defValue) {
205207
synchronized (this) {
@@ -209,6 +211,7 @@ public String getString(String key, String defValue) {
209211
}
210212
}
211213

214+
/** @hide */
212215
@Override
213216
@SuppressWarnings("unchecked")
214217
public Set<String> getStringSet(String key, Set<String> defValues) {
@@ -219,6 +222,7 @@ public Set<String> getStringSet(String key, Set<String> defValues) {
219222
}
220223
}
221224

225+
/** @hide */
222226
@Override
223227
public int getInt(String key, int defValue) {
224228
synchronized (this) {
@@ -228,6 +232,7 @@ public int getInt(String key, int defValue) {
228232
}
229233
}
230234

235+
/** @hide */
231236
@Override
232237
public long getLong(String key, long defValue) {
233238
synchronized (this) {
@@ -237,6 +242,7 @@ public long getLong(String key, long defValue) {
237242
}
238243
}
239244

245+
/** @hide */
240246
@Override
241247
public float getFloat(String key, float defValue) {
242248
synchronized (this) {
@@ -246,6 +252,7 @@ public float getFloat(String key, float defValue) {
246252
}
247253
}
248254

255+
/** @hide */
249256
@Override
250257
public boolean getBoolean(String key, boolean defValue) {
251258
synchronized (this) {
@@ -255,6 +262,7 @@ public boolean getBoolean(String key, boolean defValue) {
255262
}
256263
}
257264

265+
/** @hide */
258266
@Override
259267
public boolean contains(String key) {
260268
synchronized (this) {
@@ -263,16 +271,22 @@ public boolean contains(String key) {
263271
}
264272
}
265273

274+
/** @deprecated Not supported by this implementation. */
275+
@Deprecated
266276
@Override
267277
public Editor edit() {
268278
throw new UnsupportedOperationException("read-only implementation");
269279
}
270280

281+
/** @deprecated Not supported by this implementation. */
282+
@Deprecated
271283
@Override
272284
public void registerOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener) {
273285
throw new UnsupportedOperationException("listeners are not supported in this implementation");
274286
}
275287

288+
/** @deprecated Not supported by this implementation. */
289+
@Deprecated
276290
@Override
277291
public void unregisterOnSharedPreferenceChangeListener(OnSharedPreferenceChangeListener listener) {
278292
throw new UnsupportedOperationException("listeners are not supported in this implementation");

‎app/src/main/java/de/robv/android/xposed/callbacks/XCallback.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public static void callAll(Param param) {
8686
/** @hide */
8787
protected void call(Param param) throws Throwable {}
8888

89+
/** @hide */
8990
@Override
9091
public int compareTo(XCallback other) {
9192
if (this == other)

0 commit comments

Comments
 (0)