Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Add @UnsupportedAppUsage annotations"
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewinwood authored and Gerrit Code Review committed Aug 2, 2018
2 parents 95f8ca9 + 2845183 commit 3b89584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/hiddenapi-light-greylist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1948,8 +1948,6 @@ Landroid/database/sqlite/SQLiteStatement;-><init>(Landroid/database/sqlite/SQLit
Landroid/database/sqlite/SqliteWrapper;->checkSQLiteException(Landroid/content/Context;Landroid/database/sqlite/SQLiteException;)V
Landroid/database/sqlite/SqliteWrapper;->delete(Landroid/content/Context;Landroid/content/ContentResolver;Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
Landroid/database/sqlite/SqliteWrapper;->update(Landroid/content/Context;Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
Landroid/ddm/DdmHandleAppName;->getAppName()Ljava/lang/String;
Landroid/ddm/DdmHandleAppName;->setAppName(Ljava/lang/String;I)V
Landroid/filterfw/core/Filter;-><init>(Ljava/lang/String;)V
Landroid/filterfw/core/Filter;->isAvailable(Ljava/lang/String;)Z
Landroid/filterfw/core/Filter;->setInputValue(Ljava/lang/String;Ljava/lang/Object;)V
Expand Down
3 changes: 3 additions & 0 deletions core/java/android/ddm/DdmHandleAppName.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package android.ddm;

import android.annotation.UnsupportedAppUsage;
import org.apache.harmony.dalvik.ddmc.Chunk;
import org.apache.harmony.dalvik.ddmc.ChunkHandler;
import org.apache.harmony.dalvik.ddmc.DdmServer;
Expand Down Expand Up @@ -69,6 +70,7 @@ public Chunk handleChunk(Chunk request) {
* before or after DDMS connects. For the latter we need to send up
* an APNM message.
*/
@UnsupportedAppUsage
public static void setAppName(String name, int userId) {
if (name == null || name.length() == 0)
return;
Expand All @@ -79,6 +81,7 @@ public static void setAppName(String name, int userId) {
sendAPNM(name, userId);
}

@UnsupportedAppUsage
public static String getAppName() {
return mAppName;
}
Expand Down

0 comments on commit 3b89584

Please sign in to comment.