Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/Subscription.java

Issue 29405564: Issue 5121 - Use Acceptable Ads API in libadblockplus (Closed)
Patch Set: changed tests after AA in getListedSubscriptions discussion Created April 7, 2017, 10 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public void updateFilters() 48 public void updateFilters()
49 { 49 {
50 updateFilters(this.ptr); 50 updateFilters(this.ptr);
51 } 51 }
52 52
53 public boolean isUpdating() 53 public boolean isUpdating()
54 { 54 {
55 return isUpdating(this.ptr); 55 return isUpdating(this.ptr);
56 } 56 }
57 57
58 public boolean isAcceptableAds()
59 {
60 return isAcceptableAds(this.ptr);
61 }
62
58 @Override 63 @Override
59 public int hashCode() 64 public int hashCode()
60 { 65 {
61 return (int)(this.ptr >> 32) * (int)this.ptr; 66 return (int)(this.ptr >> 32) * (int)this.ptr;
62 } 67 }
63 68
64 @Override 69 @Override
65 public boolean equals(final Object o) 70 public boolean equals(final Object o)
66 { 71 {
67 if (!(o instanceof Subscription)) 72 if (!(o instanceof Subscription))
(...skipping 10 matching lines...) Expand all
78 83
79 private final static native void addToList(long ptr); 84 private final static native void addToList(long ptr);
80 85
81 private final static native void removeFromList(long ptr); 86 private final static native void removeFromList(long ptr);
82 87
83 private final static native void updateFilters(long ptr); 88 private final static native void updateFilters(long ptr);
84 89
85 private final static native boolean isUpdating(long ptr); 90 private final static native boolean isUpdating(long ptr);
86 91
87 private final static native boolean operatorEquals(long ptr, long other); 92 private final static native boolean operatorEquals(long ptr, long other);
93
94 private final static native boolean isAcceptableAds(long ptr);
88 } 95 }
OLDNEW

Powered by Google App Engine
This is Rietveld