1#
2# Copyright (C) 2014 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16.class public LNewInstance;
17.super Ljava/lang/Object;
18
19.method public constructor <init>()V
20      .registers 1
21       invoke-direct {v0}, Ljava/lang/Object;-><init>()V
22       return-void
23.end method
24
25.method public newInstanceInterface()Ljava/lang/Object;
26      .registers 5
27      new-instance v1, LTestInterface;
28      # invoke-direct {v3}, LTestInterface;-><init>()V
29      # intentionally return v4 ("this")
30      return-object v4
31.end method
32
33.method public newInstanceClass()Ljava/lang/Object;
34      .registers 5
35      new-instance v1, LTestClass;
36      # invoke-direct {v3}, LTestClass;-><init>()V
37      # intentionally return v4 ("this")
38      return-object v4
39.end method
40
41.method public newInstancePrivateClass()Ljava/lang/Object;
42      .registers 5
43      new-instance v1, Lpkg/ProtectedClass;
44      # invoke-direct {v3}, Lpck/ProtectedClass;-><init>()V
45      # intentionally return v4 ("this")
46      return-object v4
47.end method
48
49.method public newInstanceUnknownClass()Ljava/lang/Object;
50      .registers 5
51      new-instance v1, LUnknownClass;
52      # invoke-direct {v3}, LUnknownClass;-><init>()V
53      # intentionally return v4 ("this")
54      return-object v4
55.end method
56